2025-05-31 5:05 AM - edited 2025-05-31 5:05 AM
I am generating my cmake project with STM32MX and are using FreeRTOS os.
I have the advance option set to generate the reentrant protection files stm32_lock.h and newlib_lock_glue.c.
These are indeed being generated and included in the root project folder.
I do not see them included in the CMakeLists.txt though so I assume, while included, they are not being built.
The app note that describes the reentrant issue does not cover the cmake build option.
Does the CmakeLists.txt file need to be manually modified to add newlib_lock_glue.c and the stm32_lock.h path?
2025-05-31 3:38 PM
Here you're in a kind of gray zone. You can integrate these files in your project in various ways, either literally or just use them for inspiration. Depending on how you do it, adjust your cmakelists.txt accordingly.
2025-06-01 1:14 AM
got it