SAMA7G54-EK – Configure and Build at91bootstrap for a MPLAB® Harmony v3 Project with MPLAB X IDE
Introduction
This training describes how to configure and build at91bootstrap for loading and debugging an MPLAB® Harmony v3 project on the SAMA7G54-EK Evaluation Kit using MPLAB® X Integrated Development Environment (IDE).
Background
The at91bootstrap is used by MPLAB X IDE to initialize DRAM (Dynamic RAM) so that it can continue loading the MPLAB Harmony v3 Software Framework project binary (harmony.bin). Once the project has been loaded onto the SAMA7G54-EK, MPLAB X IDE can be used to develop and debug the application.
Prerequisites
Download at91bootstrap
Create a Project Directory.
For the purposes of this training, we will name our project directory “at91bootstrap”.
Download or clone at91bootstrap version 4.
Download or clone from the Linux4sam GitHub repository.
Open Project at91bootstrap
Find and select the at91bootstrap project directory.
Configure at91bootstrap Project Properties
Open the at91bootstrap Project Properties.
Open the at91bootstrap Project Properties using one of the following methods:
- In the Projects pane, highlight at91bootstrap and click on the wrench icon in the at91bootstrap - Dashboard.
- In the Projects pane, right-click on at91bootstrap and select Properties from the menu.
The Projects Properties – at91bootstrap dialog box opens.
In the device dropdown box, select SAMA7G54.
Highlight the latest DFP and click on the Apply button.
This will update the configuration to the latest DFP.
Configure the XC32 Compiler.
In the Categories pane, select Makefile.
Enter the following text in the Build command and Debug build command boxes:
make CROSS_COMPILE="C:/Program Files/Microchip/xc32/v4.30/bin/bin/pic32c-"
Enter the following text in the Clean command box:
make mplabclean CROSS_COMPILE="C:/Program Files/Microchip/xc32/v4.30/bin/bin/pic32c-"
Click on the Apply button.
Configure at91bootstrap.
Observe the following settings.
Expand Primary Operation and verify that the Configure and stop radio button is selected.
Expand DRAM. Next, expand DRAM parts and verify that the DDR3L AS4C256M16D3LC_12BCNTR(SAMA7G5-EK) radio button is selected.
Scroll down and expand Board’s Workaround Options. Expand Workaround for Board Quirks and verify that the Quirks for SAMA7G5-EK board radio button is selected.
Build at91bootstrap
Build at91bootstrap.
Build the at91bootstrap project using one of the following methods:
- In the Projects pane, right-click on at91bootstrap and select Build from the menu
- Click on the Build icon (hammer) in the tool ribbon.
Observe the build is successful.
Note the location of at91bootstrap.elf:
<project_directory>/at91bootstrap/build/binaries/at91bootstrap.elf
Summary
The at91bootstrap has been configured and built to load and debug an MPLAB Harmony v3 Software Framework project using the MPLAB X IDE for the SAMA7G54-EK Evaluation Kit.
Learn More
Once the at91bootstrap has been configured and built, it can be used with an MPLAB Harmony v3 Software Framework project. When configuring an MPLAB Harmony v3 Software Framework project, at91bootstrap.elf file is configured in the Project Properties as shown in the following figure.
MPLAB X IDE uses at91bootstrap to initialize DRAM and continue loading the MPLAB Harmony v3 Software Framework project binary (harmony.bin) using a Debug Probe. Once the project has been loaded onto the SAMA7G54-EK, MPLAB X IDE can be used to develop and debug the application.
For training on configuring and building at91bootstrap to load from Non-Volatile Memories (NVM), see:
Second-Stage Bootloader at91bootstrap
- SAMA7G54-EK – Configure and Build at91bootstrap to Load an MPLAB Harmony v3 Application from NOR Flash (QSPI) Memory
- SAMA7G54-EK – Configure and Build at91bootstrap to Load an MPLAB Harmony v3 Application from e.MMC Flash Memory
- SAMA7G54-EK – Configure and Build at91bootstrap to Load an MPLAB Harmony v3 Application from SD Memory Card
Non-Volatile Memory (NVM)
- SAMA7G54-EK – Writing MPLAB Harmony v3 Application and at91bootstrap to NOR Flash (QSPI) Memory using SAM-BA® ISP
- SAMA7G54-EK – Writing MPLAB Harmony v3 Application and at91bootstrap to e.MMC Memory using SAM-BA ISP
- SAMA7G54-EK – Copying MPLAB Harmony v3 Application and at91bootstrap to SD Memory Card