1.1.12 WBZ451 Curiosity Development Board: Building and Running the SPI Bootloader Applications
Path of the application within the repository is apps/spi_bootloader/.
To build the application, refer to the following table and open the project using its IDE.
Bootloader Application
| Project Name | Description |
|---|---|
| bootloader/firmware/wbz451_curiosity.X | MPLAB X Project for WBZ451 Curiosity Development Board |
Test Application
| Project Name | Description |
|---|---|
| test_app/firmware/wbz451_curiosity.X | MPLAB X Project for WBZ451 Curiosity Development Board |
Setting Up WBZ451 Curiosity Development Board
-
SAME54 Xplained Pro Evaluation Kit is used for Host Development kit
-
WBZ451 Curiosity Development Board is used for Target Development kit

-
Connect the MOSI Pin 16 (PC04) on EXT2 of the Host Development kit to the MOSI Pin on J04 header of the Target Development kit
-
Connect the MISO Pin 17 (PC07) on EXT2 of the Host Development kit to the MISO Pin on J04 header of the Target Development kit
-
Connect the CS Pin 15 (PC06) on EXT2 of the Host Development kit to the CS Pin on J04 header of the Target Development kit
-
Connect the SCK Pin 18 (PC05) on EXT2 of the Host Development kit to the SCK Pin on J04 header of the Target Development kit
-
Connect the BUSY Pin 09 (PD00) on EXT2 of the Host Development kit to the Pin 02 (PC14) on J04 header of the Target Development kit
-
Connect a ground wire between Host Development kit and Target Development kit
-
Connect the Debug USB port on the Host Development kit to the computer using a micro USB cable
-
Connect the Debug USB port on the Target Development kit to the computer using a micro USB cable
Building and Configuring SPI Host Applications
Using SPI SDCARD Host Application to Send the Application Binary to Target Development Kit

If the SDCARD Host Development kit being used is SAM E54 Xplained Pro Evaluation Kit then follow the steps mentioned in Configuring the SDCARD Host Applications.
-
Open the SDCARD host application project host_app_sdcard/firmware/sam_e54_xpro.X in the IDE.
-
If a SDCARD host application project of different development kit is used then open that project in the IDE
-
-
Build and program the SDCARD host application using the IDE on to the SPI Host Development kit.
-
Open the test application project test_app/firmware/wbz451_curiosity.X in the IDE.
-
Build the project to generate the binary (Do not program the binary).
-
Copy the application binary into the SD card and insert the SD card in the SD card slot available on the SAM E54 Xplained Pro Evaluation Kit.
-
Open the Terminal application (e.g., Tera Term) on the computer.
-
Configure the serial port settings for Host Development kit as follows:
-
Baud: 115200
-
Data: 8 bits
-
Parity: None
-
Stop: 1 bit
-
Flow Control: None
-
-
Jump to Running the Application.
Running the Application
-
Open the bootloader project bootloader/firmware/wbz451_curiosity.X in the IDE.
-
Build and program the application using the IDE on to the Target Development kit.
-
If the test application is being programmed, open the Terminal application (e.g., Tera Term) on the computer and configure the serial port settings for Target Development kit as follows:
-
Baud: 115200
-
Data: 8 bits
-
Parity: None
-
Stop: 1 bit
-
Flow Control: None
-
-
Press the Switch SW0 on the Host Development kit to trigger programming of the application binary.
-
Once the programming is complete,
-
LED0 on the Host Development kit will be turned on indicating success
-
The Target Development kit will be reset. Upon restart, the bootloader will jump to the user application.
-
If the test application is programmed then RGB_LED_GREEN should start blinking and the user should see below output on the Target Development kit console

-
-
Press and hold the Switch USR BTN (S2) to trigger Bootloader from test application and the user should see below output.

-
Press Reset button on the Host Development kit to reprogram the application binary.
-
Repeat Steps 4–5 once.
-
This step is to verify that bootloader is running after triggering bootloader from test application in Step 6
-
Additional Steps (Optional)
Using SDCARD Host Application
-
If multiple Target Development kit are to be programmed using the same Host Development kit then refer to the Configuring the SDCARD Host Applications
-
Once done, repeat the applicable steps mentioned in Running the Application
