SAM9X75 Curiosity – Copy MPLAB® Harmony v3 Application and at91bootstrap to SD Memory Card
In this training, you will copy two binary images, harmony.bin (an MPLAB® Harmony v3 Software Framework application) and boot.bin (second-stage bootloader, at91bootstrap), to an SD memory card for booting on the SAM9X75-Curiosity Development Board. Once the images are copied, the SD memory card is inserted, and upon reset, the SAM9X75 will boot and run the application.
For this exercise, you will write the binaries that were created in the training topics:
- SAM9X75-Curiosity – Getting Started with MPLAB Harmony v3 Development: CSP Application: rtt_periodic_timeout
- SAM9X75-Curiosity – Configure and Build at91bootstrap to Load a MPLAB Harmony v3 Application from SD Memory Card
Hardware
For this training, you will use the SAM9X75 Curiosity LAN Kit.
SAM9X75-Curiosity Development Board
Set up the SAM9X75-Curiosity as listed below to the host computer.
Jumpers
Set the jumpers to their default positions as shown in the "Default Jumper Settings" section in the "SAM9X75-Curiosity User Guide".
Power
Apply power as shown in "Input Power Options" section in the "SAM9X75-Curiosity User Guide".
Console Serial Communications
To view the target console, connect the host computer running a terminal emulation program as described on the "SAM9X75-Curiosity – Console Serial Communications" page.
SD Memory Card
The SAM9X75-Curiosity has a MultiMediaCard (MMC) or Secure Digital (SD) memory card slot (J14) that can be used for booting the system. It is connected to the SDMMC port 0 (SDMMC0) peripheral of the SAM9X75-Curiosity.
For this training, you will need an SD memory card formatted with the File Allocation Table (FAT) file system.
Copy boot.bin to SD Memory Card
In this section, you will copy the at91bootstrap binary image, boot.bin, to an SD memory card with a FAT formatted partition.
Change directory to the location of boot.bin:
<project_directory>\at91bootstrap\build\binaries\boot.bin
Copy boot.bin to the SD memory card.
Write harmony.bin to SD Memory Card
In this section, you will copy the MPLAB Harmony v3 Software Framework application binary image, harmony.bin, to the SD memory card into the same FAT formatted partition as you copied boot.bin into.
Change the directory to the location of harmony.bin:
C:\Users\<user>\HarmonyContent\csp_apps_sam_9x7\apps\rtt\rtt_periodic_timeout\firmware\rtt_periodic_timeout_sam_9x75_Curiosity.X\dist\sam_9x75_curiosity\production
Copy harmony.bin to the SD memory card.
Run MPLAB Harmony v3 Application on the Target
Insert the SD memory card into the SD card slot (J14).
To run the application, press the nRST (Reset) (SW3) push button. Observe the RGB LED (LD1) flashes blue. You can also observe the at91bootstrap reading from the SD memory card on the console.
Summary
In this training, you copied the binary files harmony.bin and boot.bin to an SD memory card for booting on the SAM9X75-Curiosity and ran the application on the target.