2025-03-10 11:29 AM - edited 2025-03-10 11:43 AM
Hello,
I flashed my stm32h573 with a program to set it to standby mode, but didn't setup the wakeup pin and it has a 5 sec wdg timeout.
The error I am having is that it "can't connect to the target" to flash it with different code or to erase the flash 🥲🫠
I "think" it's not able to connect because it doesn't have enough time to connect due to the watchdog. As it does a system reset every 5 seconds.
Any recommendation on how I can get it to connect or erase the flash?
is there any way to save this board?!?
I have tried: all gave me the same error of can't connect to target
1. stm32cubeide debug
2. Keil erase flash
3. j-flash lite to erase chip
I am going to try the stm32cubeprogrammer later today, after I download it.
**** edit ****
This is the error message I receive from stm32cubeprogrammer when I try to connect the dev board
Solved! Go to Solution.
2025-03-10 12:04 PM
It's always after posting that I find a solution LOL
But for anyone who runs into this issue, here's my solution:
You need to use the stm32cubprogrammer.
Setup the ST-LINK configuration:
1. change Mode to Under reset
2. change Reset Mode to Hardware reset
3. click on Connect
From there you just have to click Full Chip erase and that will erase your flash :D
2025-03-10 12:04 PM
It's always after posting that I find a solution LOL
But for anyone who runs into this issue, here's my solution:
You need to use the stm32cubprogrammer.
Setup the ST-LINK configuration:
1. change Mode to Under reset
2. change Reset Mode to Hardware reset
3. click on Connect
From there you just have to click Full Chip erase and that will erase your flash :D