Error: Connection to target must be established before performing the erase command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-03 8:16 AM
Hi,
I have an issue on STM32H7B3I-DK, I am not able to flash code, I atleast want to perform full erase, but I am getting " Error: Connection to target must be established before performing the erase command." error.
Fig: STM32CubeProgrammer.
Fig: Trying to erase the board. But still getting the above error.
Anything else can I do on this board.
Solved! Go to Solution.
- Labels:
-
STM32H7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-04 3:41 AM
Ok what about my second point? :
"If not, could be something related to a wrong power configuration you set previously in your application. The board is wired in SMPS by default. So if you set LDO in your application you lose the connection.
Please see this thread."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-03 8:24 AM
It's telling you that it can't connect to the Target; therefore it won't be able to do anything to the Target until that is fixed!
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-03 8:25 AM - edited ‎2024-09-03 8:26 AM
Hello,
Are you sure you are using a data cable and not a charging cable?
If not, could be something related to a wrong power configuration you set previously in your application. The board is wired in SMPS by default. So if you set LDO in your application you lose the connection.
Please see this thread.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-03 8:31 AM
@mÆŽALLEm wrote:Are you sure you are using a data cable and not a charging cable?
It seems to be indicating that the connection to the ST-Link is OK:
So the cable must be good?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-03 10:10 AM
Yeah, Cable is good. Something must be done at board's end.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-04 3:41 AM
Ok what about my second point? :
"If not, could be something related to a wrong power configuration you set previously in your application. The board is wired in SMPS by default. So if you set LDO in your application you lose the connection.
Please see this thread."
