2025-09-01 1:13 PM
I've just bought a NUCLEO-F103RB board, and installed STM32CubeIDE 1.19.0.
I've gone through the following steps:
I then created a new project, and repeated steps 1 to 3. This new application works as expected.
The source code of the two applications are identical, and the appearance of the GUI (showing the ioc files) also appears to be the same.
However, a diff of the ioc files shows that the failing application does have differences; as if reverting the USART2 setting did not completely undo all the changes.
The differences between the files (other than the obvious project names) are:
BAD | GOOD |
Mcu.IP2=SYS | Mcu.IPNb=2 |
Mcu.Pin2=VP_SYS_VS_ND | Mcu.PinsNb=2 |
ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_USART2_UART_Init-USART2-false-HAL-true | ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false |
VP_SYS_VS_ND.Mode=No_Debug | n/a |
I then performed steps 4 to 7 on the new project, and sure enough that breaks it in the same way.
If I quit the IDE, and manually revert the ioc file back to its original state then I can get the application working again. But this does seem like an odd bug (that can break an application); unless I've misunderstood something about editing the configuration using the GUI?