2024-12-19 06:54 AM
Hi,
I have STM32CubeIDE v1.13.2 installed and working quite fine.
By default, it is using GCC ARM for STM32 v11.3rel1 (included in the default installation).
I am trying to upgrade the Toolchain with more recent patched STM32 compilers.
I have tried installing both GCC ARM for STM32 v12.3rel1 and GCC ARM for STM32 v13.3rel1 toolchains.
With default v11.3rel1 and newest 13.3rel1, compilation is OK.
But when using v12.3rel1, I encounter the following error:
"c:/st/stm32cubeide_1.13.2/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.make.win32_2.1.0.202305091550/tools/bin/sh: nullgcc: not found"
The toolchains installation seems fine, and I assume I have some issues with environment variables.
When using v11.3rel1 and v13.3rel1 versions, the PATH variable (set to BUILD_SYSTEM by default) includes the "right" directories.
For example, I have (with 13.3rel1):
"C:\ST\STM32CubeIDE_1.13.2\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344\tools\bin;
C:\ST\STM32CubeIDE_1.13.2\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.make.win32_2.1.0.202305091550\tools\bin;"
But when switching to 12.3rel1, the first line is missing by default.
I have tried modifying the PATH variable in order to add this missing path = "C:\ST\STM32CubeIDE_1.13.2\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.1.0.202410251130\tools\bin;"
Unfortunately, is does not change anything. The compilation error (with nullgcc mention) is still present.
What am I doing wrong here? Have I missed something. Perhaps is it a known issue?
Thank you very much for your help and advice on this topic.
Best regards,
Laurent
Solved! Go to Solution.
2025-01-15 05:48 AM
Hello @lmartinod ,
Further to your comment, I confirm the issue by my side.
In fact, I am able to install GNU Tools for STM32(12.3.rel1) and STM32(13.3.rel1) on STM32CubeIDE 1.13.2 through the Toolchain Manger.
In this case the build is failed due to Program "nullg++" not found in PATH.
As Workaround, after installing GCC12 under this path:
C:\ST\STM32CubeIDE_1.13.2\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.1.0.202410251130.
Click on Add Local.
Name: GCC12
Prefix: arm-none-eabi-
Location:
C:\ST\STM32CubeIDE_1.13.2\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.1.0.202410251130\tools\bin
Then click on finish.
Best Regards.
Mahmoud
2024-12-19 07:17 AM
@lmartinod wrote:I have STM32CubeIDE v1.13.2
That's pretty old.
Why not just update to the latest CubeIDE - currently 1.17.0 ?
https://community.st.com/t5/stm32cubeide-mcus/stm32cubeide-1-17-0-released/td-p/747656
2024-12-19 07:37 AM
Of course I would if not other constraints... I am still using Windows 7 and STM32CubeIDE v1.13.2 is the latest version I was able to fully run "smoothly" on Windows 7 PC... With more recent versions, I encounter incompatibilities or issues...
2024-12-20 09:07 AM
This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.
2024-12-22 04:50 PM
Try to switch to the "internal builder" , while waiting for more useful replies.
2025-01-06 01:00 AM
Unfortunately, External or Internal builders selection does not change anything. In both cases, the nullgcc error is present, and compilation is not possible with GCC ARM for STM32 v12.3rel1 here.
2025-01-15 05:48 AM
Hello @lmartinod ,
Further to your comment, I confirm the issue by my side.
In fact, I am able to install GNU Tools for STM32(12.3.rel1) and STM32(13.3.rel1) on STM32CubeIDE 1.13.2 through the Toolchain Manger.
In this case the build is failed due to Program "nullg++" not found in PATH.
As Workaround, after installing GCC12 under this path:
C:\ST\STM32CubeIDE_1.13.2\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.1.0.202410251130.
Click on Add Local.
Name: GCC12
Prefix: arm-none-eabi-
Location:
C:\ST\STM32CubeIDE_1.13.2\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.1.0.202410251130\tools\bin
Then click on finish.
Best Regards.
Mahmoud