Closed MCUdude closed 1 year ago
Sorry, false alarm! It was the efuse selfprogen
setting! For some reason I forgot to program this fuse.
$ ./avrdude -cusbasp -pattiny2313 -Ulfuse:r:-:h -Uhfuse:r:-:h -Uefuse:r:-:h
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e910a (probably t2313)
avrdude: reading lfuse memory ...
avrdude: writing output file <stdout>
0xff
avrdude: reading hfuse memory ...
avrdude: writing output file <stdout>
0x9f
avrdude: reading efuse memory ...
avrdude: writing output file <stdout>
0xff
avrdude done. Thank you.
$ ./avrdude -curclock -pattiny2313 -P /dev/cu.SLAB_USBtoUART -Uflash:w:/var/folders/6l/ypg6qbw172v1s4vtt6g990tw0000gn/T/arduino_build_534228/Blink.ino.hex:i
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e910a (probably t2313)
avrdude: Note: flash memory has been specified, an erase cycle will be performed.
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file /var/folders/6l/ypg6qbw172v1s4vtt6g990tw0000gn/T/arduino_build_534228/Blink.ino.hex for flash
with 456 bytes in 1 section within [0, 0x1c7]
using 15 pages and 24 pad bytes
avrdude: preparing flash input for device bootloader
avrdude: writing 456 bytes flash ...
Writing | ################################################## | 100% 0.19 s
avrdude: 456 bytes of flash written
avrdude: verifying flash memory against /var/folders/6l/ypg6qbw172v1s4vtt6g990tw0000gn/T/arduino_build_534228/Blink.ino.hex
Reading | ################################################## | 100% 0.06 s
avrdude: 456 bytes of flash verified
avrdude done. Thank you.
It was the efuse selfprogen setting!
Phew! I started worrying :) Sounds like we need to be much more detailed in our advice how to put bootloaders on. I already have expanded the readme on this, so may need to expand. Thanks for mentioning all these little things. Worth documenting how to use/install the bootloaders.
Yes, fuse settings can be tricky. So it will be good to show some fuse settings visually.
As mentioned in other place, I use AVR Fuse Calculator quite a bit and I use the AVRDUESS GUI occassionally just because of fuse settings.
I just stumbled across this while looking into #5.
I've successfully flashed a vector bootloader, but for some reason, I'm getting a verification mismatch when flashing the user program. It's just a simple blink program compiled using ATTinyCore. What is happening, and why am I getting a verification mismatch?