Hi guys,
I developed a relatively simple program for an embedded system using the SAM3U4-EK. The program used the default "getting-started-project" and then i rewrote the main processing loop to fit my purposes, i never touched anything relating to the flashloader. For the actual application i only need the simplest device in the series i.e. SAM3U1C, so i have built a barebones board.
I have changed the following files to reflect the hardware changes:
1. flash.icf replaced with equivalent from "asf-standalone-archive-3.2.1\asf-3.2.1\sam\utils\linker_scripts\sam3u\sam3u1\iar\"
2. device file definitions replaced with ioat91sam3u1.h
3. flashloader replaced with at91sam3u1-flash.board
I am using IAR systems embedded workbench.
If i "download and debug" then the program will run as desired but will not start up standalone i.e. after a power on reset. If i power cycle the device and then go to "debug without downloading" then run the code from the debugger, again it will run fine so i know it is successfully programming the chip.
The flashloader shows both the extra parameters --flash and --boot, which i believe are all i should need to set the GPNVM bit and ensure that the device will boot. Is there any way to verify that this bit is being set by the programmer?
Any help you could provide would be greatly appreciated.
Cheers.
Dave
I developed a relatively simple program for an embedded system using the SAM3U4-EK. The program used the default "getting-started-project" and then i rewrote the main processing loop to fit my purposes, i never touched anything relating to the flashloader. For the actual application i only need the simplest device in the series i.e. SAM3U1C, so i have built a barebones board.
I have changed the following files to reflect the hardware changes:
1. flash.icf replaced with equivalent from "asf-standalone-archive-3.2.1\asf-3.2.1\sam\utils\linker_scripts\sam3u\sam3u1\iar\"
2. device file definitions replaced with ioat91sam3u1.h
3. flashloader replaced with at91sam3u1-flash.board
I am using IAR systems embedded workbench.
If i "download and debug" then the program will run as desired but will not start up standalone i.e. after a power on reset. If i power cycle the device and then go to "debug without downloading" then run the code from the debugger, again it will run fine so i know it is successfully programming the chip.
The flashloader shows both the extra parameters --flash and --boot, which i believe are all i should need to set the GPNVM bit and ensure that the device will boot. Is there any way to verify that this bit is being set by the programmer?
Any help you could provide would be greatly appreciated.
Cheers.
Dave