The bootloader is a small program that runs when you turn the Arduino on or press the reset button. Its main function is to receive and write a new sketch to memory. Unsafe code, improper power supply, and short circuits may result in the bootloader being corrupted. Restore the bootloader by following this guide.
What you’ll need
- Portenta H7
- A compatible carrier:
- STLINK programmer for STM32
- JTAG connector cable (STLINK programmer to the carrier)
- Arduino IDE
Step-by-step instructions
-
Find the DIP switches on the carrier and set both BOOT_SEL and BOOT to ON.
-
Attach Portenta H7 to the carrier.
-
Connect Portenta H7 to your PC with a USB-C cable.
-
Connect the STLINK programmer to the PC with a USB cable.
-
Connect the JTAG cable from the STLINK programmer to the JTAG on the carrier.
-
Open Arduino IDE.
-
In the top menu bar, open Tools > Board and select Arduino Mbed OS Portenta Boards > Portenta H7 (M7 Core).
-
Select the programmer in Tools > Programmer.
-
Select Tools > Burn Bootloader to burn the bootloader.
-
Wait for the process to complete.