SAM9X75 Curiosity Pro - SAM-BA® GUI: Program at91Bootstrap and MPLAB® Harmony Binaries to NAND Flash
This section describes how to use the SAM-BA® GUI to program the at91bootstrap and MPLAB® Harmony application binaries into the NAND Flash memory of a Microchip MPU.
Procedure
Part 1: Program the bootloader and Application Binary Into NAND Using SAM-BA GUI
Connect the FTDI USB-UART serial cable to J63.
Power the board using USB Type-C cable from your host PC through J1.

To program the board via USB (in our case COM port7):
- Select the connection type: Serial
- Select the board: sam9x75-curiosity
- Board/connection configuration: Click on the gear icon next to the board selection to connect to the board
Connect the board to a serial terminal for console output (115200 baud) via the FTDI UART cable to J63.
In SAM-BA GUI, to monitor serial commands, press the Reset button on the board and observe the RomBoot being printed on the console.

Open NAND boot jumper J77.
Press the Reset button and observe the RomBOOT message being printed on the console
Close the NAND boot jumper J77 to enable NAND Chip Select.
Program at91bootstrap.bin and harmony.bin using SAM-BA ISPP GUI.
Download the pre-built binaries, harmony.bin and at91bootstrap.bin.
Erase NAND flash:
- From SAM-BA ISPP GUI, ensure applet NAND Flash is selected from the left navigation menu and erase is selected under Select Command.
- Then press Execute. This will erase NAND flash.

Flash at91bootstrap.bin:
- From SAM-BA ISPP GUI, make sure applet NAND Flash is selected from the left navigation menu and writeboot is selected under Select Command.
- Then select the corresponding at91bootstrap.bin and press Execute. This will flash at91bootstrap.bin.

Flash harmony.bin:
- From SAM-BA ISPP GUI, make sure applet NAND Flash is selected from the left navigation menu and write is selected under Select Command.
- Choose the address as 0x40000.

- Then select the corresponding harmony.bin and press Execute. This will flash harmony.bin.
This completes flashing NAND with the required boot and application binaries.
Part 2: Boot From NAND and Verify Output on the Serial Console
Press Reset on the board.
Confirm in the serial console that the ROM code loads from NAND and that at91bootstrap starts and launches the MPLAB Harmony application. Then verify the application’s expected behavior by pressing the USER button and observing the LED.
The sample application and console messages are shown in the accompanying image:

Results
You have successfully programmed both the bootloader and the MPLAB Harmony application into NAND using SAM‑BA GUI and verified correct system startup by confirming the complete boot sequence from Boot ROM to at91bootstrap and finally to the MPLAB Harmony application, as observed through serial console output and expected application behavior.