Uploaded bootloader, can't upload firmware

kallsop
Posts: 8
Joined: Sun Mar 29, 2020 4:24 am

Re: Uploaded bootloader, can't upload firmware

Post by kallsop » Tue Apr 28, 2020 9:11 am

Hmmm. So avrdude says the bootloader is written successfully. But Cura or firmware toolkit cannot upload firmware to the printer. After writing the bootloader, I read it out with this command:

Code: Select all

"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude.exe" -C "C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf" -v -p atmega2560 -c usbasp-clone -P usb -U flash:r:"read.hex":i
In the read.hex file, the bootloader has code beginning at address 0x1E000, ending at 0x1FD1F. Then the same code repeats at starting address 0x3E000. The bootloader hex programming file only has code at the 0x3E000 starting address.

Does this mean the usbasp with its firmware is not able to correctly support atmega2560 device? It seems that the 0x00000 to 0x1FFFF address range is duplicated at 0x20000 to 0x3FFFF. The address MSB is stuck? Not good. My arduino uno has died so I can't use that, have ordered a new one.

kallsop
Posts: 8
Joined: Sun Mar 29, 2020 4:24 am

Re: Uploaded bootloader, can't upload firmware

Post by kallsop » Fri May 08, 2020 8:40 am

Final update:
Used avrdude and the usbasp to upload ArduinoISP+bootloader hex to the arduino uno.
Then used avrdude and the arduino uno to program the usbasp with usbasp-v1.06-alpha-2016-05-18-atmega8.hex

Built b493 version of vert's firmware for A10. Merged that with the bootloader using srec_cat
Used avrdude and the usbasp to uploaded the merged firmware to A10

Yay, up and running again. I kept it simple in the description above. I can provide more details and avrdude commands if asked.

Next: metal hotend and direct drive upgrade. TMC2100 drivers upgrade. Make a mount for the Pi 3 + camera running Octoprint.

Post Reply