Skip to content

Commit d02f59c

Browse files
authored
HC-918 How to flash Bootloader on Portenta H7 via JTAG (#25)
1 parent 35bad30 commit d02f59c

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
title: "How to flash Portenta H7 bootloader via JTAG with Arduino IDE"
3+
---
4+
5+
The bootloader program that comes pre-installed in Portenta H7 microcontroller chip can get corrupted when attempting to reprogram the microchip with applications different than Arduino IDE. This kind of action involves a high risk of getting the board bricked thus we strongly not recommend to do this. Also, uploading incompatible code, supplying the wrong power to the board or a short-circuit can also corrupt the bootloader.
6+
7+
## How do I know if the bootloader is present?
8+
9+
The best way to find out if the bootloader is present in the board is to double tap the reset button. After doing this, the built-in LED will fade in and out green. If your board's response to the double tap reset is the described previously then the bootloader is working properly.
10+
11+
## Signs of a missing or corrupted bootloader
12+
13+
Indications of a missing or corrupted bootloader can be:
14+
15+
* Board not detected by the PC and serial port doesn't show up when the board is connected. Neither the device appears in device manager after double tap reset
16+
* Double press reset button does not fade the green LED
17+
* Built-in LED blinks red when board connected. Port doesn't show up preventing sketch upload
18+
* CHRG LED blinks orange every 10-15 seconds
19+
* CHRG LED lights steady orange
20+
21+
## Re-flashing bootloader on Portenta H7
22+
23+
If you have any of the problems above, or simply the serial port does not appear in any PC and sketch upload is not possible, you can try to restore your board by re-flashing the bootloader. To do so, follow the instructions below.
24+
25+
### Requirements
26+
27+
* [STLINK programmer for STM32](https://www.st.com/en/development-tools/stlink-v3set.html)
28+
* [Arduino IDE software](https://www.arduino.cc/en/software)
29+
* Portenta H7 board
30+
* [Portenta Breakout Board](https://store.arduino.cc/products/arduino-portenta-breakout)
31+
* JTAG connector (STLINK programmer to Portenta Breakout board)
32+
33+
### Step-by-step Instructions
34+
35+
1. Attache Portenta H7 to the breakout board
36+
2. Connect Portenta H7 to the PC via USB-C cable
37+
3. Connect the STLINK programmer to the PC via USB
38+
4. Connect the JTAG cable from the STLINK programmer to the JTAG on the Breakout
39+
5. Open Arduino IDE and select Portenta H7 (M7 Core) from the top menu _Tools > Board_
40+
6. Select the corresponding programmer in the top menu _Tools > Programmer_
41+
![Programmer selection](img/bootloader_IDE.png)
42+
7. Burn Bootloader: In Arduino IDE top menu go to _Tools > Burn Bootloader_
43+
![Burn Bootloader](img/bootloader_IDE_2.png)
44+
8. Success message will appear in the Arduino IDE console
45+
![Done burning bootloader](img/bootloader_IDE_3.png)
25 KB
Loading
21.1 KB
Loading
15.9 KB
Loading

0 commit comments

Comments
 (0)