3.4.2.1 Configure at91bootstrap to Debug Harmony Applications Executed from Serial Flash on MPLAB X IDE

  1. Go to Project>Properties>Kconfig>load.
  2. Select the appropriate project directory, then select configs.
  3. In the configs folder, select <board>df_qspi_uboot_defconfig.
  4. Click Open, then Apply, then OK.

Then perform the following changes:

  1. Under Primary Operation, select Load and Stop.
  2. Under Flash Memory, expand QSPI Configuration, then select eXecute In Place.
  3. Under Next software type, select Load 4 MB into the start of SDRAM.
  4. Under Demo application image storage setup:
    • Flash offset is the QSPI offset where a user wants to flash the application.
    • Demo app image size is the size of the app image.
    • External RAM address to load Demo-App image is the QSPI starting address of the application. It should match the .text load address in your application linker file. The linker file can be found in the user application project folder, Eg: ddram.ld file)
  5. Click Apply, then OK.
Note: The table below provides the external QSPI address for the boards. For details, refer to the product data sheet.
Table 3-1. External QSPI Address
Board Name QSPI Start Address QSPI End Address
SAM9X60-EK (DT100126) 0x70000000 0x708000000
SAMA7G54-EK (EV21H18A) 0x20000000 0x280000000

An example configuration for SAMA7G54-EK is shown below.

Now clean and build at91bootstrap.

Note: The boot file (at91bootstrap.elf) generated by using this Kconfig can be used to debug the Harmony application executed from the serial Flash on MPLAB X IDE.