Closed unebonnevie closed 7 months ago
Although I get a verification error when flashing the bootloader (see original post), I am actually able to flash any firmware on my 1284P via the bootloader in using the Arduino IDE's upload menu choice.
Example of flashing the Arduino's Examples->SD->CardInfo SD card example. It flashes and runs fine with the 1284P via Mightycore, except just the failure of verification when flashing the boot loader as pointed out in the original post.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9705 (probably m1284p) avrdude: reading input file "C:\Users\asle\AppData\Local\Temp\arduino_build_733264/listfiles.ino.hex" avrdude: writing flash (11156 bytes):
Writing | ################################################## | 100% 0.55s
avrdude: 11156 bytes of flash written avrdude: verifying flash memory against C:\Users\asle\AppData\Local\Temp\arduino_build_733264/listfiles.ino.hex: avrdude: load data flash data from input file C:\Users\asle\AppData\Local\Temp\arduino_build_733264/listfiles.ino.hex: avrdude: input file C:\Users\asle\AppData\Local\Temp\arduino_build_733264/listfiles.ino.hex contains 11156 bytes avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.26s
avrdude: verifying ... avrdude: 11156 bytes of flash verified
avrdude done. Thank you.
But you aren't even using MightyCore! Mighty Mini 1284p @ 16MHz, Optiboot @ 1Mbps is from another Arduino core
Hi,
Also ready installed. I am going to update.
After updating I now have a "MightyCore" menu item in the "Boards" menu.
Now fails to program because fails to find the programmer.
But the programmer is there. "Usbtiny" in the device manager is shown and active.
Hi, I am using the ATMEGA1284P and have followed the instructions to get the bootloader flashed. My 1284P is programmed with 0xCE as the low fuse byte and 0xD9 as the high fuse byte. I have it use a 16Mhz external crystal.
I keep getting the below failure while flashing the bootloader. It doesn ot matter what 16Mhz 1284P board choice I choose.
I do have a 100nF capacitor between the DTR or RTS line on my USB to serial adapter and to the RESET pin on the 1284P's reset pin.
Please see the image attached. It's trying to flash a bootloader of 131702 bytes. That's big!
Thanks for any tip!
`avrdude: Using SCK period of 10 usec avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9705 (probably m1284p) 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: Using SCK period of 10 usec avrdude: reading input file "C:\Users\asle\dev\arduino\hardware\mighty-1284p\avr/bootloaders/optiboot/optiboot_atmega1284p.hex" avrdude: writing flash (131072 bytes):
Writing | ################################################## | 100% 0.00s
avrdude: 131072 bytes of flash written avrdude: verifying flash memory against C:\Users\asle\dev\arduino\hardware\mighty-1284p\avr/bootloaders/optiboot/optiboot_atmega1284p.hex: avrdude: load data flash data from input file C:\Users\asle\dev\arduino\hardware\mighty-1284p\avr/bootloaders/optiboot/optiboot_atmega1284p.hex: avrdude: input file C:\Users\asle\dev\arduino\hardware\mighty-1284p\avr/bootloaders/optiboot/optiboot_atmega1284p.hex contains 131072 bytes avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.00s
avrdude: verifying ... avrdude: verification error, first mismatch at byte 0x1fc00 0xff != 0x11 avrdude: verification error; content mismatch
avrdude done. Thank you.
Error while burning bootloader.`