Programming the Atmega1284P

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks to Nick Gammon's blog http://www.gammon.com.au/forum/?..., I successfully burned the bootloader on to my 1284P. I tried burning some programs using my arduino dumilanalov. I removed the atmega328, and took pins from
TX(arduino digital pin 1)-- TXD0(pin15),
RX(arduino digital pin 0)-- RXD0(pin14),
RESET(arduino) -- RESET(pin 9),
5v--5v,
GND--GND
to the 1284p which is on a breadboard. Also
1. Added a 16Mhz crystal with 2 22pf caps.
2. 10k resistor from RESET pin (pin 9) to 5v.

Then i tried burning the blink sketch.

But, I'm getting errors and the weird part is that they change most of the time.

error 1-

Quote:
avrdude: stk500_initialize(): (a) protocol error, expect=0x14, resp=0x42
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

error 2-

Quote:
avrdude: stk500_loadaddr(): (a) protocol error, expect=0x14, resp=0x55

avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
avrdude: stk500_cmd(): programmer is out of sync

error 3-

Quote:
avrdude: stk500_getsync(): not in sync: resp=0x00

Any help will be greatly appreciated.. :(

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Your 'blog' seems to give very good instructions.

If you have installed the Optiboot bootloader, you should use 'avrdude -c arduino -P com20 -b 115200 -p ATmega1284p' where you use the correct com# instead of com20

The 'blog' shows some non-standard programming software. I am sure that it is 'good' software but is not as well known as 'avrdude'

Note that when you 'burned' the bootloader, you should have set fuses and lockbits too.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0