Skip to main content
DHorn.3
Associate
December 14, 2022
Question

Cannot acces to COM port while debugging

  • December 14, 2022
  • 1 reply
  • 1034 views

Hello,

I'm working on STM32CubeIDE with STM32F103CF8T6 and st-link.

I have a python script on my computer sending data to the stm32 trough com port. Everythings works fine when I run it, but when I run it in debug mode, I cannot acces to the com port anymore (permissionError).

Any ideas what it can be ?

Thank you

This topic has been closed for replies.

1 reply

LudovicR
ST Employee
December 15, 2022

Hello DHorn.3,

Serial link could be used in STM32CubeIDE enabling Target Status or with Connections view.

Could you please check the Target Status visibility in Window > Preferences > STM32Cube > Target Status?

It should be set by default to "MPU Context". And if you have no STM32MP1x project opened, target status is not launched.

More info here: https://wiki.st.com/stm32mpu/wiki/How_to_use_the_Target_Status_widget_in_STM32CubeIDE

Regarding standard Eclipse Connections, open view with Window > Show view > Other.. Connections > Connections. And check if there is any usage of Serial Port.

Hope this help,

LudovicR

DHorn.3
DHorn.3Author
Associate
December 19, 2022

Hello LudovicR,

Thank you for your time. I checked the Target Status, it is well set on "MPU Context".

I juste realized that even when I run my project from cubeIDE, I need to unplug and replug my stm to get access to the com port.

Damien