6.2 SAMG55 Xplained Pro Evaluation Board Firmware Setup

This section provides an overview of the SAMG55 Xplained Pro Evaluation board (SAMG55 XPRO board) firmware setup. Go to github.com/MicrochipTech/BM78_DFU_with_SAMG55 for the code and documentation related to the SAMG55 XPRO board firmware setup. The following sections provide details about the SAMG55 XPRO board firmware setup:

Open the MPLAB®-X Project

The SAMG55 firmware is designed with the latest revision of the MPLAB®-X and MPLAB® Harmony. Open the MPLAB®-X project and the user can see the BM78_DFU folder.

Note: The user only uses the BM78_DFU() function at the application level.
The BM78_DFU folder contains the following files:
  • BM78_DFU.c – DFU code
  • BM78_DFU.h – DFU header file
  • HW_IF.h – Contains the hardware relevant API
  • IS1678_DUAL_SPP_SHADOW_reHex.c – BM78 1v38 reHex image
Figure 6-2. MPLAB-X Project Organization

Run the SAMG55 Firmware

The following are the steps to run the SAMG55 firmware:
  1. Put the BM78 module in write Flash mode manually. For more details, refer to BM78 and RN4678 Flash Memory Programming.
  2. Open the Tera Term software tool on the PC.
  3. Compile and download the SAMG55 firmware from the MPLAB®-X IDE.
  4. The following figure illustrates the opening window of the Tera Term tool, which displays the input yes to start message to start the BM78 module UART DFU process.
    Figure 6-3. DFU Initialization Screen
  5. Enter the input yes to start the BM78 module UART DFU process; see the following figure.
    Figure 6-4. Input yes Screen – DFU Starting
  6. After the successful completion of the BM78 module UART DFU process, the LED0 on the SAMG55 XPRO board turns ON. The Tera Term software tool also displays the DFU SUCCEEDED message; see the following figure.
    Figure 6-5. DFU Succeeded