cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE 1.13.2 with GCC ARM for STM32 v12.3rel1: nullgcc error

lmartinod
Associate II

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

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

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.

MahmoudBenRomdhane_0-1736948609987.png

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

 

MahmoudBenRomdhane_1-1736948820829.png

Then click on finish.

 

Best Regards.

Mahmoud

 

View solution in original post

6 REPLIES 6

@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

 

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...

Christian N
ST Employee

This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.

Try to switch to the "internal builder" , while waiting for more useful replies.

PavelA_0-1734914935749.png

 

lmartinod
Associate II

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.

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.

MahmoudBenRomdhane_0-1736948609987.png

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

 

MahmoudBenRomdhane_1-1736948820829.png

Then click on finish.

 

Best Regards.

Mahmoud