#avr | Logs for 2014-05-20

Back
[04:03:51] <gcanada> hello, i am trying to modify my bootloader from a atmega128rfa1 to a atmega256rfr2. I am using the FTDI programmer, and i have no problems uploading the bootloader to the device, but when i try to upload a program i always have the same error before start writting the flash: avrdude: stk500_loadaddr(): (a) protocol error, expect=0x14
[04:04:41] <gcanada> anybody knows any guide of uploading a bootloader ( with arduino programmer) from 128rfa1 to 256rfr2
[04:04:46] <gcanada> or just the rfr2 one..
[04:04:52] <gcanada> thanks!
[04:14:11] <Duality> assembly ftw
[04:21:55] <gcanada> can you explain yourself :P?
[04:26:19] <blathijs> gcanada: The 256 supports bigger flash, which is probably where things go wrong
[04:26:41] <blathijs> gcanada: 128kb flash (== 64k words) can be addressed using a 16-bit address, but the 256 needs one extra bit for addresses
[04:27:01] <blathijs> gcanada: I think this is the main difference between the stk500v1 and stk500v2 protocol
[04:27:50] <blathijs> gcanada: You might want to have a look at the bootloaders we wrote for the pinocc.io project, which also uses 256rfr2: https://github.com/Pinoccio/core-pinoccio/tree/master/avr/bootloaders
[04:28:14] <blathijs> gcanada: stk500v2 there is the "regular" bootloader, STK500RFR2 also supports over-the-air flashing.
[04:41:30] <gcanada> thnaks blathijs!
[05:51:11] <Duality> how do i work with my own .inc files. like seperate source files ?
[06:16:24] * PHPtest sayin' hello to everyone
[06:18:39] <PHPtest> i have a question, i posted it on #electronics too, but i thought i can post it here too: i want to make a digital lab psu, since i have 0 knowledge in analog electronics, and just a bit more in digital, i would like to challange myself with this, ive got a hint on #electronics, but the schematic is missing, do you guys know any open source schematic related to this?
[06:19:27] <Lambda_Aurigae> all depends on what you need in the power supply.
[06:19:53] <Valen> 7812 ftw!
[06:20:05] <Valen> sorry lm317 rather
[06:20:26] <jacekowski> PHPtest: well, specify your requirements
[06:20:30] <Lambda_Aurigae> I was thinking the old convert-atx-supply thing
[06:21:01] <jacekowski> PHPtest: and what do you mean by digital?
[06:21:10] <jacekowski> PHPtest: microprocessor controled voltage?
[06:21:30] <Lambda_Aurigae> http://www.electronics-tutorials.ws/blog/convert-atx-psu-to-bench-supply.html
[06:22:28] <PHPtest> jacekowski, yes, i want to controll the voltage, maybe the current with pc over usart
[06:22:58] <Lambda_Aurigae> aahh, yes, a good intermediate to advanced project for a beginner..
[06:23:00] <PHPtest> Lambda_Aurigae, i would like to make my own on learning purpose, i want to learn and understand
[06:23:23] <jacekowski> PHPtest: have you got all the test gear required to build something like that?
[06:23:46] <jacekowski> PHPtest: and generally power supplies are not a good thing to start with
[06:24:00] <jacekowski> due to mains voltages involved
[06:24:03] <PHPtest> Lambda_Aurigae well, im used with usart, bootloaders, self programming and mainly everything related to mcu, i just need to refresh my memories, related to that, but i want to learn more about analog stuff, opamps, analog control stuff
[06:24:06] <jacekowski> and high voltage DC as well
[06:24:28] <PHPtest> jacekowski well my max voltage would be 24VDC
[06:24:39] <PHPtest> and current max 10A
[06:24:51] <Lambda_Aurigae> http://www.electronics-lab.com/projects/power/020/
[06:24:58] <Lambda_Aurigae> 10A?!?!
[06:25:09] <jacekowski> PHPtest: input voltages
[06:25:17] <jacekowski> PHPtest: and you probably want to go switch mode
[06:25:26] <jacekowski> PHPtest: so high voltage DC stored in capacitors
[06:25:30] <PHPtest> Lambda_Aurigae, yes 10A
[06:25:41] <PHPtest> 10A24VDC
[06:26:32] <Lambda_Aurigae> http://www.ti.com/lit/ml/slup232/slup232.pdf a good read on the subject.
[06:26:51] <Lambda_Aurigae> http://www.microsyl.com/index.php/2010/03/31/bench-power-supply-0-25v-0-5amp/
[06:27:02] <Lambda_Aurigae> homebuilt 0-25V 0-5A supply.
[06:27:25] <PHPtest> jacekowski im not sure what switch mode means... maybe i am but maybe not..
[06:27:54] <jacekowski> linear 24V@10A will require HUGE heatsinks
[06:27:59] <Lambda_Aurigae> your PC power supply is a switch mode supply.
[06:28:04] <Lambda_Aurigae> or switching power supply.
[06:28:05] <PHPtest> Lambda_Aurigae thank you, that looks aweosme
[06:28:13] <Lambda_Aurigae> I suggest doing lots and LOTS of reading on that.
[06:28:54] <Lambda_Aurigae> going up from 5A to 10A with that circuit would require some serious mods...
[06:29:37] <PHPtest> jacekowski well i know that it would need huge heatsinks, but still 10A24VDC is only 240W ..
[06:30:06] <Lambda_Aurigae> not sure I like how that guy did the stacked transistors thing for the main output though.
[06:30:23] <Lambda_Aurigae> if one fails the other two will pop almost immediately.
[06:30:50] <PHPtest> Lambda_Aurigae what i really need to learn about is how to protect stages
[06:31:14] <PHPtest> Lambda_Aurigae as you said, if something fails then everything burns out..
[06:31:40] <Lambda_Aurigae> start with basic electronics and work your way up...take an electronics class or three..study, work, explore, burn up a few dozen or a few hundred parts, and learn learn learn.
[06:31:56] <Lambda_Aurigae> it's not something where you will read one webpage then know everything about it.
[06:32:14] <PHPtest> here is something for what i cant find the schematic http://www.element14.com/community/groups/cadsoft-eagle-design-competition/blog/2012/08/31/pic-controlled-lab-power-supply
[06:33:31] <PHPtest> Lambda_Aurigae i know, im not hobbyist, i am at that level yet, but i will finish upper bachelor soon in this field, im just a noob with no experience
[06:33:42] <Lambda_Aurigae> well, with some work you could reverse engineer the schematic for that...or maybe, contact the site's owner?
[06:34:41] <PHPtest> Lambda_Aurigae well i want to make my own schematic, as i said for learning purpose, but it would have been a good start to see others and make some calculus to chech the logics behind them
[06:34:59] <PHPtest> check*/
[06:35:12] <Lambda_Aurigae> the pdf I posted earlier has a lot of theoretical info in it for that.
[06:36:21] <PHPtest> my ex teacher, made a variable digital psu up to 30A 24VDC, dunno what he did there and i cant ask him now how he did it..
[06:38:51] <PHPtest> Lambda_Aurigae yes, this pdf is just like mana, its very usefull, thank you
[06:44:29] <PHPtest> do you recommend transistors for current amplifying or some dedicated current amplifier<
[06:44:30] <PHPtest> ?
[06:46:44] <PHPtest> can you recommend some simulator software for this purpose?
[06:46:57] <Lambda_Aurigae> spice
[06:47:09] <Lambda_Aurigae> or one of the various versions of spice
[06:47:34] <PHPtest> yea, thats what ive used in school, but i dont own the software
[06:48:05] <Lambda_Aurigae> ngspice
[06:48:10] <Lambda_Aurigae> heck, do you not have google?
[06:48:43] <Lambda_Aurigae> gpsim, oregano logicsim jcircuits
[06:49:25] <Lambda_Aurigae> qucs, easyeda geckocircuits gnucap
[06:50:11] <Lambda_Aurigae> just to name a few.
[06:50:25] <Lambda_Aurigae> a few free and/or open source
[06:50:44] <PHPtest> Lambda_Aurigae i have, but probably you people went through this and know the best, not like i dont appreciate your time, i really dont want to waste your time
[06:50:53] <PHPtest> http://www.linear.com/designtools/software/#LTspice i found this
[06:51:01] <Lambda_Aurigae> what is best for me might not be best for you.
[06:51:32] <PHPtest> well thats true, but since im a noob, i think its more then enough for me yet
[06:52:24] <Lambda_Aurigae> I avoid simulators as they are often don't simulate real world problems well.
[06:52:49] <PHPtest> Lambda_Aurigae ah yea..
[06:53:04] <PHPtest> Lambda_Aurigae do you have any experience with LtSpice?
[06:53:05] <Lambda_Aurigae> I also started with electronics before I had a calculator and had to do the math by hand,,or more often, guess and hope I got it right.
[06:53:50] <PHPtest> Lambda_Aurigae, yea i also like to do it by hand, allways, but after that i want to make a prototype in PC
[06:53:53] <Lambda_Aurigae> have never used ltspice but did play with ngspice some years back.
[06:54:41] <Lambda_Aurigae> aaand, time to make lunch and head to work.
[06:55:52] <PHPtest> thank you for your help and time, have a nice and easy day
[07:08:52] * PHPtest going AFK
[12:32:16] <hetii> HI :)
[13:40:09] <mog> hi
[13:40:39] <mog> im working on my dev board and i can get it to read fuses from my programmer and write code to it, but it never seems to run any of it
[13:40:48] <mog> i have sent it simple code just turn my led on
[13:40:54] <mog> and i dont see anything happen
[13:41:38] <N2TOH> are you sure your clock setting are correct, and checked that your crystal if used is indeed running?
[13:42:07] <mog> im using the crystal with a 32.768khz crystal
[13:42:19] <mog> im not sure how to check that its installed correctly
[13:42:22] <mog> its just two pads
[13:42:25] <mog> and its down
[13:42:31] <mog> i guess i could remove it
[13:42:36] <mog> and see if that makes a difference
[13:42:41] <N2TOH> a stalled oscillator would cause code not to run, did you install the correct bypass caps to ground?
[13:43:06] <mog> no, everything i have found document wise reccomends not using them with a crystal
[13:43:20] <mog> er with a 32.768khz crystal
[13:44:05] <N2TOH> ah ok, what about the fuse setting in the AVR. typically people tend to use a frequency of 1MHz of faster
[13:44:39] <N2TOH> there are different settings for internal and external clock sources, and speed ranges.
[13:44:45] <mog> im using 8mhz internal fuse setting'
[13:45:35] <N2TOH> do you have the watch crystal attached as the main external crystal, or is your AVR chip one that supports a seperate 32KHz oscilator?
[13:46:04] <mog> its a 328p its attached direct
[13:46:38] <N2TOH> ok so why do you have a 32Khz external crystal, when you are configed to use in internal 8MHz clock?
[13:48:15] <mog> because thats how it works? the fuse setting is set to run at 8mhz with the 32khz crystal tied to the time interrupt
[13:49:41] <mog> i pulled the crystal
[13:49:44] <mog> just in case it was that
[13:49:49] <mog> still not booting
[13:49:56] <mog> but its still taking programming
[13:51:20] <N2TOH> I'm at a loss at this time sorry
[13:53:32] <mog> ugh
[13:53:36] <mog> i cant figure it out
[14:21:11] <megal0maniac> mog: Check that the WDT fuse is not set
[14:21:29] <megal0maniac> If it programs with ISP then your clock is fine
[14:25:03] <N2TOH> mog, are you sure your compiler is set correctly, and that your not using code intended for another chip
[18:56:42] <megal0maniac> I love xmega
[18:56:56] <Lambda_Aurigae> I love my wife.
[18:57:15] <megal0maniac> I'm taking what I can get
[18:57:39] <Lambda_Aurigae> kinky.
[18:57:58] <megal0maniac> Hardly :)
[18:58:14] <Lambda_Aurigae> they you aint doing it right!
[18:58:49] <megal0maniac> >.<
[20:17:39] <hetii> lol :)