ST-Link/V2 and ST-Link/V2-1 issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-06-21 9:03 AM
I have a custom board with STM32L051 on it. I am using an example from ST (I-Cube_lrwan). For some reason, once I load the firmware I cannot access the MCU anymore using ST-Link Utility and ST-Link/V2. It always throw 'Cannot connect to target'. But if I press the reset button before I press 'Connect' (in ST-Link Utility) and release the button right after I press 'Connect' , ST-Link/V2 can find my MCU.
But... when I use ST-Link/V2-1 from a Nucleo Board, it works perfectly. To me, its like ST-Link/V2-1 can reset the MCU properly where ST-Link/V2 cannot for some reason.
Can anyone suggest me what should I do if I want to use ST-Link/V2, in my case?
#st-link- Labels:
-
ST-Link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-06-27 10:26 AM
Thanks Clive for the suggestion. Yes, that's one way to do it. I was just wondering how come the Nucleo ST-Link can still access my mcu while in Low Power Mode, when the other can't.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-06-27 10:28 AM
Thanks Olivier. Yes, that's what I am doing now. I detached the ST-Link from the Nucleo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-06-27 10:29 AM
Thanks David. I will try that and will get back to you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-06-27 1:52 PM
The V2-1 might be doing something with DBGMCU to stop it sleeping, but honestly I don't know, and don't care too much. Disconnecting when power is removed from the scan-chain is prevalent among JTAG pods, pretty sure I'm seeing the LRWAN-DISCO doing exactly that, which is why I suggested the modification above. There are flags stopping WFI doing the power down, and it can be avoided in debug builds
Up vote any posts that you find helpful, it shows what's working..

- « Previous
-
- 1
- 2
- Next »