3.6.2 Running the Harmony Application Executed from Serial Flash Memory
To run the Harmony application executed from serial Flash memory upon reset, flash the boot.bin and harmony.bin files to the serial Flash memory with the SAM-BA commands shown below.
Note: To run the Harmony application executed from serial Flash upon reset, use the boot.bin file generated in section 3.4.2.2
The SAM-BA commands to program the boot and application file to serial Flash are:
- Erase the entire serial Flash:
- sam-ba -p j-link -b sam9x60-ek -a qspiflash -c erase
- Program the at91bootstrap in the starting
address of the serial Flash:
- sam-ba -p j-link -b sam9x60-ek -a qspiflash -c writeboot:boot.bin
- Program the application starting from
serial Flash offset of 0x40000
- sam-ba -p j-link -b sam9x60-ek -a qspiflash -c write:harmony.bin:0x40000
Now press the reset button and the user application is executed from serial Flash.
Note: A console serial communication can be enabled to observe
the debug messages.