2023-12-10 12:58 PM
When using STM32CubeMX v6.10.0 (standalone) to update the pin configuration for an STMCubeIDE v1.14.0 project that has the thread safety option enabled, the code generation creates the directory "ThreadSafe" under "Core/Src", while the IDE's version of STM32CubeMX puts the "ThreadSafe" directory directly under "Core", parallel to the "Src" directory. This breaks the project because the build procedure builds two copies of "newlib_lock_glue.o" and tries to link both into the executable image.
The standalone tool should be updated to use the same directory structure as the version integrated into the IDE.
2023-12-18 04:47 AM
Hi @Daniel Glasser_2 ,
I moved your post to MCUs forum section since no evidence you were using STM32MPUs.
Else, I'm not expert but I find this AN STM32CubeMX and STM32CubeIDE thread-safe solution - Application note
which could be maybe help.
Olivier