Install the Bootloader PC tool, launch the installation file from the
\PC_Bootloader_Setup\
and proceed with the instructions.
Perform the following steps to program an MCU using the serial bootloader:
- 1.Press <F7> in Atmel Studio to
generate the application srec
APPS_ENDDEVICE_DEMO.srec
.
- 2.Program
wireless\lorawan\utils\bootloader\SerialBootloader_SAMR34J18B_XPRO_BAUDRATE_115200.elf
via Embedded debugger/JTAG programming interface in SAM R34 Xplained Pro board.
- 3.Connect the board to the PC via a
serial connection (EDBG).
- 4.Double-click and open the Bootloader
PC tool application for the GUI version of the serial bootloader.
- 5.Specify uploading parameters:
- 5.1.Select the connection type as
Serial
.
- 5.2.Select the COM port from the
drop-down list. Set the bit rate as 115200.
- 5.3.Select the firmware srec file
to be uploaded; there is a restriction on the size of firmware downloaded by
serial booting process. The serial bootloader cannot rewrite the area where
the bootstrap code resides.
- 6.Press the Upload button if the
Bootloader PC GUI tool is used. For the console bootloader, press <Enter> on
the keyboard to start uploading.
- 7.Press the HW reset button on the device if requested. The Bootloader PC tool waits
for approximately 30 seconds for the button to be released. If this does not happen,
programming will be aborted.
- 8.The Bootloader PC tool indicates the
programming progress. Once loading is successfully finished, the device
automatically restarts. If loading fails, the Bootloader PC tool will indicate the
reason. If the new image upload fails (for example, because of random communication
errors), the device must be reprogrammed. If the reprogramming does not resolve the
issue, then the previously programmed image code in the device may be corrupted. The
device must be erased and reprogrammed via JTAG.
Figure 1. Bootloader PC Tool
Configuration
Note: If needed, install the Bootloader PC tool
Bootloader_PC_Tool_Setup_1.2.2.233.exe, which comes with the LoRaWAN Mote
Application with Bootloader project.