SAM9X75 Curiosity Pro - SAM-BA® GUI: Program at91Bootstrap and MPLAB® Harmony Binaries to NAND Flash

Last modified by Microchip on 2026/11/20 18:39

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.

Make sure that SAM-BA GUI is properly set up on your host computer by following the instructions provided on the "Prerequisites for SAM-BA® GUI" page.

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.

SAM9X75 Curiosity Pro


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.

Serial 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.

Note: Ensure that opening jumper J77, pressing the Reset button, closing the NAND boot jumper, and executing SAM-BA GUI commands all happen within 16 seconds to avoid boot interruption.


Program at91bootstrap.bin and harmony.bin using SAM-BA ISPP GUI.

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.​​​​

Note: Observe the SAM-BA GUI applet commands and serial consoles messages on the bottom of the SAM-BA GUI as captured in the accompanying image.

SAM-BA GUI

 

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.

Program at91bootstrap

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.

Note: To understand how to configure at91bootstrap to load harmony.bin at a specific location, see the "SAM9X75 Curiosity Pro - Configure and Build at91bootstrap to Boot MPLAB® Harmony Bare-Metal Application From NAND" page.

flash harmony.bin

  • 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.

Back to Top

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:

Room Boot Message

Back to Top

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.

Back to Top