#avr | Logs for 2014-10-10

Back
[00:17:44] <rue_house> I wonder
[00:18:29] <rue_house> what the odds are, that with an irq pushing 16 bit values into memory locations, and the main loop pulling them out, that I will catch a situation that the main loop pulls a half updated value
[00:19:33] <Casper> 50/50? :D
[00:20:05] <rue_house> for(i = 0; i < 8; i++) {
[00:20:05] <rue_house>
[00:20:05] <rue_house> // 00cccddd 1ddddddd
[00:20:05] <rue_house> while(i == (ADMUX&7)); // dont go on values about to be worked on.
[00:20:05] <rue_house> temp = AdcValues[i];
[00:20:11] <Casper> your main loop should disable the interrupt, copy, then reenable
[00:20:25] <rue_house> technically I suppose yea
[00:20:31] <rue_house> or that should work
[00:20:35] <Casper> but bed time...
[00:20:42] <Casper> nite (and go to bed too!)
[00:46:20] <rue_house> yaya I got it
[00:46:31] <rue_house> my syntax errors helped me debug the output
[00:59:37] <obnauticus> any reason why the bits on the brown out control will not set on my AVR? It keeps failing when I try to program my m32u4 with all of the BOD off
[00:59:43] <obnauticus> i.e., and efuse as 0xFF
[02:03:50] <obnauticus> When I change the boards.txt, and attempt to recompile the arduino bootloader--does that also change the bits the bootloader is compiled for?
[02:42:14] <Mike1> hi folks! Anyone here using Eclipse Luna + avarice + AVR Dragon + ATXMega successfully?
[02:42:58] <Mike1> I’ve managed to get it somewhat working but it’s slow and the disassembly won’t show. „Unable to retrieve disassembly data from backend.“
[02:43:21] <Mike1> though the disassemble command works perfectly fine in avr-gdb
[07:40:07] <Getty> someone here more experience with double use of code, like testing/developing on i386 but code that then goes into the AVR? shouldnt be a big deal, or?
[07:40:19] <Getty> (i still dont have the processor in hand but the resources are there, so i want to predo stuff)
[07:45:23] <Tom_itx> simulate it in studio
[07:45:42] <Tom_itx> or be patient.
[07:46:04] <Getty> HAHAHAHAHAHAHHAHAH i am getty, you seem to not know me ;)
[07:46:16] <Getty> i already made a complete simulator of the hardware while waiting
[07:46:50] <Getty> yeah studio.... that scary big monster.... tried to use it.... the problem here is: how i get the studio at all to emulate the ENC?
[07:47:00] <Getty> i mean i cant really test the network without having network chip
[07:47:34] <Getty> (my main problem with it, that i get overflooded by studio itself... its such a huge environment, and we poor unix coders are not used to that hehe)
[07:49:15] <Tom_itx> some things it won't emulate
[07:49:18] <Tom_itx> like adc
[08:05:37] <twnqx> Getty: i suppose unit tests should work
[08:06:14] <Getty> yeah i think in our case, where we have a minimal webserver we definitly can for sure test this independent in C on the unix machine i386
[08:06:29] <Getty> i just wanted to ask if someone here has a bit more experience in that direction
[08:06:41] <twnqx> i am still writing an emulator for a certain cpu
[08:06:44] <twnqx> but soon: china
[08:06:54] <twnqx> which means 1-2h lunch breaks with nothing better to do but coding on it
[08:11:58] <Getty> lol
[08:12:01] <Getty> what are you doing in china?
[08:12:27] <Getty> i cant imagine going to china, would feel like never coming back ;) (but i also said i will never go back to US, that is already too scary)
[08:21:48] <inflex> lo there Tom_itx , Getty , twnqx
[08:21:59] <Getty> \o
[08:22:20] <twnqx> Getty: US is a country i won't go to either
[08:22:31] <twnqx> china is not too bad... but no place where i could stay
[08:22:35] <twnqx> it's just work
[09:11:21] <Getty> twnqx: i was there once, and i am happy i saw, cause else i wouldnt have believed it, but now its clear that i dont wanna go again
[09:11:45] <Getty> twnqx: i am keen on checking out canada :) if i can afford it i really wanna go to a specific yearly festival there
[09:12:03] <twnqx> one of the best things about china
[09:12:08] <twnqx> is how close it is to japan
[09:12:15] <twnqx> for a weekend trip to tokyo or so
[09:12:27] <Getty> yeah but isnt japan more like a target for "a year or so"?
[09:12:36] <twnqx> hm
[09:12:39] <twnqx> too expensive P
[09:12:41] <twnqx> :P
[09:13:20] <twnqx> but yeah, i actually considered rebasing to tokyo for some time, given i will have spent about half the year in china
[09:13:21] <Getty> i dont know, yet had no reason going asia
[09:13:43] <Getty> and i am more the brazil guy ;)
[09:13:52] <Getty> next time i go there for some months
[09:14:02] <Getty> put my office there
[09:15:22] * twnqx knows a brazilian who fled to tokyo...
[09:15:30] <Getty> hahaha i can see reasons for this
[09:15:40] <Getty> the organization level is horrible......
[09:15:45] <Getty> for a german hard to watch often
[09:15:55] <twnqx> tell me about it
[09:15:56] <twnqx> ...
[09:16:01] <twnqx> but that's the same inc hina.
[09:16:13] <Getty> but the weather..... and the girls..... and the weather.... and the girls....
[09:16:37] <Getty> when i first time visited brazil cause of work... on the first night i had anything i needed...... 8-)
[09:16:56] <Getty> and the weather......
[09:17:00] <twnqx> i spent a week in sao paulo
[09:17:03] <Getty> i just need this weather and a pool and all is awesome
[09:17:11] <twnqx> then we spontaneously decided on a weekend in rio
[09:17:13] <Getty> sao paulo is good entrance but its literally just one road interesting there
[09:17:16] <Getty> yes!
[09:17:17] <Getty> good choice
[09:17:28] <Getty> fogo de chao? porcao?
[09:17:30] <Getty> thats relevant!
[09:17:34] <Getty> you HAVE TO EAT THERE
[09:17:50] <twnqx> :D
[09:18:14] <Getty> thats literally the main reason why i wanna go there i must admit
[09:18:32] <Getty> for 50 EUR in fogo de chao you get the best eating experience.....
[09:18:35] <Getty> and that every damn time!
[09:18:46] <Getty> its not like there is a bad day or something, no the complete experience is just perfect
[09:18:53] <Getty> and if you are fancy you invest 75 EUR and go to porcao
[09:19:08] <Getty> the meat is better in fogo de chao but porcao has an AMAZING side dishes line
[09:19:18] <Getty> like everything from salmon to whatever fruit stuff
[09:19:29] <Getty> thats all missing on fogo de chao, there its just a base set of salads and stuff, they concentrate on the meat
[09:20:01] <twnqx> heh
[09:20:11] <Getty> its a bit ironical that i had to invite the locals i know there to the place as they were unable to afford it ever
[09:20:19] <Getty> they knew those places exist, but never had it on their scope for getting in
[09:20:20] <twnqx> i find good stuff to eat in almost every country :3
[09:20:29] <Getty> i am picky... i am not like trying out all stuff
[09:20:40] <Getty> i need meat... i need good meat.... and i need it in small slices.....
[09:21:05] <Getty> sidedish? rice with some bernaise or something..... nothing fancy, doesnt need to irritate the meat
[09:21:07] <twnqx> there's a nice churasceria in dubai
[09:21:29] <Getty> yeah sure i really wanna go dubai ;-)
[09:21:40] <Getty> </sarcasm>
[09:21:42] <twnqx> twice a year or so for me
[09:21:52] <Getty> no way
[09:22:15] <Getty> all that eastern area is a black flag for me, for sure ;)
[09:22:40] <Getty> but hey, what about africa?
[09:22:57] <twnqx> only had one random flight to asmara that wasn't supposed to go there
[09:23:05] <Getty> i really would love to enjoy some place in africa via a tech conference, or even try helping to create one there gathering experts who also would like to enjoy this
[09:23:26] <Getty> but its hard to get that going, no idea where to start or hook in, without contacts
[09:23:38] <twnqx> the southafrican guys in here? :>
[09:23:51] <Getty> south africa would be probably the only exception here i thin
[09:23:51] <Getty> k
[09:24:04] <Getty> one target i saw is marocco
[09:24:04] <twnqx> the one place you would not want to go to?
[09:24:13] <Getty> which actually has an afford to support tech in their country
[09:25:08] <Getty> lets say: south africa would be a lame jump for the africa topic ;) i think that is "covered"
[09:25:14] <Getty> i bet they have regeulary tech conferences there
[09:26:02] <Getty> i am really keen on this thought of sharing knowledge, as i did this in brazil on the tech conference
[09:26:17] <Getty> and the feedback was AMAZING...... i did the same talk on several conferences but there it was like a rush for the people
[11:19:39] <N1njaneer> http://i.imgur.com/LSdZUg7.jpg Now with Real Raspberry Coolant Filling(tm)!
[14:22:58] <Kre10s> is there a channel for PIC like there is for AVR?
[14:24:00] <Kre10s> I'm looking for a compiler that supports the 18F258
[14:26:01] <xrlk> my 2 atmega328s arrived
[14:28:40] <xrlk> still waiting on my atmega328p and the programmer tho
[14:51:12] <Tom_itx> no
[14:51:29] <Tom_itx> Kre10s, CCS C probably does
[14:51:45] <Tom_itx> xrlk what programmer did you get?
[14:53:16] <xrlk> https://www.sparkfun.com/products/9825 I know this one isn't good, but I got it because it was more convenient to bundle it with my other purchases
[14:54:12] <xrlk> I will probably get a better one later
[14:54:16] <Tom_itx> it should be ok
[14:54:22] <Tom_itx> mine is the best :)
[14:54:38] <xrlk> i heard
[14:54:51] <Tom_itx> i'm sitting here making some right now
[14:55:29] <Tom_itx> those bit banged ones are ok but they're slow
[14:55:35] <Tom_itx> alot better than some out there
[14:56:22] <Tom_itx> i made some of those too before i had this good one
[14:56:50] <Tom_itx> http://tom-itx.ddns01.com:81/~webpage/attiny2313/mini_usb_batch1.jpg
[14:57:00] <xrlk> wow
[14:57:10] <Tom_itx> i'd send you one free for the postage :D
[14:57:37] <xrlk> How much
[14:57:43] <Tom_itx> 7
[14:57:59] <xrlk> Sure
[14:58:07] <Tom_itx> http://tom-itx.ddns01.com:81/~webpage/boards/reflow/cooling.jpg
[14:58:32] <Tom_itx> http://tom-itx.ddns01.com:81/~webpage/boards/new_batch/USB_chips.jpg
[14:58:35] <Tom_itx> i've made a few
[14:58:58] <xrlk> Yea, that's crazy
[14:59:02] <xrlk> in a good way
[14:59:13] <Tom_itx> i'd send you one but i won't support it now
[14:59:27] <Tom_itx> they're still good, i just don't use them anymore
[15:00:14] * Tom_itx goes back to soldering
[15:01:23] <xrlk> have fun with that
[15:05:42] <Fleck> Kre10s: ##pic ?
[15:27:20] <LeoNerd> Huh.. This is weird. sprintf()'ing %x into a char buffer[16] then fputs() => works fine. fprintf()'ing directly, => no crash but no output
[15:28:21] <LeoNerd> Or I can even fprintf(f, "%s", buffer) and that works
[15:29:08] <LeoNerd> Aha.. but fprintf(f, "<%s>", buffer) instantly crashes
[15:30:35] <LeoNerd> fprintf(f, "%s>", buffer) outputs nothing, does not crash.
[15:32:35] <LeoNerd> Oooooh... Because gcc is compiling fprintf(f, "%s", buffer) into fputs(buffer, s) so printf never gets called
[15:33:45] <Jordan_U> clever gcc :)
[15:34:20] <LeoNerd> Yes.. though frustrating in my case. I think it does genuinely seem that printf just crashes, except that snprintf() seems to be fine. :(
[15:35:31] <Jordan_U> LeoNerd: Does an fputs after a failed prinf work?
[15:36:09] <LeoNerd> fputs after a no-outputting printf, works fine
[15:36:16] <LeoNerd> Obviously if it crashes it doesn't get that far ;)
[15:40:54] <LeoNerd> Random thoughts: does the (non-s) fprintf() need malloc to run? If so: do I need to set up anything special to make malloc work?
[16:06:40] <LeoNerd> http://stackoverflow.com/questions/26307797/fprintf-on-avr-libc-instantly-crashes in case anyone has any insight
[16:07:32] <LeoNerd> Huh, I just realised maaaaybe that should have gone on electronics.SE instead
[16:15:31] * LeoNerd goes to read the fprintf source
[16:48:01] <Duality> hi
[16:51:56] <N1njaneer> Hi Duality!
[17:08:26] <malinus> Di
[17:42:37] <xrlk> I got my sram
[17:42:43] <xrlk> still waiting for the programmers
[17:47:43] <malinus> I don't get it :(
[19:21:19] <vsync> hi fags
[19:25:33] <Sevalecan> do you regularly speak with cigarettes?