cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot acces to COM port while debugging

DHorn.3
Associate

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

2 REPLIES 2
LudovicR
ST Employee

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

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