Hi!
I’m having some weird problems with the programming hat. I’m using it to program custom boards with an atmega328p microcontroller and every time i try to program a new board for the first time it will fail to set the extended fuse bit. If i tap to program again the extended fuse will be set correctly. I have verified this by checking the fuses in Atmel Studio.
I’m also getting hundreds of "not found errors in the log output but the boards still seems to work fine after programming :?
Fuse settings
#FUSE BITS
HIGH_FUSE=0xD5
LOW_FUSE=0xFF
EXT_FUSE=0x05 # due to masking, 0x05 = 0xFD, 0x07 = 0xFF, ***Note on an ATMEGA2560, ext fuse writes and verifies as 0xFD
LOCK=0x0F # due to masking, 0x0F = 0xCF
Log output first run on fresh atmega328p:
: not foundkg25_b.ino.eightanaloginputs.hex: 1: /home/pi/mikg25_b.ino.eightanaloginputs.hex: :100000000C94E3000C940B010C940B010C940B0169
: not foundkg25_b.ino.eightanaloginputs.hex: 2: /home/pi/mikg25_b.ino.eightanaloginputs.hex: :100010000C940B010C940B010C940B010C94940E9A
: not foundkg25_b.ino.eightanaloginputs.hex: 768: /home/pi/mikg25_b.ino.eightanaloginputs.hex: :0C2FEA000025732025732573202573003B
: not foundkg25_b.ino.eightanaloginputs.hex: 769: /home/pi/mikg25_b.ino.eightanaloginputs.hex: :00000001FF
Programming beginning…
…programming done.
avrdude: 1 bytes of hfuse verified
avrdude: 1 bytes of lfuse verified
FLASH_SIZE:12278
avrdude: 12278 bytes of flash verified
avrdude: 1 bytes of lock verified
Log output subsequent programming attemps:
: not foundkg25_b.ino.eightanaloginputs.hex: 1: /home/pi/mikg25_b.ino.eightanaloginputs.hex: :100000000C94E3000C940B010C940B010C940B0169
: not foundkg25_b.ino.eightanaloginputs.hex: 2: /home/pi/mikg25_b.ino.eightanaloginputs.hex: :100010000C940B010C940B010C940B010C94940E9A
not foundkg25_b.ino.eightanaloginputs.hex: 768: /home/pi/mikg25_b.ino.eightanaloginputs.hex: :0C2FEA000025732025732573202573003B
: not foundkg25_b.ino.eightanaloginputs.hex: 769: /home/pi/mikg25_b.ino.eightanaloginputs.hex: :00000001FF
Programming beginning…
…programming done.
avrdude: 1 bytes of hfuse verified
avrdude: 1 bytes of lfuse verified
avrdude: 1 bytes of efuse verified
FLASH_SIZE:12278
avrdude: 12278 bytes of flash verified
avrdude: 1 bytes of lock verified