alexforencich / xboot

XBoot Extensible Bootloader
125 stars 69 forks source link

Fails to flash application on xmega384D3 #30

Open codemonkey1000 opened 6 years ago

codemonkey1000 commented 6 years ago

I crated a config file for the xmega384D3 and modified the Makefile to have the correct boot loader address. the makefile programs the boot loader to the chip and i can enter the boot loader using a button. When trying to flash the application following your example it fails to program. avrdude says ****failed repeatedly and the verify step at the end fails also. Any idea why this might happen?

alexforencich commented 6 years ago

Have you tried with an explicit erase (avrdude -e)?

codemonkey1000 commented 6 years ago

Thanks for the reply. I did not try -e. I looked at another boot loader, Xmega boot loader, it didn't work either. I was worried a bit that i was running into AVR1008 with the D3 chip so i tried with a C3, same thing. Ended up being the "page erase" command being sent from avrdude (6.2) Will try it with xboot later today with the -D and with -e. I prefer your make file solution, easier to automate.

Thx

Eric

On Sun, Nov 5, 2017 at 2:39 PM, Alex Forencich notifications@github.com wrote:

Have you tried with an explicit erase (avrdude -e)?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/alexforencich/xboot/issues/30#issuecomment-342011904, or mute the thread https://github.com/notifications/unsubscribe-auth/ATvIl4groYD7xlApFA6tjTQpshnrG5W1ks5szjkYgaJpZM4QSOGx .

codemonkey1000 commented 6 years ago

using -D to disable page erase worked. xboot does flash using xmega384d3.

On Sun, Nov 5, 2017 at 2:47 PM, Eric Weaver codemonkey1000@gmail.com wrote:

Thanks for the reply. I did not try -e. I looked at another boot loader, Xmega boot loader, it didn't work either. I was worried a bit that i was running into AVR1008 with the D3 chip so i tried with a C3, same thing. Ended up being the "page erase" command being sent from avrdude (6.2) Will try it with xboot later today with the -D and with -e. I prefer your make file solution, easier to automate.

Thx

Eric

On Sun, Nov 5, 2017 at 2:39 PM, Alex Forencich notifications@github.com wrote:

Have you tried with an explicit erase (avrdude -e)?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/alexforencich/xboot/issues/30#issuecomment-342011904, or mute the thread https://github.com/notifications/unsubscribe-auth/ATvIl4groYD7xlApFA6tjTQpshnrG5W1ks5szjkYgaJpZM4QSOGx .