I bricked my Portenta H7 and have been trying (for several days) to re-flash the bootloader with no luck. Lots of posts about re-flashing the bootloader but non of them are working for me. I am currently trying it with an ST-Link v2, the Portenta breakout board and a JTAG (2x10 2.54mm) to SWD (2x5 1.27mm) Adapter Board. Setup is pictured here:
I had to cut the plastic ends off of the 10 pin 1.27mm cable because there are 'plugs' that prevent it from plugging into the JTAG connector on the breakout board. I had the red strip plugged into pin 1 and that matched the pin 1 on the adapter board but there was a post in the forum that said the "flat side of the black cable housing should point towards the 'PDM SPDIF' label closest edge of the board and not toward the H7 USB connector". But that didn't make a difference.
I have no idea if I hooked this up correctly. Device manager never shows the H7 on a COM port and I think why is because the H7 is bricked and has no brains. The H7 LED just burns bright red all the time with a little flash about every 15 seconds.
I've tried the boot jumpers in every possible combination. Clicking the H7 reset button twice quickly just beeps the computer twice quickly. Pressing the 'ON' button on the breakout board does, well, I don't know if it does anything. No beeps or boops or flashing LED's.
I've seen a few posts that mention success by hooking up 3.3v and gnd from an external power supply. I tried that and the H7 does not power up. So I also power it through the USB but that also does not work.
I'm using the STM32CubeProgrammer and it can see the ST-Link but can't connect to the H7. Here is the output from a connect attempt:
03:18:08:401 : UR connection mode is defined with the HWrst reset mode
03:18:09:552 : ST-LINK SN : 16004A002933353739303541
03:18:09:553 : ST-LINK FW : V2J43S7
03:18:09:553 : Board : --
03:18:09:553 : Voltage : 3.18V
03:18:09:553 : Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
03:18:09:569 : Disconnected
I have also tried loading the bootloader from the Arduino IDE 2.latest. I use the "STMicroelectronics STLINK." This is what I get from that attempt:
Open On-Chip Debugger 0.11.0+dev-gab95bac57-dirty (2021-05-11-10:45)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 0
Error: init mode failed (unable to connect to the target)
Failed to burn bootloader: uploading error: exit status 1
I've also noticed that the Arduino IDE Tools->Port menu item is greyed out. Though the correct com port is shown, it is not selectable (Device manager also cannot see it).
I have also followed the instructions here: https://docs.arduino.cc/tutorials/portenta-h7/updating-the-bootloader/
But the examples referenced in these instructions do not exist under File->Examples and though I found the STM32H747_manageBootloader sketch on GitHub, it does not compile.
UPDATE 03/18/24: So I purchased the official ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32. Connection to my Portenta H7 and Portenta breakout board pictured below.
This programmer also has the old 20 pin JTAG connector so I've routed it through the JTAG (2x10 2.54mm) to SWD (2x5 1.27mm) Adapter Board. Red stripe on the 10 pin 1.27mm cable to breakout board JTAG connector has been plugged back into pin 1. I have no idea if I am doing this correctly.
This time the STM32CubeProgrammer gave me this error. A little different from the previous error.
13:36:36:073 : UR connection mode is defined with the HWrst reset mode
13:36:42:158 : ST-LINK error (DEV_USB_COMM_ERR)
13:36:42:159 : Error: Problem occured while trying to connect
UPDATE 03-20-24: Got the Arduino STM32H747_manageBootloader sketch to compile but the download failed. Again, this sucker has no brain. Nothing but the RED LED of death. Windows Device Manager can't even see it. The very definition of "Bricked".
If more info is required, please let me know. Any help is greatly appreciated.