Before you begin
- Add the Arduino Mbed OS Giga Boards to Arduino IDE using the Boards Manager.
-
Download and install the STM32CubeProgrammer from STMicroelectronics.
- You will be required to provide and validate an email address to get a download link.
- On macOS, you may need to run the executable directly: Right-click the
.app
container and select Show package contents, then navigate intoContents/MacOs
. Double-click the fileSetupSTM32CubeProgrammer-X_Y_Z_macos
executable.
1. Connect the board in bootloader mode
-
With the board unplugged, press the button BOOT0 and continue to press it.
-
Keep holding the BOOT0 button as you connect the Giga R1 WiFi to your computer using a USB C cable.
-
When the ON LED is lit, release the BOOT0 button.
2. Burn the bootloader using STM32CubeProgrammer
-
Open STM32CubeProgrammer.
-
Click on the Open file tab.
-
Navigate to the Arduino 15 folder, then select this file:
packages/arduino/hardware/mbed_giga/3.9.9/bootloaders/GIGA/bootloader.elf
-
If you get a “Warning: File corrupted. Two or more segments defines the same memory zone” message, ignore it.
-
Set the programmer selection (default: ST-LINK) to USB.
-
For the Port selection, select your board. To refresh the list, click the update button.
-
Click on Connect button. The connection status should change from “Not connected” to “Connected”.
-
Click on the Download button. If you get another warning message, close it by selecting OK.
Note: Click on the left part of the button where it says “Download” (not the arrow, which opens a context menu)
-
The message “File download complete” will appear as a pop-up notification when the download is complete.
-
Disconnect the board from the USB-C cable and connect it again.
-
If you’ve installed the Arduino Mbed OS Giga Boards package, you can also find it inside your Arduino15 folder. The path is
Arduino15/packages/arduino/hardware/mbed_giga/3.9.12/bootloaders/GIGA/bootloader.elf
. ↩︎