Skip to main content
Daniel Glasser_2
Associate II
December 10, 2023
Question

STM32CubeMX generated STMCubeIDE projects, "ThreadSafe" directory seems to end up different places

  • December 10, 2023
  • 1 reply
  • 1035 views

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.

This topic has been closed for replies.

1 reply

Olivier GALLIEN
Technical Moderator
December 18, 2023

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 

 

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.