Skip to main content
BBhat
Visitor II
November 13, 2018
Question

Virtual comport in discovery board for printing hello world possible ??

  • November 13, 2018
  • 2 replies
  • 594 views

With stm nucleo stm32476rg it was possible to print hello world into the terminal (via serial com port) and also it would show virtual com port in devices and printer information in properties.

But with stm32l100rc it doesnot show the virtual comport just says stlink and i have hard time printing hello world in terminal in computer. 

I tried looking schmatic of the board (discovery) and tried transmitting to that uart (just in case ) but still nothing...

can anyone enlighten me on this virtual comport and serial printing as i donot know what to google...

thankyou

:)

    This topic has been closed for replies.

    2 replies

    AvaTar
    Senior III
    November 13, 2018

    Don't know the L100 board you talk about.

    But for the functionality asked you will need:

    - UART RX/TX of the target is routed to the ST-Link part;

    - the ST-Link firmware expects serial input on said pins;

    - the ST-Link firmware contains a VCP driver, and translates said UART input to USB

    Tesla DeLorean
    Guru
    November 13, 2018

    https://www.st.com/en/evaluation-tools/32l100cdiscovery.html

    Pretty sure that predates the mbed/VCP firmwares, does it report as an ST-LINK/V2-1 ?

    Alternatively you could use the SWV debugger channel. Would need to check SB22 is made to connect the PB3/SWO pin.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..