I'm now back to trying to get the Atmega1284P-PU programmed with an Arduino Uno board.
It simply does. not. work.
I have altogether spent the better part of one week trying to upload any kind of code at all to the 1284P. I've even tried another 1284. Simply nothing works.
This is immensely frustrating.
Here's my current setup again:
-
Arduino Uno board, with a 328P-PU on it, using either ArduinoISP or Nick Gammon's Atmega_Board_Programmer. It really seems to make no difference which one I am using. I've also tried different baud rates. Nada.
-
Atmega1284P-PU on a breadboard. Using a 16 MHz external crystal with 18 pF caps. 10K pull up to Vcc on pin 9/RST. 100 uF cap between GND and Vcc. Also tried the recommended 0.1 uF. Made no difference. Connections pentuple-checked. A-OK.
-
Pin connections between Arduino Uno and breadboard 1284:
GND ---> GND
Vcc ---> Vcc
RX ---> TXD0
TX ---> RXD0
RST ---> 0.1 uF cap ---> RST
When I try to upload a sketch, the sketch compiles without any problem, but this is the verbose output when it gets to uploading it:
avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "C:\Program Files\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM8
Using Programmer : arduino
Overriding Baud Rate : 115200
AVR Part : ATmega1284P
Chip Erase delay : 55000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 10 128 0 no 4096 8 0 9000 9000 0xff 0xff
flash 65 10 256 0 yes 131072 256 512 4500 4500 0xff 0xff
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
Programmer Type : Arduino
Description : Arduino
Hardware Version: 3
Firmware Version: 4.4
Vtarget : 0.3 V
Varef : 0.3 V
Oscillator : 28.800 kHz
SCK period : 3.3 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.04s
avrdude: Device signature = 0x1e950f
avrdude: reading input file "C:\Users\darkmind\AppData\Local\Temp\build97f72ef5debfac14b77c00792f51d20d.tmp/HeadUnit.ino.hex"
avrdude: writing flash (23544 bytes):
Writing | ################################################## | 100% 3.04s
avrdude: 23544 bytes of flash written
avrdude: verifying flash memory against C:\Users\darkmind\AppData\Local\Temp\build97f72ef5debfac14b77c00792f51d20d.tmp/HeadUnit.ino.hex:
avrdude: load data flash data from input file C:\Users\darkmind\AppData\Local\Temp\build97f72ef5debfac14b77c00792f51d20d.tmp/HeadUnit.ino.hex:
avrdude: input file C:\Users\darkmind\AppData\Local\Temp\build97f72ef5debfac14b77c00792f51d20d.tmp/HeadUnit.ino.hex contains 23544 bytes
avrdude: reading on-chip flash data:
Reading | #################################################Error uploading sketch
# | 100% 2.68s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0082
0xbf != 0x81
avrdude: verification error; content mismatch
avrdude done. Thank you.
I would really appreciate any help at all with this. This is seriously slowing down progress on my entire CarDuino project. ![]()