2022-12-14 03:14 AM
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
2022-12-15 01:39 AM
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
2022-12-19 04:08 AM
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