#avr | Logs for 2012-06-10

Back
[04:05:21] <_abc_> I need a scriptable atmega simulator. Is there such a thing and if not, which existing one can be edited to become such? Any ideas are welcome. Thanks
[04:09:11] <specing> simavr
[04:10:13] <_abc_> simavr or simulavr?
[04:11:17] <specing> dunno
[04:31:06] <littlebit> hello people,
[04:31:35] <littlebit> i installed the avrstudio 6 and wanted to prgramm some little program and I get the following error:
[04:41:34] <_abc_> and there is no --pedantic declared anywhere in the makefiles of simavr
[04:41:42] <_abc_> I get cc1: warnings being treated as errors
[04:41:44] <_abc_> ^^
[04:41:46] <_abc_> any ideas?
[04:43:34] <mrfrenzy> google that message and you should find the command to counter it
[04:45:29] <littlebit> i get the following error:
[04:45:36] <littlebit> Error 1 expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
[04:46:55] <littlebit> any ideas
[05:14:07] <jacekowski> paste the code
[05:14:17] <jacekowski> looks like ; missing
[05:39:44] <littlebit> jacekowski: http://pastebin.com/c1axcA4p
[05:41:54] <jacekowski> and what is the exact error message
[05:42:00] <jacekowski> and which line
[05:42:07] <littlebit> Error 1 expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef' c:\programme\atmel\atmel studio 6.0\extensions\atmel\avrgcc\3.4.0.65\avrtoolchain\bin\../lib/gcc/avr/4.6.2/../../../../avr/include/inttypes.h 77 1 freeRTOS
[05:43:15] <jacekowski> hmmmm
[05:44:33] <littlebit> jacekowski: i know this is FUN!! :)
[05:45:05] <jacekowski> have you tried creating same file but with just main and all includes
[05:45:14] <jacekowski> to see if the problem is really in one of the include files
[05:46:36] <littlebit> i searched all 3 of them there is no inttypes.h
[05:47:07] <jacekowski> that's not what i mean
[05:47:38] <littlebit> u mean in inttypes.h then?
[05:47:47] <jacekowski> thttp://pastebin.com/yxPRb5ch
[05:47:54] <jacekowski> try something like that
[05:48:28] <littlebit> just an empty main?
[05:48:55] <jacekowski> yeah
[05:49:06] <littlebit> ok
[05:49:12] <littlebit> tried it same problem
[05:51:31] <jacekowski> so it is header
[05:51:43] <littlebit> what do u mean?
[05:52:05] <jacekowski> try removing all freertos includes
[05:52:10] <jacekowski> and check try it again
[05:53:51] <littlebit> ok it gave me a bunch of erros now and it could be in the freeRTOS includes
[05:55:24] <littlebit> jacekowski: i isolated the file
[05:55:32] <littlebit> now how can i find the line?
[05:56:11] <jacekowski> well, what file is it
[05:56:17] <jacekowski> is it created by you?
[05:56:23] <jacekowski> or modified by you?
[05:57:03] <littlebit> no
[05:57:14] <littlebit> freeROTS is an opensource project
[05:58:59] <littlebit> jacekowski: i searched the file with ctrl+f but nothing can be found
[06:38:43] <_abc_> Okay I got simavr going, thanks for the tips, it works now
[06:39:14] <_abc_> thanks specing and mrfrenzy
[06:39:29] <_abc_> I need to dig in much deeper now to simulate my own hardware...
[06:47:08] <_abc_> Okay I think I got the hang of it
[06:47:19] <_abc_> The doc dir in simavr is emptyish
[06:47:43] <_abc_> Is there a downloadable version of the docs? My wifi connection keeps going down sometimes, I prefer to have the docs here.
[06:47:55] <_abc_> The website is super confusing (gitorious)
[06:52:51] <mrfrenzy> you are supposed to download the repository using git
[06:53:01] <mrfrenzy> the web interface is just for quick orientation
[06:55:59] <OndraSter> hmm building whole gentoo around uclibc was a BAD idea :(
[06:57:21] <specing> Haha
[06:57:25] <specing> Let me guess
[06:57:32] <specing> 1/2 of stuff doesen't work?
[06:59:16] <OndraSter> doesn't build :)
[07:00:31] <specing> Close enaugh.
[07:02:20] <OndraSter> I wanted to base it on uclibc because the target is 233MHz CPU with 288MB RAM
[07:02:51] <specing> LOL
[07:02:57] <`Wedge_> OndraSter: what are you trying to build with uclibc?
[07:03:04] <OndraSter> system
[07:03:06] <OndraSter> obviously
[07:03:30] <OndraSter> HDD space is not an issue, it boots (at least for now) over NFS :)
[07:03:35] <`Wedge_> what packages
[07:03:49] <OndraSter> classic base + mysql+apache probably
[07:03:54] <OndraSter> who knows
[07:04:01] <OndraSter> I wanted to have it here ready "if I'd ever need something"
[07:04:12] <specing> Hahaha apache _ mysql
[07:04:40] <OndraSter> yeah
[07:04:40] <specing> First he tries to strip down everything off the system
[07:04:41] <OndraSter> will be fun :D
[07:04:57] <specing> Then he introduces Apache and Mysql into the mix
[07:04:58] <specing> LOL
[07:05:01] <OndraSter> ARP doesn't compile with uclibc without any nasty patching
[07:05:29] <OndraSter> but hey, it boots just fine =)
[07:05:48] <OndraSter> the bootloader is funky - it is built into the BIOS itself, it loads the ELF binary from NFS share and launches it
[07:07:19] <mrfrenzy> debian should run fine on that hardware
[07:07:31] <mrfrenzy> I had apache+mysql on a Pentium 75 with something like 32MB ram
[07:07:36] <`Wedge_> how are you trying to build it?
[07:07:45] <`Wedge_> you can try buildroot
[07:08:22] <OndraSter> crosstools
[07:08:29] <OndraSter> or w/e was the name
[07:08:51] <`Wedge_> crosstools-ng ?
[07:09:05] <OndraSter> crossdev*
[07:09:16] <`Wedge_> or that, yeah
[07:09:31] <OndraSter> screw that, I will start "again" with full glibc
[07:10:06] <OndraSter> WOW, gentoo has target "nios2"
[07:10:12] <OndraSter> not bad lol
[07:10:26] <`Wedge_> OndraSter: well you can use lighthttpd instead of apache
[07:10:46] <`Wedge_> or wait
[07:10:49] <`Wedge_> lighttpd
[07:10:52] <`Wedge_> yeah, that's the name
[07:11:06] <OndraSter> well even fokin TAR won't emerge
[07:11:11] <OndraSter> because of some error
[07:11:16] <OndraSter> too tired to test it again
[07:11:49] <`Wedge_> you can use buildroot to produce a valid toolchain/rootfs for your system
[07:11:57] <`Wedge_> http://buildroot.uclibc.org/download.html
[07:11:59] <OndraSter> what's wrong on using crossdev?
[07:12:10] <OndraSter> I am going away from uclibc
[07:12:16] <`Wedge_> oh, okay
[07:12:18] <OndraSter> half of the stuff won't compile withotu heavy patching
[07:12:27] <`Wedge_> btw, debian is a real option too
[07:12:39] <OndraSter> I had to manually make patch and add the patch to ebuild
[07:12:43] <`Wedge_> look at dev-util/debootstrap
[07:12:45] <OndraSter> to get something working
[07:13:00] <`Wedge_> it can generate debian minimal rootfs
[07:13:13] <`Wedge_> what machine do you have?
[07:13:36] <OndraSter> <OndraSter> I wanted to base it on uclibc because the target is 233MHz CPU with 288MB RAM
[07:13:43] <OndraSter> my PC is virtual machine in vmware :D
[07:13:59] <OndraSter> which I offered two cores and 2 or 3GB RAM, don't remember now
[07:14:04] <`Wedge_> well then debian would suit you just fine
[07:14:23] <OndraSter> nah, I had enough pain with debian already
[07:14:30] <`Wedge_> what's wrong with it?
[07:14:36] <OndraSter> debian.
[07:14:39] <OndraSter> ;D
[07:14:54] <OndraSter> mostly the target couldn't download the kernel from the NFS share
[07:14:57] <OndraSter> no idea why
[07:15:00] <`Wedge_> I've generated rootfs with debootstrap without any problems
[07:15:05] <OndraSter> did the same thing on gentoo - worked fine
[07:15:12] <OndraSter> did the same thing on windows server (!!) - worked fine
[07:15:17] <`Wedge_> what does this have to do with debian?
[07:15:24] <`Wedge_> you mean debian as host ?
[07:15:26] <OndraSter> ye
[07:15:29] <`Wedge_> ah
[07:15:34] <OndraSter> it always finds something to drive me mad
[07:15:55] <`Wedge_> I remember trying to build bash on netbsd on my 180MHz mips router
[07:19:03] <_abc_> `Wedge_: I built a kernel in the 90s on a 33MHz 386SX with 8MB ram and some swap. Does that count?
[07:19:54] <`Wedge_> It wasn't so huge as today, right?
[07:20:02] <_abc_> mrfrenzy: I got the repo with git clone but the docs were not in it, there is a docs dir and there is a skinny doxygen setup in it, and that's it
[07:20:22] <OndraSter> it was kernel 0.1? :)
[07:20:36] <_abc_> 1.2.13 Slackware 3.0 I think
[07:20:51] <inflex> those were the nice days
[07:20:55] <_abc_> heh
[07:21:00] <_abc_> Yeah, for fakirs >:)
[07:21:06] <inflex> get a BX motherboard, a 3Com 509 card... and you were on a roll
[07:21:37] <_abc_> Anyway I prefer straight spartan netbsd or slack to modern ubuntu or debian which has 200 scripts undoing what I did by hand on timed bomb triggers (crontab)
[07:21:40] <`Wedge_> what is so nice about those days?
[07:21:53] <_abc_> `Wedge_: small community, simplicity, lack of bloat
[07:21:58] <inflex> *nod*
[07:22:07] <inflex> 1.2.13 was a damned nice kernel
[07:22:16] <_abc_> `Wedge_: I made a complete linux distro with bash and text tools and a tutorial for beginners on a 1.44MB diskette then
[07:22:32] <_abc_> `Wedge_: I had to hack compressed ramdisks into the kernel for that
[07:22:48] <_abc_> `Wedge_: It ran like today's cdrom live distros but from floppy alone
[07:22:59] <`Wedge_> well It's possible nowadays too
[07:23:03] <inflex> wasn't much spam around then either... and S3 video cards were actually usable :p
[07:23:07] <_abc_> `Wedge_: So dweebs got a chance to work on bash before hosing their shell accounts
[07:23:25] <_abc_> `Wedge_: Nowadays the kernel alone does not fit on a 2.88MB floppy, compressed
[07:23:44] <_abc_> kernel was ~600k then afair
[07:23:46] <`Wedge_> I remember building a kernel with everything removed
[07:23:51] <`Wedge_> 2 years agp
[07:23:57] <_abc_> Oh yes, and it did not have modules...
[07:24:09] <inflex> well, that was a bit of a downer I have to admit... I do like modules
[07:24:23] <inflex> but I never got along with 2.2.x series of kernels... 2.0.37~40 was very nice
[07:24:28] <`Wedge_> and for rootfs I had busybox with some tiny shell only
[07:24:33] <_abc_> Yes you had to get the mix of drivers right because it took 4-8 hours to compile a new kernel
[07:24:38] <`Wedge_> It fit under like 1.2 or something like that
[07:25:08] <inflex> oh and slashdotting lasted a week back then... but your 166MHz Pentium coped just fine
[07:25:32] <_abc_> well all I had at the time was a 28.8k modem which seldomly reached that speed
[07:27:59] <_abc_> Anyway I will take a break and then do a test case of my monster balky firmware
[07:43:32] <jacekowski> my kernel 4 years ago
[07:43:41] <jacekowski> around 2.6.20 was under 2M
[07:44:58] <jacekowski> now my kernel is 6.0M /boot/vmlinuz-3.3.6-grsec-xxxx-grs-ipv6-64
[07:45:00] <OndraSter> my current kernel for the thin client is 1.7MB with bzip2 compression :)
[07:45:07] <jacekowski> with lzo
[07:45:10] <OndraSter> 2.1 with gzip
[08:23:07] <_abc_> my freeglut installation does not define GL_FRAMEBUFFER anywhere. This is in the simavr context. Does anyone know about this poblem?
[08:23:50] <_abc_> the example/board_reprap does not build in simavr
[08:23:54] <_abc_> ideas?
[08:26:44] <Tom_itx> i'd suggest you ask in #reprap
[09:02:29] <_abc_> brr
[09:02:39] <_abc_> It's a freeglut issue, it does not implement some things
[09:02:51] <_abc_> Also simduino crashes
[09:02:58] <_abc_> Also likely a freeglut issue
[09:03:09] <_abc_> Anyway I may have enough to work with, thanks for now
[09:03:22] <_abc_> >> Tom_itx
[10:49:51] <OndraSter> http://9gag.com/gag/4437510
[14:15:19] <iR0b0t1> Oh god damn it that guy again.
[14:19:40] <specing> Haha
[14:31:32] <iR0b0t1> SuperMiguel: YOU. EXPLAIN YOURSELF.
[15:27:44] <OndraSter> http://www.islandsoft.cz/img/jokes/6.jpg
[15:27:46] <OndraSter> programmers
[15:30:42] <specing> lol
[15:36:13] <`Wedge_> if we need to go deeper then we have a SERIOUS problem
[15:37:43] <specing> SERIOUS **** problem;
[15:39:19] <`Wedge_> the only thing I have done so far is declare an array of pointers to a structure
[15:39:25] <OndraSter> hmm this is weird... I chrooted into the system, using passwd I set password but when I boot it and try to login, it fails, supposedly wrong user&pass combination
[15:39:27] <OndraSter> same for SSH
[15:39:28] <OndraSter> :(
[15:39:53] <OndraSter> Login incorrect
[15:43:13] <OndraSter> woah
[15:43:17] <OndraSter> ignore that
[16:15:09] <Guest76002> Wow SuperMiguel has a worse connection than even me
[17:18:49] <sabesto> Anyone successfully made an usb<->serial converter for the STK500?
[17:18:57] <sabesto> or bough one that worked
[17:20:18] <Casper> I tought all worked with it?
[17:20:46] * prpplague has never heard of one not working
[17:21:02] <Casper> stk500 is a true serial, not bitbang one
[17:21:04] <sabesto> read on the avrfreaks forum, someone mentioned people having trouble with it
[17:21:08] <specing> I have no clue why 1/2 of the people in #avr lack a hardware serial port....
[17:21:20] <OndraSter> http://www.youtube.com/watch?v=NCGzKDTFBSQ&feature=related
[17:21:20] <OndraSter> LOL
[17:21:23] <OndraSter> the beginning
[17:21:30] <Casper> specing: becase they are now deprecated
[17:21:31] <specing> I have like 10 computers with serial ports, some have even three!
[17:21:57] <Casper> it's actually easier to find a computer with a working floppy drive than one with a serial port
[17:22:16] <sabesto> i got 10 STK500's for sale at our student club, most of the students dont have a serial port, that was not what the question was about either
[17:23:14] <Casper> and sabesto, it seems to me like almost everyone that have issues with the stk500 is a software or user fault
[17:23:39] <Casper> find the world most reliable thing, and people will have issue with it
[17:23:55] <sabesto> Casper: i have not tried any converters yet, i'm just checking if its a known issue or not
[17:24:15] <Casper> not that I am aware of
[17:24:17] <sabesto> because i might have to get some converters in stock
[17:24:33] <Casper> I think even the el cheapo one worked
[17:24:35] <sabesto> got 20 STK600 too, guess those will be sold first
[17:25:04] <sabesto> a little larger though
[17:28:32] <specing> sabesto: Your advanced student club could design its own ?-serial modules
[17:29:17] <specing> pcmcia/pci-serial bridges with FPGAs
[17:29:31] <specing> usb-serial with atmega8u2s
[17:29:36] <sabesto> that was the plan, i just read this: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=51387
[17:29:47] <sabesto> "The Baud rate then will be the least of your problems I would suspect, even with commercial units many people can't get the STK500 to work."
[17:31:17] <specing> Duh, you can change the baudrate through usb
[17:32:05] <sabesto> shure, but uber super freak claims it cant be done
[17:32:46] <sabesto> i dont see why not, i just dont have time to deal with it if its tricky
[17:49:14] <cehteh> pin change interrupts are active in adc-noise-reduction sleep on a tiny13 right?
[18:26:30] <specing> cehteh: If they are synchronous (don't remember) and the sleep mode disables peripheral/IO clock, then no
[18:28:24] <OndraSter> why are SSRs so expensive?
[18:28:29] <OndraSter> $15+ for something like 4A
[18:28:32] <OndraSter> :/
[18:29:22] <specing> Because:
[18:29:49] <specing> a) So you have something to ask
[18:30:24] <specing> b) Because something has to be last when you click "sort by price"
[18:30:43] <specing> c) Because they have a fancy name
[18:31:17] <specing> d) Because nobody buys them and are thus expensive as low-quantity items
[18:31:40] <OndraSter> :(
[18:31:42] <specing> e) So that you would consider using something better
[18:31:52] <OndraSter> what is better than SSR?
[18:32:21] <specing> f) Maybe they are used in the RICH automotive industry
[18:32:45] <OndraSter> I suppose that triac could work better even
[18:32:58] <specing> g) all of the above +:
[18:33:13] <specing> h) the stars are not properly aligned for it to become cheap
[18:33:17] <OndraSter> hehe
[18:33:24] <OndraSter> SSRs are made out of unobtainium :P
[18:33:28] <OndraSter> or moonium
[18:33:32] <OndraSter> mooninium
[18:33:48] <OndraSter> nah, moon rocks are good for something else
[18:33:53] <OndraSter> making portal-capable surfaces :D
[18:34:00] <specing> i) the americans are occupying the countries with rich deposits of unobtainium(the stuff SSRs are made of) and wont let anyone get to it
[18:34:35] <specing> j) They could be made of comets/fallen asteroids
[18:35:18] <specing> k) They tried to move all the production to China, but they couldn't find an empty factory
[18:35:31] <OndraSter> :D
[18:35:32] <specing> l) there were no workers available there
[18:35:36] <OndraSter> that's a good one
[18:36:03] <specing> m) God said "Let there be expensive SSRs" and thus expensive SSRs were made
[18:36:41] <specing> n) The atheists destroyed most of the SSRs in an attempt to cover up god's existance
[18:37:03] <OndraSter> :D
[18:37:08] <specing> o) The aliens abducted most of the SSRs and failed to return them
[18:38:00] <OndraSter> borrowed*
[18:38:08] <OndraSter> arrgh we did test at school with triac's
[18:38:11] <OndraSter> triacs
[18:38:22] <OndraSter> but related to beta (the open angle) against output Vrms
[18:38:30] <OndraSter> but we didn't measure the gate voltage etc
[18:38:39] <specing> p) Some were brought from the future in a tiny deLorean
[18:38:59] <specing> r) whoever was driving it failed to return to his timeline for more
[18:38:59] <OndraSter> so I am not sure whether the "open" for managing the triac is really so small (0.5 - 2.5V) or that I am reading it wrong
[18:39:42] <specing> s) they were destroyed along with dinosaurs and only a few survived
[18:40:58] <specing> t) there is only one manufacturer that is being a patent troll
[18:41:24] <specing> u) There are probably lots of chinese clones under a different name
[18:42:04] <specing> v) They are prized possesions and a symbol of skilled ele* something
[18:42:39] <specing> z) They were destroyed in order to prevent a major zombie apocalipse
[18:43:23] <specing> w) the distributor knows that you are checz(or w/e) and adjusts prices accordingly
[18:44:05] <specing> x) So that specing would have something to spam #avr with at 1:30 AM
[18:44:31] <kline> sabesto: ^ :D
[18:44:54] <specing> y) . -- sorry, I ran out of ideas
[18:45:53] <cehteh> OndraSter: Solid-State-Relais, U: 600V, Ir: 16A, If: 20mA, 5,65 € here
[18:46:03] <OndraSter> here = where?
[18:46:18] <OndraSter> specing, "czech" it is spelled, "czech"
[18:46:27] <cehteh> germany which is meant to be very expensive when it comes to electronic components
[18:46:31] <sabesto> kline: yep
[18:46:31] <OndraSter> hmm
[18:46:36] <OndraSter> and which shop?
[18:46:41] <cehteh> reichelt.de
[18:46:47] <OndraSter> hmm reichelt
[18:46:51] <Casper> specing: weak...
[18:46:59] <OndraSter> I saw, not sure if it was reichelt, xmegas for like 10€+
[18:47:08] <OndraSter> when they were for 3€ on mouser
[18:47:27] <cehteh> reichelt is reasonable cheap .. with some parts
[18:47:42] <OndraSter> bah I will go for triac most likely
[18:47:51] <OndraSter> and small circuitry around it
[18:48:11] <OndraSter> triac* I need just one
[18:48:12] <specing> Casper: STRONG...
[18:48:27] <Casper> specing: you didn't made it to z
[18:48:38] <specing> I did
[18:48:38] <OndraSter> you forgot "q"
[18:48:46] <specing> The order is wrong though
[18:48:57] <specing> OndraSter: I did not
[18:49:05] <OndraSter> hmm?
[18:49:07] <specing> OndraSter: you (q)uestion is Q :D
[18:49:11] <OndraSter> oh
[18:49:11] <OndraSter> :D
[20:00:03] <OndraSter> is it just me
[20:00:16] <OndraSter> or is the "USI" aka SPI/TWI in one quite... "complicated" compared to regular SPI
[20:00:18] <OndraSter> on megas?
[20:00:20] <OndraSter> this is tiny2313
[20:01:08] <OndraSter> one has to manually clock the thing
[20:04:52] <OndraSter> if there was at least PWM on the SCK pin :P
[20:06:30] <specing> yay tiny2313
[20:06:42] <specing> Im doing some hacking on it too, atm :D
[20:07:06] <specing> Also I need ot get some sleep :)
[20:07:23] <specing> Also I caused a flame war in ##fpga
[20:07:33] <specing> bb
[20:07:41] <drgreenthumb> ah crap I forgot to rejoin that chan. what was it about? :)
[20:07:53] <specing> verilog vs vhdl
[20:08:02] <drgreenthumb> heh
[20:08:07] <drgreenthumb> verilog! ;p
[20:08:19] <drgreenthumb> vhdl is like some kind of weird alien language, for reals.
[20:08:52] <Tom_itx> yay specing!
[20:09:49] <specing> Yes, I asked about a good verilog book
[20:10:09] <specing> instaflamewar
[20:10:47] <Tom_itx> http://tutor.al-williams.com/wpv-1.htm
[20:11:44] <drgreenthumb> http://www.asic-world.com/verilog/veritut.html that's the one I've been reading