#avr | Logs for 2011-11-05

Back
[01:47:07] <Guest4551> hi
[02:28:17] <inflex> bit quiet
[03:55:15] <Igor2__> hi
[03:56:28] <Igor2__> i am experiencing a very strange malfunction with attiny2313. I have the chip in breadboard and programmed and used it for some weeks without any problem. However, this morning it seems the CPU doesn't start executing code
[03:56:34] <Igor2__> the tests I did so far:
[03:56:55] <Igor2__> - disconnected everyhing, including the programmer, only power supply and scope is attached
[03:57:05] <Igor2__> - pulled reset to high
[03:57:31] <Igor2__> - tested wheter i can read out flash memory and i verified the result against what i programmed and they match
[03:58:09] <Igor2__> - i reprogrammed the low fuse byte to get clock out and i could capture the 1 MHz signal on CKOUT
[03:58:49] <Igor2__> - i've did all this with a minimal test program that sets port B to output and toggles the bits only, so the whole thing is only a few instructions in asm
[03:59:09] <Igor2__> i must be missing something obvious, any hint?
[04:13:45] <theBear> most likely you set the fuse wrong and it's not clocking or something
[04:15:37] <Igor2__> this why i did the CKOUT test, so I am pretty sure the internal RC works at 8 MHz
[04:16:42] <Igor2__> my test program (written in C) sets DDRB to 255 and then a for(;;) { PORTB=255; PORTB=0; }
[04:16:57] <Igor2__> i'd expect to see a square wave on any of the PORTB pins
[04:17:05] <theBear> oh, misread.... ok... maybe your test program is bad... you checked the asm ? it's not maybe optimising out everything ?
[04:17:19] <Igor2__> the asm looks reasonable
[04:17:24] <theBear> and it'd be a DAMNED fast squarewave
[04:17:33] <theBear> probly 2 or 4mhz at a guess
[04:17:34] <Igor2__> out 0x17, r24
[04:17:44] <Igor2__> my scope can handle anything up to 150 MHz so...
[04:17:54] <Igor2__> (i wanted to save the extra "risk" of any sort of delay)
[04:18:01] <theBear> but you didn't say scope until just now :)
[04:18:08] <Igor2__> ;)
[04:18:19] <Igor2__> i wonder if the CPU may go in sleep mode by itself
[04:18:30] <Igor2__> or if clock routing goes wrong somehow...
[04:18:51] <Igor2__> but if i can't execute a single line of code i don't see how it would be fixed
[04:19:07] <Igor2__> i
[04:19:14] <Igor2__> i've just checked VCC
[04:19:15] <theBear> err, that one line is the entire asm ?
[04:19:22] <Igor2__> noise is below 10 mV
[04:19:23] <Igor2__> nah
[04:19:32] <Igor2__> that's only one of the lines, in the loop
[04:19:36] <Igor2__> moment, i can put it online
[04:20:16] <theBear> i gotta go up the street in a minute anyway, worth posting and waiting for someone to look tho
[04:20:32] <theBear> and an avr won't do anything you don't tell it to, including sleep
[04:21:22] <Igor2__> thanx, putting the code online in a momenyt
[04:21:34] <Igor2__> (i don't expect it to do anything else either, and it indeed used to work...)
[04:21:45] <Igor2__> actually i took a branc new chip, programmed it and got the same result
[04:21:57] <Igor2__> so shouldn't be some sudden hardware failure or static electricity or anything like that
[04:23:26] <Igor2__> http://igor2.repo.hu/tmp/hello.c
[04:23:28] <Igor2__> http://igor2.repo.hu/tmp/hello.lst
[04:25:20] <Igor2__> it seems all pins (except for CKOUT) are low
[04:29:18] <Igor2__> BOD is disabled so it can't be that either
[04:51:47] <inflex> mmm
[04:51:52] <inflex> well, my little headphone amp is sort of done
[04:52:09] <inflex> even have the 2-cell lipo manager sorted out as well
[04:52:43] <inflex> but I'm a bit worried about the effectiveness of the "off" switch, thinking with the V+/GND/V- I might need a 3 pole switch
[05:07:46] <Igor2__> tried to switch to wathdog osc (with ckout) and the same thing happens - ckout as expected, but seemingly CPU doesn't execute instructions
[05:20:15] <inflex> Igor2__: ....
[05:20:19] <inflex> a better test is actually this...
[05:20:29] <inflex> while (1) PINB = 0xFF;
[05:20:35] <inflex> that'll give you a genuine square wave
[05:20:48] <RikusW> Igor2__: what avr ?
[05:20:51] <inflex> that other method you used will give you an asymetric wave
[05:21:21] <inflex> likely though, if it was working "fine before", then you've simply done something "stupid" somewhere - it happens to us all
[05:21:30] <inflex> we eventually find it and go "DOH!!!!"
[05:22:02] <inflex> really, REALLY stupid things like - battery gone flat, breadboard power rails not actually active, you know, there's so many of them
[05:22:45] <inflex> and as tempting as it is, 99.999% of the time it is not the microcontroller's fault
[05:24:35] <doublebeta> battery gone flat ... T_T SO MANY TIMES
[05:24:45] <doublebeta> then I started playing with mains.
[05:24:59] <doublebeta> Too bad I'm stupid, so so many electrocutions
[05:25:04] <h4x0r`> lol
[05:25:31] <inflex> you're a zombie?
[05:25:34] <Igor2__> thanx all, found meanwhile
[05:25:45] <Igor2__> i know the logs are published, and i should be hiding in shame instead of sharing
[05:25:49] <Igor2__> but it may help others...
[05:25:50] <inflex> I mean, afaik, electrocution is fatal, by definition
[05:26:06] <Igor2__> i was using the wrong avrdude settings
[05:26:23] <h4x0r`> thatll do it
[05:26:28] <Igor2__> i told avrduded to write flash from a file type 'raw' while the file was actually in hex
[05:26:34] <Igor2__> so it got written as text
[05:26:41] <inflex> heh
[05:26:46] <karlp> best is to not tell avrdude what the format is, and let it work it out
[05:26:46] <Igor2__> and when i read it back, i didn't realize it as it was all readable and fine hex...
[05:26:58] <karlp> unless you really want to use raw binary images
[05:27:11] <Igor2__> nah, i want to use hex, it was a stupid mistake of mine
[05:27:24] <karlp> no, I mean, don't tell avr that it's anything
[05:27:30] <karlp> by all means keep using ihex
[05:27:41] <Igor2__> i think it leaked in when i copied that command line from somehwere where i did read
[05:27:45] <Igor2__> and for reads i do have to tell a format
[05:27:59] <Igor2__> so i probalby copied the read line, changed r to w and forgot about the type totally
[05:28:10] <Igor2__> (i mean forgot to remove the type tag)
[05:44:16] <Steffanx> doublebeta like electroshock therapy ?
[05:44:19] <Steffanx> *likes
[05:44:34] <doublebeta> haha, my subconscious must
[05:44:55] <h4x0r`> has anyone here designed a gsm application/circuit/device? Im interested in checking out your work?
[05:45:07] <Steffanx> déjà vu h4x0r` :P
[05:45:42] <doublebeta> inflex: I don't know about that. Anyway, I'm alive and human. I meant to say I shocked myself on 240VAC many times.
[05:45:58] <doublebeta> touching a transformer, or a charged capacitor, is a bad idea.
[05:46:38] <h4x0r`> lol
[05:46:46] <h4x0r`> im back D
[05:47:55] <karlp> hehe, one of the software guys was demoing to some potential new hires the other day, poking his fingers in the test cabinet
[05:48:05] <karlp> I had to remind him that the cabinet was actually live, running some tests
[05:48:12] <karlp> he jumped back a little bit
[05:48:52] <Steffanx> In some classes i took we had to 'play' with 380V .. I really HATE HV
[05:49:27] <karlp> HV is like analog. for other people
[05:49:32] * Steffanx => < 12V
[05:50:46] <doublebeta> High Voltage is defined somewhere as >1000V but I forget where... forget it
[05:51:38] <Steffanx> Oh, true :P
[05:51:42] <Steffanx> but you understand what i meant
[05:52:02] <doublebeta> anyway, my playing with mains electricity might have something to do with why capacitive touch screens don't respond to me
[05:52:15] <doublebeta> Steffanx: yeah, I didn't mean to sound like a nitpick, I'm sorry
[05:53:02] <karlp> doublebeta: no. high voltage is defines as > 5V :)
[05:53:12] <karlp> even > 3.3V
[05:53:27] <doublebeta> karlp: hah, digital wusses ;D.<3
[05:53:40] <karlp> if cap touch doens't work for you, it's a software issue!
[05:54:00] <doublebeta> yep, I'll just charge at google with a pitchfork and several torches
[06:02:17] <Steffanx> For it everything >12V is HV karlp :P
[06:02:31] <Steffanx> Or just everything that breaks the chips on the board
[06:42:39] <Steffanx> wow h4x0r`
[06:42:55] <Steffanx> WTF are you doing?
[06:43:07] <specing> haxxing the freehaxnode
[06:43:12] <Steffanx> Yeah
[06:43:14] <specing> obviously.
[06:43:14] <h4x0r`> yup sorry guys stupid mirc script
[06:43:21] <specing> and he uses mirc!
[06:43:22] <doublebeta> sigh, seriously needs a nick change ...
[06:43:28] <doublebeta> yeah, and a client change
[06:43:38] <h4x0r`> os change maybe
[06:43:40] <specing> and a operating system change
[06:43:42] <h4x0r`> limited atm..
[06:43:47] <doublebeta> yes, indeed. Fuck windows, bro
[06:43:49] <h4x0r`> actually tethered, atm..
[06:45:24] <specing> My experience shows that people who say they are haxors are in reality noobs
[06:45:48] <h4x0r`> inexperienced huh?
[06:45:48] <doublebeta> Indeed.
[06:45:51] <Steffanx> specing is an expert :)
[06:45:57] <doublebeta> oh here we go
[06:45:59] <doublebeta> COME AT ME BRO
[06:46:06] <h4x0r`> IM THERE BRO
[06:46:12] <specing> I think windows and mirc are sufficient proofs
[06:46:17] <doublebeta> specing: +1
[06:46:18] <h4x0r`> IM ALL UP IN YO FACE HOMEY
[06:46:45] <h4x0r`> well firstly, it really relies on your definition of haxor
[06:46:49] <doublebeta> specing: ever wargame?
[06:47:06] <doublebeta> <3 smashthestack.org / etc
[06:47:23] <h4x0r`> u h4x0r!
[06:47:26] <specing> ah, I bookmarked it once, too lazy
[06:47:26] * doublebeta beat Blowfish.
[06:47:30] <h4x0r`> but yeah, point in case.
[06:47:43] <doublebeta> was such a rush, placing my name in the credit file, tbh
[06:47:58] <specing> real name?
[06:48:08] <doublebeta> no
[06:48:14] <doublebeta> 'doublebeta'
[06:48:25] <specing> ok
[06:49:27] <doublebeta> I don't particularly want a future boss to google me and find out I do things like that. Bosses tend to overreact.
[06:49:32] <doublebeta> I have no interest in real systems.
[06:49:56] <Steffanx> No sure?
[06:50:15] <h4x0r`> i want to use this gsm device to do something
[06:50:22] <h4x0r`> but nothing springs to mind
[06:50:34] <h4x0r`> its all like.. done before.. or why do that.. lol
[06:50:54] <Steffanx> I know that problem
[06:51:07] <h4x0r`> i can make it rly rly smal
[06:51:10] <h4x0r`> but so what
[06:51:18] <h4x0r`> and it would still need an external psu
[06:51:19] <h4x0r`> lol
[06:51:21] <h4x0r`> fml.
[06:51:25] <Steffanx> I tend to not build things when can't "use" it
[06:51:37] <h4x0r`> yah
[06:51:39] * inflex sends off yet another PCB for fab
[06:51:45] <h4x0r`> lol
[06:51:50] <h4x0r`> time them.
[06:51:54] <Steffanx> Which is kind of annoying, because I don't really need anything :)
[06:51:58] <h4x0r`> complain! last batch came far too late.
[06:52:08] <inflex> h4x0r`: they'll proably all arrive on the same day
[06:52:08] <h4x0r`> Steffanx, exactly :(
[06:52:12] <inflex> afaik none have dispatched yet
[06:52:23] <h4x0r`> prolly lol
[06:52:44] <h4x0r`> confident in the solution?
[06:52:51] <h4x0r`> did you do upgrades?
[06:55:59] <inflex> I usually plan for needing a respin or two
[06:56:06] <inflex> most times it's the 3rd-time-lucky result
[06:56:43] <h4x0r`> its a resonable outlook
[06:57:11] <h4x0r`> i imagine my first cut will require several re-wiring instances, if im lucky ;/
[06:57:31] <h4x0r`> ive forgotton so much, its like a blur.
[06:57:41] <h4x0r`> I should have never taken that vacation from computers..
[06:57:45] <inflex> I know on simpler boards I'm getting away with the first or second boards being "usable"
[06:58:10] <inflex> but on the more complex things like the LOM and the mAh counter, I'm still needing revisions
[06:58:18] <inflex> the LOM just keeps going on and on and on
[06:58:19] <h4x0r`> networks, no problem.. programming, awesome, websites... incredible.. electronics.. fail :(
[06:58:42] <h4x0r`> LOM?
[06:59:01] <inflex> low-ohms-meter
[06:59:52] <inflex> interestingly, I started out using a constant-current source to drive the test ... then I ditched it and just went with a current _limiting_ resistor, but now I've gone back to constant-current again (ensures I get my required resolution at the range limits)
[07:00:08] <inflex> http://www.nqrc.com/?vp=PLD-LOM7 <=- this thing
[07:00:40] <inflex> Tonight's board however was/is nothing more than a glorified power-distribution panel
[07:00:54] <inflex> added some LEDs and decoupling caps to try and spice it up
[07:00:59] <h4x0r`> heh
[07:01:07] <h4x0r`> cool
[07:01:50] <h4x0r`> i think i totally forget why resistors are required sometimes..other than to lower current
[07:01:58] <inflex> hahah
[07:02:29] <h4x0r`> srsly, it makes me sad.. i think i need to know the astrophysics of it lol.. why am i never happy lol...
[07:03:00] <Steffanx> Poor you h4x0r`
[07:04:12] <h4x0r`> i know lol
[07:04:29] <h4x0r`> they are required in the law of say.. AC DC power
[07:04:35] <h4x0r`> so i get depressed lol
[07:04:50] <h4x0r`> but of course required in electronics
[07:05:09] <doublebeta> what the hell is he on about?
[07:05:50] <h4x0r`> im hacking u
[07:06:27] <doublebeta> whatever, kid.
[07:06:38] * doublebeta draws his axe
[07:06:43] <inflex> http://static.rcgroups.net/forums/attachments/2/4/1/8/1/a4396254-77-PLD-POWERBUS-MINI.png <- that's the board, I have to say, I actually HATE doing these boards commercially
[07:06:46] <doublebeta> NOW who is hacking who?
[07:06:49] <inflex> because they require so much bloody time to build
[07:06:50] <h4x0r`> omg
[07:06:53] <h4x0r`> an axe
[07:06:58] * doublebeta swings
[07:07:02] <h4x0r`> and he called me kid :(
[07:07:14] <doublebeta> and lobs off 'h4x0r`''s head
[07:07:24] * h4x0r` ducks .. eventually
[07:07:27] <doublebeta> yeah, no offence to kids
[07:07:32] <inflex> oh puleeeze, like a geek has the strength to meaningfully swing an axe
[07:07:41] <h4x0r`> yup
[07:07:50] <h4x0r`> yuH
[07:07:57] <h4x0r`> hes faking
[07:08:08] <h4x0r`> hes obv too geeky to swing an axe
[07:08:09] <inflex> otoh, we could build a robot to swing the axe... :D
[07:08:27] <h4x0r`> with his amazing demostration of intellect using the "kid" routine..
[07:08:33] <h4x0r`> lol@robot
[07:08:57] <h4x0r`> sik board :D
[07:09:58] <Steffanx> You are a real h4x0r` h4x0r` ? You forget characters all hte time
[07:10:03] <h4x0r`> ok i get resistors nao
[07:10:27] <h4x0r`> i forget everything.. all the time :p
[07:10:41] <h4x0r`> ok resistors limit current only a little bit, thats why we need them
[07:10:49] <specing> < h4x0r`> im hacking u
[07:10:55] <specing> more proof.
[07:11:01] <h4x0r`> ur ip address
[07:11:04] <h4x0r`> i have it
[07:11:07] <specing> tell me
[07:11:12] <h4x0r`> it is 127.0.0.1
[07:11:14] <inflex> naah, resistors are for making voltages from currents :D
[07:11:14] <doublebeta> lol /whois 4 dummies
[07:11:27] <h4x0r`> inflex, wtflol?
[07:11:30] <specing> h4x0r`: now the public one.
[07:11:40] <h4x0r`> specing, whats a public one?
[07:11:56] <specing> -.-
[07:12:07] <doublebeta> not sure if trolling, or just stupid.
[07:12:13] <specing> or both
[07:12:17] <h4x0r`> presumably stupid..
[07:12:59] <h4x0r`> for those who would "assume", are presumed "stupid" to begin with ;)
[07:13:38] <h4x0r`> for some strange reason.. i dont really trust that guy .. "skammer
[07:17:08] <doublebeta> yep, because while to assume is to make an ass of u and me, to presume, is to make a pres of u and me. U 2 can B Obama!
[07:17:37] <h4x0r`> err
[07:17:51] <h4x0r`> huh?
[07:17:53] <Steffanx> Yay?
[07:17:57] <h4x0r`> r u hacking me again?
[07:19:20] <Ltuin> hi
[07:19:26] <h4x0r`> hi
[07:19:26] <tobbor> Hello h4x0r`
[07:19:33] <h4x0r`> hey dude
[07:19:36] <h4x0r`> ltns
[07:22:12] <h4x0r`> hi
[07:22:18] <h4x0r`> hi
[07:22:21] <Steffanx> hi
[07:22:28] <h4x0r`> sup :)
[07:22:31] <Steffanx> The sky
[07:22:44] <Steffanx> * mean: Tha sky
[07:22:59] <doublebeta> killall -SEGV init
[07:23:55] <h4x0r`> omg
[07:24:04] <h4x0r`> r u an irl h4x0r?
[07:24:10] <h4x0r`> :)
[07:25:24] <SuperLutin> |2 |_| 4 |234£ |-|4><0|2 ?
[07:25:46] <h4x0r`> :o
[07:26:24] <SuperLutin> leet speak :o
[07:27:02] <h4x0r`> u cant hax me
[07:27:10] <h4x0r`> i have a flywall
[07:27:13] <h4x0r`> :/
[07:28:14] <doublebeta> Night all.
[07:28:34] <h4x0r`> pmsl.
[07:33:49] <SuperLutin> he haxs himself
[07:34:25] <karlp> +++ath0& ?
[09:46:33] <nomis> has there been a change to the ISR(INT1_vect) syntax? It doesn't seem to work any more.
[09:47:15] <nomis> I get
[09:47:15] <nomis> pblink-main.c:23: warning: return type defaults to ‘int’
[09:47:15] <nomis> pblink-main.c: In function ‘ISR’:
[09:47:15] <nomis> pblink-main.c:23: warning: type of ‘__vector_2’ defaults to ‘int’
[09:47:15] <nomis> pblink-main.c:25: warning: control reaches end of non-void function
[09:47:28] <nomis> and the disassembly doesn't show an entry for the interrupt vector
[09:47:42] <grummund> #include <avr/interrupt.h> ?
[09:49:01] <nomis> grummund: duh, thanks :)
[09:58:59] <manuel_> :}
[10:09:02] <grummund> an atmel appnote with no number - http://www.atmel.com/dyn/resources/prod_documents/doc4322.pdf
[10:09:43] <Steffanx> 2003 :)
[10:10:52] * grummund wonders if there's a zip file to go with it... but since it has no reference that make it impossible to find
[10:11:39] <spow> Hi. In AVR Studio, how do I chose my processor model ? I know it's an ATmega32 but there is a prior list with Dragon / ONE! ...
[10:12:10] <grummund> which version AVR Studio ?
[10:12:17] <spow> 4
[10:12:38] <grummund> you need to select the processor type twice
[10:13:01] <spow> i'm sorry ?
[10:13:01] <grummund> in project options (to get the correct build)
[10:13:18] <spow> you mean test and change ?
[10:13:23] <grummund> and then in the programmer dialog (so it knows the chip type to talk to)
[10:13:49] <grummund> set it to atmega32 in two different places
[10:51:31] <spow> what are the usual mistakes when AVR Studio can't connect to the AVR ?
[10:55:13] <grummund> wiring
[10:55:28] <specing> PEBKAC!
[10:55:43] <grummund> first check is see if it can read the device signature
[10:56:17] <spow> well, it's going through a USB/Serial converter, so I'm not sure I can see past that
[10:56:29] <grummund> what programmer do you have?
[10:56:52] <specing> DASA? :D
[10:56:55] <spow> I tried AVRISP et AVRISP mkII
[10:57:27] <specing> Arent those USB programmers?
[10:57:55] <grummund> you have an AVRISP mkII programmer, or you mean you just tried those settings in avr studio?
[10:58:12] <spow> I just tried the stting
[10:58:15] <grummund> what programmer do you have?
[10:58:22] <spow> it was the only one allowing me to slect COM5
[10:58:43] <spow> on wich I have placed the USB/Serial cable
[10:59:01] <spow> I also set its baud to 115200
[10:59:11] <grummund> i can almost guess what's happening here... :P
[10:59:54] <grummund> how is the AVR wired with the USB/Serial cable?
[11:00:11] <spow> well, you might laugh
[11:00:50] <spow> stadrad 10 pin ribbon into serial male into DB/9 female female into male DB/9-USB adaptor
[11:01:27] <grummund> can you show a photo or circuit diagram?
[11:03:22] <spow> can't take a photo and I wouldn't know how to make the diagram since it'd require an ohm meter :S
[11:03:38] <grummund> you do know you can't just connect AVR to DB-9 ?
[11:03:50] <grummund> it needs a circuit in between
[11:04:10] <grummund> better still get a proper programmer
[11:04:17] <spow> the avr is on a dev board from my uni, ofc :)
[11:04:48] <grummund> and the dev board has a 10-pin header plug?
[11:05:08] <spow> to do 'ISP' I was told
[11:05:23] <grummund> right, so do you have an ISP programmer or not?
[11:05:58] <spow> i'm using the sale set up they are
[11:06:17] <spow> and it's just plugged to the computer
[11:06:20] <spow> same*
[11:06:32] <grummund> ISP does not just plug into the computer
[11:07:16] <spow> maybe it's embedded on the board ?
[11:07:38] <spow> ther eis another chip
[11:07:55] <grummund> what's the number on the chip?
[11:08:48] <spow> 79A70LM
[11:10:00] <grummund> you need to get more information from your uni about what it needs
[11:10:31] <grummund> if you just plug it into USB/Serial it could damage it
[11:10:51] <grummund> find out if it is ISP
[11:11:01] <grummund> if it is ISP then you need a programmer
[11:11:38] <spow> alldatasheet.net/datasheet-pdf/pdf/TI/L293DNE.html the chip with actual number
[11:11:51] <spow> a quadruple half h driver
[11:13:09] <grummund> you need to get more information from your uni
[11:13:24] <grummund> or show us a photo and someone will help
[11:13:48] <spow> the teacher gave me all I need, and I've not seen any programmers in the lab
[11:14:05] <spow> I have no way of taking pictures, i'm abroad
[11:15:00] <spow> thanks for your help
[11:15:38] <elektrinis> anyone uses these isp programmers?
[11:15:38] <elektrinis> http://www.chinics.com/avrisp-sa2.html
[11:15:41] <grummund> if it does not require a programmer then it must use a bootloader, but that is not ISP.
[11:15:52] <spow> hum
[11:16:14] <grummund> 10-pin connector is sometimes used for ISP
[11:16:24] <spow> I should have mentioned there is a sticker "ATMega32 mit bootloader" on the chip
[11:16:37] <grummund> ah well
[11:16:41] <vectory> spow: well, then you dont need a programmer
[11:17:33] <grummund> also AVR Studio won't drive the bootloader, you need something else
[11:17:52] <spow> WinAVR ?
[11:17:55] <grummund> no
[11:18:23] <vectory> grummund: why not, rikusw's u2s can be programmed using the stk500 protocole
[11:18:29] <grummund> unless it works with avrprog, which is one of the avrstudio menus
[11:18:58] <vectory> the u2s uses a bootloader, too
[11:19:10] <spow> i've clicked this option 'avrprog' in the menus but its apparently not installed
[11:19:10] <grummund> vectory: stk500 isn't bootloader protocol afaik
[11:19:28] <vectory> hm, oops
[11:19:33] <grummund> spow: it's probably not that
[11:20:21] <spow> Tools > AVR prog ?
[11:20:29] <vectory> grummund: it says - STK500 style bootloader - on the page
[11:20:39] <grummund> vectory: oh well ;)
[11:21:04] <grummund> notwithstanding the requirement for PC bootloader support, the hardware needs to be connected to the PC correctly as well ;)
[11:21:58] <spow> I can understand that, the cable they gave me could be of any type
[11:22:17] <spow> but I assume they know what they do and I don't ;)
[11:22:26] <grummund> vectory: i'm guessing that just means the bootloader firmware pretends to be a STK500 programmer
[11:22:36] <vectory> he implemented it all in software, in asm
[11:22:41] <vectory> yes
[11:22:56] <grummund> vectory: so avr studio "sees" an STK500 programmer
[11:23:33] <grummund> spow: find out which bootloader they use and what are the Tx/Rx/Gnd connections
[11:23:52] <vectory> dont know about studio, i used avrdude. what i dont get is, its stk500v2 protocol, but avrdude needs stk500pp settings, bug in avrdude iirc
[11:23:53] <grummund> spow: without that it's just random guessing
[11:24:33] <vectory> spow: good start would be to find out what board you have there and google that
[11:24:46] <vectory> if its selfmade by the uni you might be out of luck though
[11:25:22] <spow> I have looked at the datasheey, it's a RN-Control V1.4
[11:27:13] <grummund> http://www.rn-wissen.de/index.php/Bild:Rncontrol1.4diagramm.jpg
[11:27:18] <grummund> that one? ^^
[11:27:35] <spow> yes
[11:28:11] <spow> only the sticker is different
[11:29:14] <grummund> ok do you see the 3-pin header at top right of the board?
[11:29:59] <grummund> that is for RS232
[11:30:21] <spow> I have nothing connected to it
[11:31:08] <grummund> if it uses a bootloader then most likely you should connect there
[11:31:43] <vectory> can one of you read german?
[11:31:43] <spow> I have a ribbon cable for the labelled as 'ISP' port near the voltage regulator
[11:32:22] <grummund> spow: but do you have an ISP programmer? :P
[11:32:33] <spow> nope
[11:32:40] <grummund> well then :)
[11:32:42] <spow> and they don't have any either
[11:33:36] <grummund> i have to go
[11:33:47] <vectory> bb \o
[11:34:01] <spow> cya, thanks for the help
[11:35:03] <vectory> spow: are you french?
[11:35:21] <spow> I am, why ?
[11:36:48] <vectory> because the instructions for the RN-controle are in german and you said et instead of and once
[11:37:11] <vectory> the bootloader example here uses a bascom compiler
[11:38:34] <spow> nice social engineering skills ^^
[11:38:44] <vectory> not really -_-
[11:38:47] <spow> and yeah i'm in germany for a semester
[11:40:27] <spow> and I need to somehow fit 6 days on 5 or work home on saturdays but it seems compromised -_-
[11:44:33] <vectory> why, is the workload too hugh?
[11:44:37] <vectory> high*
[11:44:52] <spow> yes
[11:45:20] <spow> erasmus students typically have a crappy course language for 20 ECTS
[11:45:39] <spow> I need 30 of it with each technical subject being 4
[11:45:43] <spow> ;)
[11:46:05] <spow> (only technical courses, no lanugage course)
[11:46:05] <vectory> dont know what you mean
[11:46:30] <vectory> we get 5 credits each coure and ~5 courses in a semester
[11:46:40] <vectory> where are you?
[11:47:02] <spow> I get 4 for each technical course = 8 subjects
[11:47:04] <spow> RWTH
[11:47:33] <vectory> aachen :) wanted to apply there once
[11:47:38] <spow> can't believe a uni that big isn't opened on saturadys
[11:48:05] <spow> where are you studying ?
[11:49:39] <vectory> BHT berlin
[11:50:09] <vectory> did you try stk500 in avr studio?
[11:50:16] <spow> and what are you studying ?
[11:50:31] <vectory> computer engineering
[11:50:56] <spow> I did try stk500
[11:51:35] <spow> eingebette systeme ?
[11:51:55] <spow> ach, nein, mein fehler, betriebsysteme !
[11:52:07] <vectory> nope, thats the master course, im studying for bachelor
[11:52:16] <vectory> embedded, i mean
[11:52:51] <spow> it's much france (in france at least)
[11:53:05] <vectory> hm?
[11:53:11] <spow> it's much fun (in france at least)
[11:53:29] <vectory> ich studiere technische informatik
[11:53:45] <spow> ich verstehe
[11:54:30] <vectory> spow: maybe you do need to install a driver or sth
[11:56:41] <spow> I don't know
[11:56:50] <spow> haven't found anything specific
[12:00:20] <spow> well, quake III I guess
[12:00:36] <spow> good luck with your studies
[15:24:51] <pingec> Has anyone used the SIM300 gsm modem ?
[15:25:05] <pingec> I'm getting ERROR response to almost any command, dunno how to fix it
[15:26:29] <RikusW> at also give error ?
[15:27:17] <RikusW> and at+csq ?
[15:31:21] <pingec> at gives "OK"
[15:32:02] <pingec> at+csq? gives "ERROR"
[15:32:25] <RikusW> at+csq
[15:32:38] <RikusW> should give signal strength
[15:32:38] <pingec> tried that too
[15:32:51] <pingec> just "ERROR"
[15:32:54] <pingec> :/
[15:35:03] <Casper> does anyone know if there is such thing as a boot loader that work on any multi-devices block?
[15:35:13] <Casper> s/block/bus/
[15:38:05] <Casper> I'm thinking to do some home automation stuff, would be nice to be able to debug AND update via a single bus for the whole house
[16:23:45] <karlp> Casper: not that I've run across, but let me know if you find one.
[16:23:58] <karlp> I've contemplated writing one, but it's not really a pressign need right now.
[16:29:54] <Casper> same
[16:30:08] <Casper> I'm considering to possibly make a small home automation thing
[16:30:27] <Casper> if I do, I'll need a bus
[16:33:38] <devilsadvocate> Casper: i'm interested in wrting one as well. i looked briefly, but did not find anythiiing that looked promising
[16:34:22] <Casper> I made a midi based bootloader :D
[16:34:44] <Casper> with extremelly basic encryption
[16:34:58] <Casper> so basic that I don't think it would have been effective
[16:35:28] <Casper> I had planned to make a commercial product, which I gave up... but shouln't have
[16:35:29] <devilsadvocate> i doubt any form of serious encryption would be possible there
[16:35:38] <Casper> it can be
[16:35:47] <Casper> I've seen 3des bootloader
[16:35:53] <Casper> and one AES
[16:36:22] <devilsadvocate> in sub 1kb?
[16:36:57] <Casper> dunnot the size
[16:37:10] <Casper> I think it was a 2 or 4k bootloader
[16:51:36] <karlp> you don't need to put the encryption in the bootloader
[16:52:00] <karlp> you can put the encryption in the main app, and have the main app download, and just switch to the bootlader for the flash writing
[16:52:09] <karlp> depending on how much you want to write at once :)
[16:54:59] <Casper> hmm yeah if your flash size is half of the application area size
[16:55:16] <Casper> but then, better just make the bootloader bigger
[17:21:41] <nintendo> i'm sending data from my atmega8 ADC to a PC via USB to UART bridge. there is something unusual: as soon as i unplug the ISP, the data transmission (viewed in hyperterminal) stops. if i plug the ISP in, data transmission continues :/
[17:22:10] <devilsadvocate> nintendo: do you have a pullup resistor on reset?
[17:23:08] <nintendo> devilsadvocate: there is a 10k Ohm resistor between Vcc and reset
[17:23:43] <devilsadvocate> hm. that should be enough
[17:23:54] <devilsadvocate> check your software?
[17:24:21] <nintendo> let me check it - the colour codes say 10k but i measured something like 7-8k this afternoon
[17:24:38] <devilsadvocate> anything less than 10k is fine
[17:25:00] <devilsadvocate> actually, anything less than 100k may even be enough, but i cant be sure
[17:25:45] <nintendo> yes, i've seen few development boards and it varies... usually it's ~10k
[17:29:38] <nintendo> the ISP is connected to SCK/RESET/MISO/MOSI ports - i didn't connect the Vcc/GND pins because i already have a power supply
[17:32:18] <Casper> and the serial port, does it have ground connection?
[17:33:57] <Casper> nintendo: ?
[17:34:22] <nintendo> Casper: uhh nope, i only connected the RX/TX wires
[17:35:19] <h4x0r`> resistors are based on an approximate anyway, so the 10kohm could well be only resisting at 8kohm, all resistors are like that.. its only an estimate ;)
[17:35:19] <Casper> need ground too, that is your problem
[17:35:37] <h4x0r`> 8kohm is enough..
[17:35:52] <Casper> but 8 on 10 is probably that you hold the 2 probes with your fingers
[17:36:03] <Casper> because it's way out of normal 5% specs
[17:36:13] <h4x0r`> k kool
[17:36:18] <h4x0r`> true
[17:36:46] <Casper> but lower the better on reset anyway
[17:37:02] <h4x0r`> and is the resistor on reset going to vcc, or ground
[17:37:20] <h4x0r`> somethings floating... at least thats what it sounds like
[17:38:24] <Casper> pullup, so to VCC
[17:38:40] <Casper> but h4x0r`, he already said he didn't hooked up gnd
[17:38:50] <h4x0r`> hmm
[17:39:51] <nintendo> if i unplug the ISP, transmit interrupts hmm
[17:40:01] <h4x0r`> lul
[17:40:06] <nintendo> i'll upload a picture in a second
[17:40:14] <h4x0r`> presumably a bad connection to tx/rx
[17:40:19] <Casper> nintendo: connect a ground
[17:40:39] <Casper> here is what is happening: when the ISP is connected, the ground is provided by it
[17:40:48] <Casper> when you disconnect, there is no more ground to the pc
[17:40:53] <Casper> and no more serial is working
[17:40:58] <Casper> due to the lack of ground
[17:41:13] <h4x0r`> yep or tx/rx is being bridged by th icp
[17:41:31] <h4x0r`> i presum a bad pin in the idc header
[17:41:34] <h4x0r`> presume*
[17:41:39] <nintendo> Casper: hmmm, the ISP is connected to PC1 and data is received by PC2
[17:41:47] <h4x0r`> uhoh
[17:41:49] <h4x0r`> lol
[17:42:10] <nintendo> yeah, pretty exotic setup
[17:44:05] <devilsadvocate> nintendo: connect ground and then get back to us if it does not work
[17:45:34] <nintendo> awwww, my soldering gun is like 30 miles away ;) ok i'll try
[17:46:23] * nintendo http://nin.co-i60.com/DSC04254.JPG
[17:48:28] <nintendo> the zener diode at the left was a hint from Casper & devilsadvocate !
[17:48:31] <nintendo> hehe
[17:50:47] <h4x0r`> nice caps
[17:53:12] <nintendo> Casper: yeah, i should bury myself alive...
[17:57:49] <h4x0r`> let someone else design the circuit for that if u do ..
[17:57:51] <h4x0r`> lol
[17:58:03] <h4x0r`> gnd is a little bit mandatory lol
[17:59:02] <nintendo> failure is a (huge) part of the learning process -.-
[17:59:18] <h4x0r`> lol
[17:59:33] <h4x0r`> yea i had a grond loop once, good learning curve
[17:59:41] <nintendo> :>
[17:59:48] <h4x0r`> =
[17:59:49] <h4x0r`> =]
[18:07:58] <nintendo> thanks alot guys
[18:13:06] <h4x0r`> sorted?
[18:13:11] <h4x0r`> hey GuShH
[18:13:18] <h4x0r`> brb pplz
[21:01:29] <Casper> inflex: finally the 2 cells that I tought was ok ain't good. I set my psu at 4V 1A it took about 3 minutes until it goes from CC to CV... they are 2.4A cells
[21:01:52] <inflex> whooop yeah
[21:01:57] <inflex> ah well, bin the lot :D
[21:02:23] <Casper> also one started to get warm
[21:02:51] <inflex> that's bad news, yep
[21:02:59] <Casper> or good news
[21:03:18] <Casper> as I want to attempt to make them burst into flames
[21:03:42] <inflex> going to be interesting to see if you have any luck with that - lipos, for sure.... li-ion, a bit tougher
[21:04:03] <Casper> if there is no internal protection it should be doable
[21:04:13] <Casper> I have 5 SLA
[21:04:25] <Casper> I can't beleive that 60V won't be enought
[21:05:25] <inflex> hahah
[21:06:13] <Casper> I'm worried however about the wire that I plan to use... I wonder if #14 is big enought
[21:06:24] <inflex> mmm... depends on the lenght I suppose
[21:06:35] <Casper> ~15ft
[21:06:48] <Casper> but I wonder if the current will excede 15A
[22:04:15] <h4x0r`> question about using tx/rx for programming, aswell as uart/usart?
[22:04:29] <h4x0r`> how is one meant to split between the two
[23:28:16] <bluebie> Hey gusy
[23:28:21] <bluebie> *guys
[23:41:57] <Casper> hi ya