Is it just me or is someone else facing problems while uploading sketches into ATmega1284p using maniacbugs optiboot bootloader?For the last few days I have been experiencing the problem. The smaller sketches say Blinky codes and all get uploaded fine(with a probability of around 90% ie) it uploads properly 9 out of 10times ) But when the sketch size is larger(Sketch of a project I am working on. Mine around 16-17KB) my rate of uploading correctly drops drastically to around 10-20% smiley-sad Most of the time it uploades wrongly with the following error... smiley-sadCode:avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64avrdude: stk500_cmd(): programmer is out of syncor this...avrdude: stk500_getsync(): not in sync: resp=0x00Tried burning bootloader again and still no improvement... (The board and schematics I use http://arduino.cc/forum/index.php/topic,80483.msg732693.html#msg732693)Has anyone else experienced it??
I admit I haven't read every last word there
have you considered using SPI (ICSP) programming instead
I really dont want to invest in any other programmers.
Tried to program my ATmega1284p (With IC in clone board) with duemilanove board (with that ATMega1284p board selected in IDE) by shorting RST, Rx, Tx, 5V, GND of duemilanove board (with Amega328p IC removed of course..) and Atmega1284p. ----> This I thought should have worked but strangely wasnt...
QuoteI really dont want to invest in any other programmers....QuoteTried to program my ATmega1284p (With IC in clone board) with duemilanove board (with that ATMega1284p board selected in IDE) by shorting RST, Rx, Tx, 5V, GND of duemilanove board (with Amega328p IC removed of course..) and Atmega1284p. ----> This I thought should have worked but strangely wasnt... Well you have at least two boards, right? A programmer costs around $20. It might solve your problems.
So you've bought 4-5 duemilanoves but you can't bring yourself to buy a programmer? If you can bring yourself to get another duemilanove board, get a programmer instead.
you can't bring yourself to buy a programmer?
Burnt the maniacbug's bootloader 3-4 times -- > Bootloader burns just fine using ArduinoISP tutorial
It seems ICSP is working fine -- he says the bootloader is written successfully:QuoteBurnt the maniacbug's bootloader 3-4 times -- > Bootloader burns just fine using ArduinoISP tutorial ... so another programmer isn't likely to help anything.
From what I understand, the problem is with uploading sketches via serial. From my own research, I see that's rather common. Crossroads and others suggested it's probably the fuse settings that need to be fixed, and westfw found some bugs in the bootloader on the 1284p that have also been fixed.So, it sounds like the fix is: Get the new OptiBoot from the repo and replace Maniacbug's version. Then, fix the boards.txt entry to use the fuses from the last page or two of the long 1284p IDE thread
@Nick gammon I have some 4-5 dumilanove boards though... Can I make a AVRISP MkII from that?
@funkyguy4000 Nice of you to read such a long post in class.. Boring lectures are on??? Thanx But as I said its last option. Are u referring to burning bootloader via another arduino (or something similar) becoz I have burnt bootloaders via ArduinoISP only...
but plz do help me out here becoz where can I get the edited bootloader? (I have no idea what you meant by " Get the new OptiBoot from the repo")
You have a number of problems you need to solve and I'm not sure where in the list you are: Finding the correct bootloader (hex file) for your chip Flashing the bootloader (ie. via the ICSP interface) Getting the fuses right Connecting the bootloader to the computer via serial/USB Selecting the correct board in the IDE Uploading a sketch using the new bootloader without errors Seeing the sketch work. smiley
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16