I have a bootloader in FLASH0 that I want to flash via atprogram.exe (for production).
After reading the command help and pdf documentation I figured the commands below would do the trick,
and it says ok, but the boot mode register does not change:
To boot from FLASH0 (this is the command I actually want to use):
atprogram.exe -t atmelice -i JTAG -d ATSAM3A8C write -o 0x400E0A04 --values 0x5A00020B
To boot from ROM (I tried this also, only for test):
atprogram.exe -t atmelice -i JTAG -d ATSAM3A8C write -o 0x400E0A04 --values 0x5A00000B
The result with both commands are:
"Firmware check OK"
"Write completed successfully."
But nothing happens!
When checking via AtmelStudio the "GPNVMBITS.BOOT_MODE" is unchanged!
What am I doing wrong?