#avr | Logs for 2012-08-30

Back
[01:14:13] <tmpvar> OndraSterver, you around?
[04:29:52] <OndraSterver> tmpvar, yes
[05:14:41] <JoeLlama> moo
[06:19:33] <tomatto> it is not enough to include avr/eeprom.h? undefined reference to `__eerd_byte_m8'
[06:21:03] <specing> tomatto: is that a compiler, assembler or linker error?
[06:21:45] <tomatto> linker
[06:25:40] <specing> tomatto: have you checked out dean's eeprom tutorial?
[06:25:52] <tomatto> no
[06:26:32] <specing> So you just barged into this room without reading the docs beforehand?
[06:26:50] <OndraSterver> who didn't?
[06:28:17] <specing> tomatto: did you atleast google your error message?
[06:32:19] <tomatto> specing: yes, but not helpful
[06:32:48] <specing> tomatto: did you read what eeprom.h has to say about linking?
[06:34:09] <tomatto> i don't read about it
[06:38:11] <tomatto> or is this assembler error?
[06:38:12] <tomatto> BL.o: In function `l1':
[06:38:13] <tomatto> BL.c:(.text+0x4e): undefined reference to `__eerd_byte_m8'
[07:02:23] <karlp> awesome, recompiled and reflashed yesterday's code, no longer hangs and resets
[07:02:37] <tomatto> is this possible? avrdude: current erase-rewrite cycle count is 16777215 (if being tracked)
[07:04:41] <OndraSterver> no
[07:04:56] <GuShH> http://www.goodluckbuy.com/mini-usb-download-programmer-debugger-for-avr-jtag-ice-atmega-avr-studio-64-digit.html
[07:05:30] <tomatto> OndraSterver: but how is it possible?
[07:05:32] <OndraSterver> GuShH, check compatible devices and that only as4 works
[07:05:47] <OndraSterver> tomatto, the value in EEPROM reads 0xFFFFFFFF
[07:05:49] <OndraSterver> or something
[07:05:52] <OndraSterver> ..
[07:05:52] <GuShH> OndraSterver: as4?
[07:05:57] <OndraSterver> avr studio 4
[07:06:17] <GuShH> OndraSterver: can you beat the price?
[07:06:27] <OndraSterver> fairly easily, since it is useless for me :)
[07:06:33] <tomatto> OndraSterver: eeprom?
[07:06:33] <GuShH> Who cares about you!
[07:06:35] <OndraSterver> can't program any newer mega, xmega or anything
[07:06:36] <OndraSterver> lol
[07:06:42] <OndraSterver> tomatto, yes, the flash counter is stored in EEPROM
[07:06:46] <OndraSterver> read avrdude's manual
[07:06:58] <GuShH> I think if you add 3 bucks you can get a better one
[07:07:06] <OndraSterver> hmm?
[07:07:10] <OndraSterver> I doubt that :)
[07:07:16] <OndraSterver> cheapest debugger for new devices is Dragon
[07:07:58] * GuShH eyerolls
[07:08:36] <GuShH> OndraSterver: elitism ain't good. sucking up to brands isn't either.
[07:09:14] <tomatto> OndraSterver: do you know what address is it?
[07:09:20] <OndraSterver> tomatto, 0
[07:09:22] <OndraSterver> I think
[07:09:23] <OndraSterver> CHECK MANUAL
[07:09:28] <OndraSterver> I have never used avrdude
[07:09:33] <OndraSterver> GuShH, ?
[07:09:44] <OndraSterver> do you want to grab some ARM stuff or what are you talking about? :D
[07:09:59] * GuShH shakes fist
[07:10:22] <tomatto> OndraSterver: you are using avrstudio?
[07:10:28] <OndraSterver> no
[07:10:30] <OndraSterver> atmel studio :P
[07:10:35] <OndraSterver> same thing, but newer
[07:11:22] <GuShH> elitist
[07:11:38] <GuShH> bet his truck is better than yours too, tomatto!
[07:11:53] <OndraSterver> I wish I had a truck
[07:11:55] <OndraSterver> or at least a car!
[07:12:15] <tomatto> GuShH: what are you talking about?
[07:12:26] <OndraSterver> I am afraid he has been smoking
[07:12:29] <GuShH> tomatto: just messing around with OndraSterver
[07:12:33] <GuShH> I don't smoke sir.
[07:12:44] <OndraSterver> I think you were smoking some flux, GuShH
[07:12:47] <OndraSterver> :P
[07:12:50] <GuShH> lol
[07:12:55] <GuShH> flux huffin' is bad for you.
[07:13:04] <GuShH> I actually try not to inhale that stuff.
[07:13:29] <GuShH> but I think I get a higher dose when I cut pine wood than when I'm soldering
[07:13:40] <OndraSterver> I am trying not to inhale flux as well
[07:13:46] <OndraSterver> but sometimes I am too lazy to power up the sucker
[07:13:57] <GuShH> then just hold your air?
[07:14:02] <OndraSterver> yes
[07:14:09] <GuShH> 'til you turn blue, they say it gives a better....
[07:14:11] <GuShH> nevermind
[07:14:25] <GuShH> but if anyone finds OndraSterver hanging from the soldering station cable, we know what happened.
[07:14:37] <OndraSterver> soldering killed me
[07:15:55] <GuShH> more like autoerotic asphyxiation
[07:16:45] * GuShH nods
[08:14:42] <RikusW> zlog
[08:28:18] <RikusW> GuShH: I have a free jtagice mki
[08:28:50] <RikusW> you'll need an AVR chip to make it
[08:30:40] <GuShH> RikusW: o.o
[08:30:50] <GuShH> will I need the fifth element as well?
[08:31:07] <RikusW> no
[08:31:26] <RikusW> Source is on the jtag tab http://sites.google.com/site/megau2s/home
[08:31:34] <RikusW> you'll need AS to compile
[08:31:47] <GuShH> but what came first, the chicken or the egg?
[08:32:04] <RikusW> you'll need an ISP programmer
[08:32:27] <RikusW> and a mega8
[08:34:13] <RikusW> hmm, it might actually fit on a m48
[08:35:10] <GuShH> looks neat
[08:35:33] <GuShH> how much is postage and the pixie dust
[08:35:35] <RikusW> I have a newer version that can program all atmega's
[08:35:47] <RikusW> avrdude and avarice will need some convincing though
[08:36:07] * GuShH hands RikusW the convincer, aka hammer
[08:36:14] <RikusW> lol
[08:36:42] <RikusW> GuShH: the jtag clone is free
[08:36:51] <RikusW> the source and original disasm is on there
[08:37:21] <RikusW> The board is roughly $25 or E20
[08:45:15] <RikusW> AS4 SP3 seems to be able to program all megas with my clone, though debugging is locked out
[08:45:22] <RikusW> only works with old megas
[08:45:32] <RikusW> but thats a AS4 problem
[09:14:19] <tomatto> will happen anything wrong, when i unconnect VCC from AVCC pin when ADC is running?
[09:15:26] <OndraSterver> why would you do that?
[09:19:42] <specing> tomatto: it will blow up and explode.
[09:20:12] <tomatto> OndraSterver: i want to add LC filter for it
[09:20:15] <OndraSterver> also when you divide by zero on avr it makes a hole right in the center
[09:20:22] <OndraSterver> tomatto, you want to solder on running chip?
[09:20:32] <tomatto> OndraSterver: on breadboard
[09:20:39] <OndraSterver> just... power it off?
[09:20:55] <tomatto> OndraSterver: is it necessery?
[09:21:17] <OndraSterver> if you had powered if ott, connected it and powered it back on, you would have it already :P
[09:21:20] <OndraSterver> powered it off*
[09:21:32] <tomatto> i am not able to unplug vcc and avcc at the same time
[09:21:51] <OndraSterver> just unplug the power supply
[09:21:54] <OndraSterver> from the breadboard
[09:22:56] <tomatto> i wouldn't, but i will have to
[09:23:57] <specing> lololol
[09:24:08] <specing> I think tomatto is overcomplicating
[09:24:27] <OndraSterver> yep
[09:24:28] <tomatto> i have more than this mega on breadboard
[09:24:36] <OndraSterver> so power it all off
[09:24:36] <tomatto> but it will be fine
[09:24:41] <tomatto> i know
[09:25:29] <specing> tomatto: you have a giga on your breadboard? lol
[09:27:01] <tomatto> giga?
[09:27:07] <OndraSterver> <tomatto> i have more than this mega on breadboard
[09:27:09] <OndraSterver> :P
[09:27:18] <specing> more than mega = giga
[09:27:26] <specing> ATgiga8 xD
[09:27:33] <OndraSterver> Atgiga16
[09:30:02] <tomatto> i ment atmega8, guys
[09:32:06] <tomatto> more than this atmega
[09:32:10] <tomatto> very funny
[09:38:31] <specing> tomatto: cool story, bro.
[09:40:17] <tomatto> ehm?
[09:41:48] <tomatto> what?
[09:43:27] * specing gives tomatto a free ATkilo8
[09:44:36] <Richard_Cavell> What's the basic difference between a tiny and a mega?
[09:45:35] <specing> -USI
[09:45:40] <specing> +everything
[09:45:52] <specing> +mul
[10:57:14] <Xata> hello human beings
[10:58:24] <Xata> how do i #define PORTB first 4 and other 4 bits to 2 separate 4bit pseudo-registers?
[10:58:56] <Xata> using gcc-avr C syntax ofc
[11:01:19] <ziph> As a chicken I'm offended by your assumption.
[11:01:26] <ziph> (Bok)
[11:02:47] <Xata> i don't even...
[11:12:24] -moorcock.freenode.net:#avr- [freenode-info] channel trolls and no channel staff around to help? please check with freenode support: http://freenode.net/faq.shtml#gettinghelp
[11:13:44] <karlp> heh, what a surprise, working with 64bit numbers blows my stack.
[11:15:16] <megal0maniac> As a figure of speaking? :P
[11:17:22] <karlp> it either runs out of registers or soemthing, but I end up returning from a function with variables all destroyed
[11:28:44] -gibson.freenode.net:#avr- [freenode-info] help freenode weed out clonebots -- please register your IRC nick and auto-identify: http://freenode.net/faq.shtml#nicksetup
[11:29:46] <Tom_itx> zlog
[11:38:42] <megal0maniac> Who are our bots?
[11:40:26] <megal0maniac> And does anyone know how to get clock_prescale_set working on a 32u2?
[11:43:34] <megal0maniac> Nevermind. Just figured it out :) Funny that WinAVR doesn't have the patch implemented. It's quite an old bug
[11:52:32] * amee2woof idly books tickets for UFACon in GuShH's name
[11:54:45] <GuShH> amee2woof: what's UFACon?
[11:55:14] <amee2woof> http://en.wikifur.com/wiki/UFACon
[11:55:15] <GuShH> ultimate furry anal convention?
[11:55:21] <amee2woof> a furry con in argentinia :P
[11:55:35] <GuShH> jeez
[11:55:37] <GuShH> they're everywhere!
[11:55:40] <GuShH> never seen one though.
[11:55:42] <amee2woof> you sould go there!
[11:55:56] <GuShH> I should?
[11:56:02] <GuShH> but where am I going to get the bomb?
[11:56:10] <amee2woof> you're welcome to stop at my place and look at me anytime. if possible, bring pizza
[11:56:44] <Corwin> bomb? wtf happened to this channel?
[11:56:53] <amee2woof> GuShH happened
[11:56:54] <GuShH> Status Defunct
[11:56:56] <amee2woof> obviously
[11:57:02] <GuShH> I'd bomb the furries!
[11:57:06] <amee2woof> meh.
[11:57:27] <Corwin> but why?
[11:57:44] <amee2woof> going to a convention? or bombing it?
[11:58:11] <GuShH> why not
[11:59:05] <amee2woof> because furries are cool?
[11:59:19] <GuShH> "art" by the convention organizer http://us.vclart.net/vcl/Artists/Zorro-Re/index03-by-date.html
[11:59:21] <GuShH> it's all porn dude.
[11:59:52] * amee2woof idly looks at his desktop wallpaper
[11:59:54] <GuShH> wtf
[12:00:01] <amee2woof> is furry is all porn, then i'm not furry after all :(
[12:00:24] <Steffanx> wtf did amee2woof use!?
[12:00:39] <amee2woof> i used something?
[12:00:46] <Corwin> amee2woof, care to share wallpaper?
[12:00:55] <Steffanx> Sure you did amee2woof
[12:01:03] <amee2woof> cool. what did i use?
[12:01:07] <GuShH> http://4.bp.blogspot.com/-EsQNdm2bzjs/TgD0V99QVNI/AAAAAAAAAUM/DuoYxN_SWbA/s1600/areyoufuckingkiddingme_1200px_by_crusierpl.png
[12:01:27] <Steffanx> How do i know?
[12:02:11] <amee2woof> you tell me
[12:02:14] <amee2woof> not even i knew
[12:02:23] <amee2woof> http://ompldr.org/vZmFvcg/desktop.png
[12:02:59] <Corwin> gnome ?
[12:03:04] <amee2woof> yes
[12:03:15] <Corwin> version 2. something?
[12:03:22] <amee2woof> deb 6, actually
[12:04:03] <specing> lmao gnome
[12:04:12] <specing> how can you use that sh*t?
[12:04:39] <amee2woof> um... i press the power button, log in, and use it. as simple as that
[12:04:41] <Steffanx> Aah, there's an specing and this "everything i don't use is shit"-talk
[12:04:45] <Steffanx> *and
[12:04:52] <Steffanx> -and :)
[12:04:56] <amee2woof> but... it is!
[12:05:00] <specing> i've used gnome for about 3 years
[12:05:09] <amee2woof> just that i like using shit products occasionally
[12:05:15] <specing> but I don't use it anymore
[12:05:21] <specing> guess why!
[12:05:34] <Corwin> you started using windows? :)
[12:05:53] * megal0maniac likes windows
[12:05:54] <GuShH> jeez, now a friend thinks cleverbot is an ai.
[12:06:36] <tmpvar> OndraSterver, haha, you responded while I was asleep. Here is the latest http://i.imgur.com/94wQF.png
[12:08:22] <tmpvar> OndraSterver, mainly I'm concerned about R3 (10ohms) -- is that a typical value for the low pass filter going to AVCC?
[12:16:30] <jadew> my dht11 sensors just arrived, the bastards aren't compatible with the Dallas 1-wire protocol
[12:16:46] <jadew> they are 1-wire, just not the standard 1-wire
[12:17:36] <karlp> you didn't know that before you bought them?
[12:17:41] <karlp> it's written all over them!
[12:17:41] <jadew> no
[12:17:55] <jadew> I read 1-wire, I was like yey \o/
[12:17:56] <karlp> debugWire is 1 wire too, but also not compatible
[12:18:05] <jadew> true...
[12:18:34] <GuShH> lol
[12:18:56] * GuShH hangs jadew with 1-wire
[12:19:20] * jadew can't understand the protocol
[12:19:36] * GuShH kicks the stool
[12:19:52] <GuShH> jadew: that's what datasheets are for!
[12:19:54] * jadew gets it now
[12:20:06] <jadew> GuShH, I didn't read it
[12:20:17] <GuShH> amee2woof: they make strawberry scented 2 stroke oil these days.... what is this world coming to!
[12:20:52] <jadew> I still haven't read the datasheet, I'm afraid I'll find out I can only have 1 device per wire
[12:21:02] <GuShH> read it
[12:21:08] <amee2woof> GuShH: what?
[12:21:16] <GuShH> exactly what I said
[12:21:35] <Xata> How do i connect a 32768 quartz to TCCR0?
[12:21:37] <amee2woof> come again, i think there was some really weird noise on the phone line >_<
[12:21:45] * GuShH comes
[12:21:50] <GuShH> http://130.com.ua/published/publicdata/AUTO/attachments/SC/products_pictures/Semi-synthetic-motor-oil-Ipone-City-Oil-2-strawberry-exhaustion-1-L-for-2-stroke-motor-scooters_enl.jpg
[12:22:17] <Xata> >com.ua huh?
[12:22:24] <GuShH> who knows.
[12:22:25] <amee2woof> ...
[12:22:38] <GuShH> United Amees
[12:22:54] <Xata> actually, .ua domain is ukraine
[12:23:05] <GuShH> UNITED AMEE2K I SAID
[12:23:14] <Xata> okokok
[12:23:25] <amee2woof> GuShH: and?
[12:23:29] <GuShH> nothing
[12:23:30] <Xata> we would like that, really. please annex
[12:23:43] <GuShH> random topic.
[12:24:28] <Xata> sooo.... how do i make 32768 quartz work with atmega16/32?
[12:25:31] <Xata> connecting to tosc1 and tosc2 and setting TCCR0 to external falling edge?
[12:34:15] <Corwin> Xata, you want to use it as RTC?
[12:34:31] <megal0maniac> GuSsH: I saw that in a store. Nearly bought it for my sister :)
[12:34:33] <Xata> Corwin: yes
[12:34:54] <Corwin> Xata, http://www.atmel.com/Images/doc1259.pdf
[12:34:59] <megal0maniac> Busy restoring a 100 two stroke scooter. She wants to ride it.
[12:36:58] <Corwin> here is code in C if you want, http://www.atmel.com/Images/Avr134.zip
[12:37:55] <Xata> Corwin: oh, thanks for this stuff. usefull.
[12:38:16] <Corwin> C code is for IAC but simple to make it work under GCC
[12:38:48] <Corwin> well, thank to atmel :) its theirs docs :)
[12:39:48] <RikusW> megal0maniac: any luck ?
[12:40:25] <megal0maniac> Started messing around with the board today. Very, very cool :)
[12:40:41] <megal0maniac> @Everyone: Buy RikusW's board :P
[12:40:47] <Corwin> why?
[12:40:57] <Corwin> which one anyway?
[12:40:59] <RikusW> nice :)
[12:41:36] <megal0maniac> Corwin: The U2S. https://sites.google.com/site/megau2s/home
[12:41:38] <RikusW> Corwin: This one http://sites.google.com/site/megau2s/home
[12:42:09] <RikusW> megal0maniac: originally intended for a usb to serial converter hence the name U2S
[12:42:17] <RikusW> it became much much more :)
[12:43:09] <RikusW> megal0maniac: so have you connected a terminal to the custom app yet ?
[12:43:50] <megal0maniac> RikusW: I forgot and flashed something to it :/
[12:44:06] <RikusW> using the U2S_GUI app you can easily switch to app mode
[12:44:21] <RikusW> oh well, the demo source is on the site
[12:44:59] <RikusW> if you want to use the USB CDC code you'll have to use the demo as a starting point
[12:45:11] <RikusW> the app can use the code in the bootloader
[12:45:42] <RikusW> I've put an asm demo on the site too
[12:46:35] <megal0maniac> What was the custom app?
[12:47:16] <megal0maniac> I've already flashed the avrisp firmware and no_usb eeprom image XD Works nicely and powers target
[12:47:54] <Rikus1> zlog
[12:48:22] <Rikus1> connection is acting down :-/
[12:52:14] <OndraSterver> tmpvar, make the math :)
[12:52:48] <tmpvar> OndraSterver, I was afraid you would say that
[12:53:06] <OndraSterver> hehe
[12:53:11] <OndraSterver> am I that expectable?
[12:53:58] <RikusW> GuShH: I just uploaded the new version of my jtag code, it supports all jtag atmegas
[12:54:15] <RikusW> it seems AS4 SP3 supports programming them too
[12:54:16] <megal0maniac> RikusW: Do I need to update?
[12:54:22] <RikusW> no
[12:54:29] <RikusW> you already have that code
[12:54:44] * megal0maniac gets all excited
[12:55:02] <RikusW> megal0maniac: besides, the module wrapper code isn't included on the version on the site
[12:55:30] <RikusW> but you can go read it if you want to know how mega jtag works
[12:55:38] <RikusW> http://sites.google.com/site/megau2s/home/jtag
[12:55:57] <RikusW> see the files at the bottom
[12:56:09] <RikusW> hte bz2 one is the disasm
[12:56:19] <RikusW> and the bin is the original fw
[12:56:32] <RikusW> it can be flashed to a m16 and it will work
[12:59:30] <OndraSterver> tmpvar, those LED drivers are some kind of i2c or what?
[13:02:52] <megal0maniac> RikusW: Cool, will check it out :)
[13:04:53] <RikusW> megal0maniac: also, if you want to use the builtin USB CDC code, use the U2Sfw demo as a starting point
[13:05:48] <tmpvar> OndraSterver, allegro a6281 they have their own sort of protocol going on
[13:06:13] <tmpvar> handy though, because they are chainable
[13:06:36] <RikusW> megal0maniac: so you loaded the avrisp using the bootloader right ?
[13:07:11] <megal0maniac> Lekker. And yes, I did. How did you protect the modules from flash erase?
[13:07:27] <megal0maniac> Obviously not literal flash erase, but under bootloader
[13:07:53] <RikusW> I check the write pointer
[13:08:06] <RikusW> the bootloader itself is protected by the lockbits
[13:08:21] <RikusW> chiperase is ignored by the bootloader
[13:08:33] <RikusW> I erase page by page while programming
[13:09:08] <OndraSterver> tmpvar, I have allegro a6275 :)
[13:09:13] <OndraSterver> used
[13:09:16] <OndraSterver> 24 chained together :
[13:09:17] <OndraSterver> :D
[13:09:18] <OndraSterver> SPI
[13:13:05] <megal0maniac> RikusW: Cool, makes sense. And the rest of the flash?
[13:13:37] <OndraSterver> tmpvar, dude
[13:13:40] <OndraSterver> it is SPI
[13:13:43] <OndraSterver> hook it up to SPI :)
[13:14:34] <Rikus1> can be used for whatever you like, there is about 23k free
[13:15:04] <megal0maniac> No, I mean is it erased?
[13:15:06] <jadew> I just ordered an open bench logic sniffer :D
[13:15:21] <RikusW> it is when its is new
[13:15:48] <RikusW> I did add an erase page command to the STK500 protocol, but its non standard
[13:16:21] <RikusW> so for now whatever you put there stays there until overwritten by something else
[13:17:03] <RikusW> megal0maniac: the avrisp don't support dW disabling :-P
[13:17:11] <RikusW> my STK500 clone does
[13:17:49] <megal0maniac> I don't really need to, but would I be able to erase flash from avrdude terminal mode?
[13:18:00] <jadew> RikusW, if you're familiar with the protocol and you feel like taking a look here: http://pastebin.com/WfB0RPcY do you spot any issues my handling of the CMD_PROGRAM_FLASH_ISP?
[13:18:13] <jadew> *any issues with my
[13:18:26] <megal0maniac> Then I'm seemingly sending commands directly to the "programmer"
[13:19:23] <RikusW> megal0maniac: avrdude don't know about my erase page command
[13:19:43] <RikusW> jadew: for a bootloader ?
[13:20:13] <jadew> for an stk500 emulator
[13:21:12] <RikusW> emulate ? what for ?
[13:21:52] <jadew> so avrdude can communicate with my dongle, in order to burn other avr's
[13:23:01] <jadew> everything works fine, including reading
[13:23:06] <RikusW> why not just add avrdude support ?
[13:23:09] <jadew> but for some reason flashing it fails
[13:23:23] <RikusW> most avrs use page mode
[13:23:27] <jadew> because then I would have to pay attention to new versions of avrdude
[13:23:33] <RikusW> only the very old ones use word mode
[13:23:37] <jadew> the one I tried used word mode
[13:23:48] <jadew> that's attiny2313
[13:24:07] <RikusW> programming is generally the tricky part....
[13:24:17] <RikusW> what kind of dongle ?
[13:24:34] <jadew> it's my approach of the bus pirate
[13:25:00] <RikusW> so you send raw SPI data ?
[13:25:04] <jadew> yeah
[13:25:36] <RikusW> there is a bitbang mode in avrdude, I guess you just have to intercept the bytes before they are banged
[13:25:40] <jadew> here's the output in the debug console (bit banged usart on some pin): http://pastebin.com/gte4vdca
[13:26:10] <RikusW> www.ruemohr.org/code
[13:26:32] <jadew> RikusW, from the output, it looks like the bytes are just fine
[13:26:32] <jadew> the command is right
[13:26:35] <RikusW> err thats a bootloader...
[13:26:48] <jadew> 40 and 48 for (1 << 3)
[13:27:36] <jadew> anyway, I guess I'll figure out what's going on after I get the logic analyzer
[13:27:49] <jadew> then I can compare the output from usbtiny with what comes out of my thing
[13:28:48] <RikusW> just make sure you do exactly what the datasheet says
[13:28:59] <RikusW> programming must be done _just_ right
[13:29:13] <jadew> I know, I went over the datasheet several times
[13:29:31] <RikusW> I usually left that for last in my programmer, its the hardest part
[13:29:47] <RikusW> (and I support ISP HVPP HVSP JTAG)
[13:29:56] <RikusW> and then the bootloader too....
[13:30:02] <jadew> nice
[13:30:24] <RikusW> programming flash was always the hardest to get right
[13:30:29] <RikusW> fuses are easy
[13:30:31] <jadew> I only need it in case somehow I manage to burn up all the t2313's I preprogrammed for the usbtiny
[13:30:58] <jadew> yeah, for the fuses you just spit out what the software gives you
[13:32:01] <jadew> have to go afk for a bit, ttyl
[13:32:07] <jadew> thanks
[13:32:31] <RikusW> later
[13:44:03] <tmpvar> OndraSterver, interesting, can you share your schematic for that project?
[14:10:29] <RikusW> asm blinky program -> http://pastebin.com/2rVNfYq0
[14:16:40] <OndraSterver> tmpvar, it is across many boards :D
[14:26:19] <Tom_itx> !seen capnkernel
[14:26:19] <tobbor> CapnKernel was last seen in #avr on Aug 30 02:30 2012
[14:26:29] <Tom_itx> well he ain't here now
[15:14:38] <specing> http://rt.com/news/south-africa-miners-charged-979/
[15:28:51] <RikusW> specing: striking is getting out of hand here...
[15:34:23] <RikusW> specing: it seems that there is two trade unions involved
[15:34:55] <RikusW> seems like the ANC don't like the new one....
[15:40:44] <specing> "However, leaked findings of victims' autopsies were published by the South African Star newspaper, and showed that the miners were shot in the back while running away."
[15:40:47] <specing> Uhm?
[15:44:11] <RikusW> specing: how did you come across that link ?
[15:44:39] <specing> I go there every day to see whats new with assange
[15:45:26] <RikusW> thats oldish news here by now
[15:45:38] <RikusW> though theres is still a lot of talk about it
[15:46:12] <Tom_itx> i can imagine
[15:51:37] <specing> http://rt.com/usa/news/blanketing-spy-program-information-983/
[18:06:21] <GuShH> amee2woof: help, I'm in the weird part of youtube again :( http://www.youtube.com/watch?v=NXvCwEH6xGk (furry scene guaranteed)
[18:12:37] <GuShH> and back to reality, to unweird the evening http://www.youtube.com/watch?v=QXfEEHcJwsA
[18:27:39] <OndraSterver> +1 for both :D
[18:27:43] <OndraSterver> 1st for picture, 2nd for music
[18:27:48] <OndraSterver> well, for the woman :D
[19:13:16] <k-man> whats the maximum clock speed for an ATmega328p?
[19:13:43] <OndraSterver> datasheet
[19:13:47] <OndraSterver> that is official one though
[19:15:08] <k-man> ah, it depends on the voltage you run it at
[19:24:30] <Tom_itx> 20
[19:25:58] <OndraSterver> that is Atmel's limit, yes :P
[19:32:07] <k-man> OndraSterver, you mean you can run it faster?
[19:33:48] <OndraSterver> :)
[19:33:53] <OndraSterver> overclocking
[19:33:58] <OndraSterver> check... uzebox? was the name I think
[19:34:07] <OndraSterver> they are running it either at 24 or 28 MHz
[19:34:10] <OndraSterver> .something
[19:34:17] <OndraSterver> I have played a bit with xmega
[19:34:20] <OndraSterver> stock = 32MHz
[19:34:30] <OndraSterver> it is USB equipped so I was sure it would run at 48MHz whole
[19:34:31] <OndraSterver> it did!
[19:34:37] <OndraSterver> then I pushed it a bit more... and more
[19:34:42] <OndraSterver> and the LEDs kept blinking upto 80MHz :D
[19:34:56] <OndraSterver> I am pretty sure that whole chip could work just fine on 64MHz stable
[19:54:52] <Thetawaves> interesting
[20:16:13] <jadew> where do bug reports for avr-gcc go?
[20:21:05] <jadew> nvm, pebcak
[20:22:38] <jadew> no.. it's a real bug
[20:23:32] <jadew> ffs, pebcak
[20:23:59] <jadew> it was optimizing something out and I wasn't getting the error I was expecting
[21:00:40] <jadew> any idea why a pin change interrupt would get triggered at a short time after its routine finished, but while no other volatage change is happening on the line?
[21:01:23] <Casper> are you sure no change happened?
[21:01:32] <jadew> yep
[21:01:36] <Casper> button?
[21:01:38] <jadew> checked it with the scope
[21:01:50] <jadew> no, it's a data line, between two mcu's
[21:02:06] <jadew> it's pulled up with a resistor, but it's being held low when this happens
[21:02:09] <Casper> pin change is both state, unless specified as rising or falling edges
[21:02:48] <jadew> yeah, I'm handling both states, however I'm getting that interrupt in the middle of nothing
[21:03:01] <Tom_itx> noise?
[21:03:05] <Casper> noise on other pin maybe?
[21:03:13] <jadew> very little noise, no spikes
[21:03:23] <jadew> just regular noise from the internal rc
[21:04:04] <Tom_itx> i used my LA to watch switch bounce on one once. kept setting the delay until it was wide enough
[21:04:07] <Casper> your pin change interrupt is a per pin or per port?
[21:04:16] <Tom_itx> any blip will trigger that interrupt
[21:04:19] <Tom_itx> rising or falling
[21:05:07] <jadew> I suspect it has to be above 3v or something
[21:05:51] <Tom_itx> depends on the supply voltage but probably so
[21:05:57] <Tom_itx> or around 2.7 ish
[21:06:47] <jadew> yeah, it doesn't get there
[21:10:12] <jadew> so this is where it happens: http://imagebin.org/226515
[21:10:32] <jadew> channel two is on a pin, which I toggle on, when the ISR kicks in
[21:10:36] <jadew> and off when it finishes
[21:10:47] <jadew> channel 1 is the line I'm triggering on
[21:11:15] <jadew> this is a zoom in http://imagebin.org/226516
[21:11:43] <jadew> and it doesn't happen just from time to time, but all the time
[21:14:42] <jadew> any ideas?
[21:15:54] <jadew> hmm, is it possible that they get queued?
[21:17:14] <Tom_itx> is channel 1 noise in the pic?
[21:17:33] <jadew> channel 1 is the data line
[21:17:48] <Tom_itx> what is 2?
[21:18:01] <jadew> rising edge, when my ISR kicks in
[21:18:06] <jadew> falling edge, when it stops
[21:18:11] <Tom_itx> pinchange will trigger either one
[21:18:18] <Tom_itx> unless you're using int0
[21:18:23] <jadew> it's int0
[21:18:25] <Tom_itx> ok
[21:18:50] <Tom_itx> any other interrupts?
[21:19:03] <jadew> a timer
[21:19:33] <jadew> but that doesn't fire at this point
[21:19:49] <jadew> since it's getting constantly reset by this ISR
[21:20:27] <Tom_itx> is the logic in your code right?
[21:20:39] <jadew> even if it wasn't
[21:20:51] <jadew> channel two shouldn't change twice
[21:21:03] <Tom_itx> how long are you in the interrupt?
[21:21:09] <Tom_itx> and does the interrupt toggle it?
[21:21:33] <jadew> the interrupt toggles only the reporting line (channel 2), it doesn't toggle the data line
[21:21:44] <jadew> however, there's something strange
[21:21:57] <jadew> the interrupt should have fired on the rising edge of the data as well
[21:22:07] <Tom_itx> why?
[21:22:18] <jadew> because I made it trigger both on falling and rising
[21:22:24] <jadew> but it shouldn't have processed anything while rising
[21:22:30] <Tom_itx> data isn't on int0 though is it?
[21:22:40] <jadew> it is
[21:22:41] <Tom_itx> it will only trigger that pin
[21:22:53] <Tom_itx> then how is int0 firing off channel 1?
[21:23:00] <jadew> however, I think that by the time I'm checking if it's rising or not, the line is already low
[21:23:06] <jadew> and when it's low I'm doing some processing
[21:23:25] <jadew> so I guess it's going high, by the time I get to check if it was a rising edge, it's already low
[21:23:27] <jadew> I process it
[21:23:44] <jadew> and somehow, the isr gets triggered again, since the line went low in the meantime
[21:23:50] <jadew> would that make sense?
[21:24:03] <Tom_itx> not if you have it to trigger on the rising edge
[21:24:30] <Tom_itx> put a pulldown on the pin to test it
[21:24:35] <Tom_itx> like 100k
[21:24:50] <jadew> how would that help?
[21:24:57] <Tom_itx> it may not
[21:25:07] <Tom_itx> but it would keep it from floating
[21:25:13] <jadew> ah
[21:25:17] <Tom_itx> i don't trust the internal pullups that much
[21:25:17] <jadew> well, it's already pulled up
[21:25:25] <jadew> by an external pull up
[21:25:28] <Tom_itx> mmm
[21:25:36] <jadew> and the other mcu is pulling it down, that's it
[21:25:42] <Tom_itx> so you're holding it low and letting the r pull it up
[21:25:48] <jadew> yeah
[21:26:35] <Tom_itx> i dunno
[21:27:18] <jadew> hmm, I think the startup of my ISR is too slow
[21:28:00] <jadew> I can see it's also missing some triggers
[21:28:28] <Tom_itx> you wanna get in and out as quick as you can
[21:28:44] <Tom_itx> process as much of it outside the int as you can
[21:29:19] <jadew> I need to stay in there for 15uS
[21:29:28] <jadew> but that's not how it's missing them
[21:29:33] <jadew> it's missing the triggering
[21:29:54] <jadew> because the ISR starts with if (WIRE_SLAVE_PIN & (1 << WIRE_SLAVE_BIT)) return;
[21:30:13] <jadew> and if the line goes up, down, up really fast
[21:30:17] <jadew> it triggers on the up
[21:30:33] <jadew> but by the time it checks if it's up or down, it's already on the last up
[21:30:43] <jadew> and the falling edge never triggers
[21:31:00] <jadew> so I either need a faster clock or a faster ISR
[21:31:58] <jadew> the data line stays high for at least 3 uS tho, I figured that should be enough
[21:41:05] <OndraSterver> go for naked ISR
[21:41:11] <OndraSterver> saves trouble of saving registers I think
[21:41:17] <OndraSterver> saves cycles by*
[21:41:20] <OndraSterver> not saving registers
[21:41:49] <jadew> yeah, but I am doing a lot of stuff there that needs registers
[21:41:54] <jadew> ah, actually...
[21:41:58] <OndraSterver> write the beginning in asm :)
[21:42:03] <jadew> I could move all that in a different function
[21:42:14] <jadew> and have the important stuff at first, in the ISR
[21:42:24] <jadew> yeah, that could work
[21:47:57] <OndraSterver> Tom_itx,
[21:47:59] <OndraSterver> here he is
[21:49:09] <CapnKernel> It's possible they mean me.
[21:49:17] <OndraSterver> yes
[21:49:21] <CapnKernel> Greetings from Melbourne Australia.
[21:49:33] <OndraSterver> ah
[21:49:34] <OndraSterver> I see
[21:49:35] <OndraSterver> .com.au
[21:49:40] <OndraSterver> already at home?
[21:49:43] <OndraSterver> or at the airport?
[21:49:51] <Tom_itx> hopefully you left on your terms this time :)
[21:49:59] <CapnKernel> Yes and yes.
[21:50:03] <CapnKernel> At home.
[21:50:53] <CapnKernel> My eldest son is obviously on HGH - he's now less than 2cm shorter than me, and I'm 6'.
[21:51:36] <OndraSterver> why have you just used partially ft and cm?
[21:51:43] <OndraSterver> 6 ft = 180cm
[21:51:46] <OndraSterver> use that.
[21:51:47] <OndraSterver> :P
[21:51:51] <OndraSterver> I am 170cm myself
[21:51:53] <CapnKernel> 183
[21:51:56] <OndraSterver> and it bugs me being so small
[21:52:13] <OndraSterver> I had today dilemma :)
[21:52:14] <CapnKernel> Just don't get into a land war with Russia
[21:52:17] <OndraSterver> :D
[21:52:24] <OndraSterver> but I solved my dilemma
[21:52:28] <OndraSterver> this semester = tennis
[21:52:29] <CapnKernel> ?
[21:52:33] <OndraSterver> next semester = zumba
[21:52:34] <OndraSterver> :D
[21:52:52] <OndraSterver> zumba was only on tuesday in which I have nothing, it just couldn't fit
[21:52:59] <OndraSterver> oh well, next semester I will be the one building the whole timetable
[21:53:36] <CapnKernel> One day you will graduate, and life will get better.
[21:53:44] <OndraSterver> hopefuly, yes
[21:54:31] <OndraSterver> why is atmel studio "forcing" me to use -> instead .?
[21:54:44] <OndraSterver> I have struct that contains another struct
[21:58:10] <jadew> do you have that tomato software?
[21:58:30] <jadew> Visual Assist X or something
[21:58:49] <jadew> I noticed Atmel studio comes with it
[21:59:05] <OndraSterver> if it comes with it - yes
[21:59:07] <OndraSterver> I can disable that
[21:59:16] <jadew> you don't have to disable the entire plugin
[21:59:19] <OndraSterver> after two times repeating the same thing the AS notified me that I can turn it off
[21:59:23] <jadew> it has an option for . to ->
[21:59:25] <OndraSterver> just this -> to . translation
[21:59:26] <OndraSterver> yes
[21:59:26] <jadew> just disable that
[21:59:30] <OndraSterver> but why does it do?
[21:59:30] <jadew> otherwise the plugin is great
[22:00:15] <jadew> it probably didn't figure out yet that you're not working with a pointer at that point in the code
[22:00:29] <OndraSterver> but it should have!
[22:35:38] <jadew> alright, all the problems are fixed
[22:35:46] <jadew> now I have a 1wire slave :D
[22:37:40] <Tom_itx> nice
[22:39:15] <jadew> I want to get an attiny13 to basically be a hub for dht11 sensors and translate the data to 1-wire, that way I will only have 1 bus for my sensors, so less wires around the house
[22:39:59] <jadew> I knew I can find a use for tiny13
[22:42:02] <OndraSterver> heh
[22:42:08] <jadew> for the record, that weird triggering issue was related both to slow start up of the ISR and to the fact that during the ISR the interrupt flag was being set
[22:42:21] <jadew> so clearing it at the end solved the double triggering
[22:44:51] <OndraSterver> hehe
[23:02:15] <oinkoink_> is solder paste conductive at all? my little circuit is making odd noises after being plugged in :|
[23:03:05] <OndraSterver> when it is soldered - yes
[23:03:09] <OndraSterver> even when it is not soldered
[23:04:16] <oinkoink_> OndraSterver, hmm.. what do you clean it with? acetone?
[23:04:33] <OndraSterver> piece of cloth?
[23:04:40] <OndraSterver> or do you mean the remainings?
[23:04:44] <oinkoink_> it's dried on the circuit
[23:04:53] <OndraSterver> hmm
[23:04:54] <OndraSterver> probably
[23:04:59] <OndraSterver> acetone or IPA
[23:05:01] <OndraSterver> one of those
[23:05:10] <oinkoink_> yeah, I sorta doubt that it's conductive.. I often see it on circuits.
[23:05:50] <oinkoink_> meh, will clean it anyways.
[23:11:37] <OndraSterver> omg it is light outside already
[23:13:54] <OndraSterver> meh, I have got two choices for PE: a) Zumba on Tuesday morning and probably nothing else that day anymore at school; b) floorball before practical lesson in programming :D
[23:14:35] <OndraSterver> that's why I am awake... a) I needed to figure out the possible options + b) I want to be on the beginning of the line of the people who subscribe... so I can grab free spot till it lasts
[23:14:53] <OndraSterver> Back to xmega for now
[23:29:36] <jadew> I was wrong about t13, it can't fit the code
[23:30:18] <jadew> I could probably squeze it in, but then the dht11 protocol code has to fit in as well