Skip to main content
Visitor II
July 3, 2024
Question

STlink v2 live debugger does not capture COM port

  • July 3, 2024
  • 1 reply
  • 695 views

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. 

 

    This topic has been closed for replies.

    1 reply

    Graduate II
    July 3, 2024

    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() ?