STM32CubeProgrammer cannot connect to board using ST-LINK V3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-26 8:10 AM - edited ‎2024-09-26 8:25 AM
Hi, I get the below error when trying to connect to my B-U585I-IOT02A board in "Hot plug" and "Hardware reset" modes, whatever is the frequency. I get the same error even with BOOT0 High.
I'm using STM32Cube Programmer v2.17.0
Connection is successful only when I keep on pressing the reset button, but there is no option byte set and any attempt to set option bytes fails.
Thanks in advance for your support.
- Labels:
-
STM32CubeProgrammer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-26 12:06 PM
@TDK I mean, option bytes are not checked. Meaning that they are set to zero. I should have said it that way.
When holding down the Reset button, STM32CubeProgrammer connects to the board, and here is what I can see:
As soon as I release the Reset button, it gets disconnected from the board.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-26 4:19 PM
Thanks for the clarification. I wonder if it's reading the option bytes at all. When you're able to connect, does the log indicate it reads things successfully? Can you read the content in the flash?
This is a U5, so it doesn't have RDP, but it has the product state thing which is similar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-26 11:01 PM
No, it has RDP also :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-27 6:19 AM
Hello @TDK , here is what I can see on the screen when I connect to the board by pressing the reset button:
The U5 has RDP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-27 7:05 AM
Oh it's H5 that doesn't have RDP.
I'm not convinced that you're actually connected there. Reading all 0 in indicative of something going wrong, despite nothing in the log indicating such.
Out of ideas here. Holding BOOT0 high during reset should prevent it from doing any user code, which should allow you to connect successfully. However, if option bits are set to prevent the bootloader from loading under these conditions, you're a bit stuck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-27 7:24 AM
Whether BOOT0 is high or low, the behavior is the same, I have to keep the reset button pressed down.
Could it be that the STM32U5 is continuously resetting?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-27 7:46 AM
That's a strong possibility. Here are other things that would cause what you're seeing:
- Chip constantly resetting (NRST going low).
- Chip performs FLASH operation immediately on startup.
- Chip goes into low-power mode.
- Chip re-initializes the SWD pins.
Booting into the bootloader will prevent any of these from happening, but of course you need a way to actually do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-27 10:50 AM - edited ‎2024-09-27 10:53 AM
Ok, I see. But yet the problem is about being able to boot into the bootloader. I don't have idea on how to do so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-27 11:57 AM - edited ‎2024-09-27 12:01 PM
The log, when connecting under reset, shows : it reading the option bytes.
But as you show them: all zero. RDP also ! (This is RDP level 1 on other chips - here it not in the table.)
So no matching rdp byte, could be ->
So if its on RDP level 1, maybe you can connect with terminal ...try:
-> read in um2851 ...complex game.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-27 12:59 PM
There is nothing appearing on the terminal when I connect the board. I also tried to press down the reset button before connecting to the terminal, but there's still nothing on the terminal screen.
I'm not sure that this is related with a RDP level because if it was the case, something should have appeared on the terminal screen.
