2025-02-18 12:12 PM - last edited on 2025-02-18 03:20 PM by Pavel A.
I enabled this option to activate the virtual COM port for debug reasons:
It is a CMake Project to be opened in VS-Code
Enabling the Virtual Com Port in CubeMX results in this error in VS Code:
Crawling in the files, I found that the stm32h5xx_nucleo_conf.h the USE_BSP_COM_FEATURE is not enabled.
Enabling this manually will result in many more errors:
Generating the code again will reset the USE_BSP_COM_FEATURE to 0.
Did I forget or overlook something?
2025-02-18 12:44 PM
Yes, it is another bug!!!!!!!!!!!!!!!!!
First you need to remove the lock from this pins (right click) ans set manually to USART2 RX/TX as USART3 is not avail on this pins:
Next you need to set this in the stm32h5xx_nucleo.h
to THIS:
and than set this to 1 in the stm32h5xx_nucleo_conf.h
Now it compiles, but if you re-generate the code with CubeMX your changes will be reverted... nice work STM