STlink v2 live debugger does not capture COM port
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-07-03 3:44 PM
Hi,
I have written application using visual studio C#. And I send commands through the COM port from my Visual Studio application to my STM32 board. There is a bit of strangeness, when I run the live debugger using STlink V2 with STM32CubeIDE I can see the command come through the receiver buffer and my board responds to that command. But when I dont use the live debugger, I cant see the command come through the COM port and my board does not respond to do anything.
I have set of commands that control certain things to do on the board. How can I track whether the command sending through the COM port. Is there possibility COM port is stuck or hanging with command.
- Labels:
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-07-03 4:18 PM
Not sure how we're going to diagnose this with the information provided.
Is your board starting properly in the non-debugged case? Can you toggle an LED as a signs-of-life indication? How about another LED for each character received?
How about another UART that's independent of the debugger/ST-LINK that can output diagnostic and telemetry information as you instrument your code.
Is the BOOT0 pin pulled LOW ? Is your code running at all? Is it crashing in Error_Handler() or HardFault_Handler() ?
Up vote any posts that you find helpful, it shows what's working..
