Differences between code generated for STM32CubeIDE and CMake
I’m in the process of moving a project from Standalone STM32CubeIDE to the STM32Cude for VSCode extension. I fully expected project and configuration changes, but not changes to the source code.
However, if I just change the Toolchain / IDE setting from STMCubeIDE to CMake and regenerate the code I see changes to the Core/Src/syscalls.c and Core/Src/sysmem.c. files.
For example, the CMake versions of syscall.c and symem.c seems to be an older version based on Copyright being 2025, while STM32CubeIDE version is 2026 (see below).
I also notice I get a very different linker files; different names and content (and again the CMake Copyright date is older).
Why is this? Is this a bug, or an indication that the two generators have diverged and the Cmake version is not being kept up-to-date?
This potentially negates some of my testing, as it goes against my assumption that moving to VSCode will not change the build ‘because it uses the same code and same toolchain’.
This is the diff for syscall.c (red is STM32CubeIDE and green is CMake).

