Skip to main content
Visitor II
July 4, 2020
Solved

Can't see COM port in STM-CUBE monitor UCPD software

  • July 4, 2020
  • 3 replies
  • 4191 views

Hello,

I trying to follow the steps provided in this video : https://www.youtube.com/watch?v=Z_Sn6CBbz-k

Followed each step, compiled, and successfully uploaded the firmware.

I am able to see the COM port COM34 in my device manager as shown in attached image. I am unable to see COMport in cube monitor UCPD software, I tried refresh option multiple times. However its visible in select tracer port.

When I select tracer port, nothing is visible.

Pin configuration is as per document : https://www.st.com/resource/en/application_note/dm00663511-how-to-build-a-simple-usb-pd-sink-application-with-stm32cubemx-stmicroelectronics.pdf

(image attached)

    This topic has been closed for replies.
    Best answer by Nicolas P.

    Hello,

    if you see the COM port in the drop down list, but you don't see the board in the main window, it may mean that the compilation switch _GUI_INTERFACE is not activated. (CubeMX sequence described in chapter 5.2.3 page 20 of the AN5418). Can you check that ?

    If you don't want to use the GUI part, you can still use the cube monitor UCPD software to see the debug trace, but you won't have full functionalities.

    See our wiki : https://wiki.st.com/stm32mcu/wiki/USB_Power_Delivery_overview#Specific_tools

    3 replies

    ST Employee
    July 16, 2020

    Hello,

    if you see the COM port in the drop down list, but you don't see the board in the main window, it may mean that the compilation switch _GUI_INTERFACE is not activated. (CubeMX sequence described in chapter 5.2.3 page 20 of the AN5418). Can you check that ?

    If you don't want to use the GUI part, you can still use the cube monitor UCPD software to see the debug trace, but you won't have full functionalities.

    See our wiki : https://wiki.st.com/stm32mcu/wiki/USB_Power_Delivery_overview#Specific_tools

    Graduate II
    January 21, 2024

    Hello Nicolas,

    I have exactly the same issue as described above. Following the tutorial step by step and I am certain that GUI_INTERFACE is activated in CubeMX, yet I cannot see any board in CubeMonitorUCPD. What might have caused this problem?

    I am using Nucleo-G0-B1RE, shield SNK1M1, CubeIDE 1.14.0 and CubeUCPD 1.3.0.

     

    Thanks,

    Marosh

    ST Employee
    January 22, 2024

    Hello @Marosh 

    Did you have a look at the wiki ?

    Are you able to see trace coming from the board when following this wiki ?

    Are you using LPUART1 pin PA3 for Rx ?

    What is your FreeRTOS timebase : systick ?

    Regards,

    Nicolas

    Graduate II
    January 30, 2024

    Hello Nicolas,

    actually it started working next day after plugging it again (unfortunately I dont know why). At first I thought that it was the sequence of plugging in the cables. Like one should plug usb to PC COM port, find connected boards in UCPD monitor go to the port communication and then plug in USB-C to SNK1m1 shield on NUCLEO. But now when testing again it seems to work with other sequence ways of plugging in cables...

    Yes I am using PA3 for LPUART1 Rx.

    Both TRACER_EBM and GUI_INTERFACE enabled in CubeMX.

    I am not aware of defiing explicitly timebase for FreeRTOS, but there was some warning saying something like: When FreeRTOS is used it is strongly recommended to use HAL timer source base other than Systick. Although the AN5418 guide says it can be ignored I have changed the timer under SYS to TIM2 and also the FreeRTOS interface to CMSIS_V2.

    Where do you think the problem was?

    ST Employee
    January 30, 2024

    Hello @Marosh ,

    It seems you followed the recommended setup. Difficult to guess what the problem was. You could have break the software to see if it was stuck...

    Nicolas