2023-08-11 01:28 PM
Hi. When I create SMT32 project (I'm using NUCLEO-L476RG) and then I compiled empty project I recive same 13 errors all the time(look photo below). I really can't fix it and I can't find the solution.
What I tried:
Thanks,
Eryk
2023-08-11 07:32 PM
Check if the same errors happen using STM32CubeIDE v1.12.1
2023-08-11 11:06 PM
cc1 is an internal part of the arm-none-eabi-gcc compiler and the error says that cc1 was not found. Check that you STM32CubeIDE installation and your project paths are short and easy and do not contain spaces " ", umlauts, or other special ASCII or non-ASCII chars. Check also that you don't have multiple versions of the compiler tools installed or on the path.
hth
KnarfB
2023-08-12 01:26 AM
Tried, didn't work :\
2023-08-12 02:19 AM
Also checked everything. Path for project and STMCubeIDE is short enough and simple. I checked if I have multiple versions of compiler tools installed and here everything is also fine. This is so enigmatic...
2023-08-12 04:37 AM
There might be another compiler instance on the path , interfering. You may set in the Project Properties, C/C++ Build Settings, MCCU GCC Compiler Tool Settings the -v (verbose) flag to get some insight what's called. Sample output:
make -j8 all
arm-none-eabi-gcc "../Core/Src/main.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32L432xx -c -I../Core/Inc -I../Drivers/STM32L4xx_HAL_Driver/Inc -I../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32L4xx/Include -I../Drivers/CMSIS/Include -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -O0 -ffunction-sections -fdata-sections -Wall -v -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/main.d" -MT"Core/Src/main.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Core/Src/main.o"
Using built-in specs.
Reading specs from C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/nano.specs
rename spec link to nano_link
rename spec link_gcc_c_sequence to nano_link_gcc_c_sequence
rename spec cpp_unique_options to nano_cpp_unique_options
COLLECT_GCC=arm-none-eabi-gcc
Target: arm-none-eabi
Configured with: /build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/src/gcc/configure --build=x86_64-linux-gnu --host=x86_64-w64-mingw32 --target=arm-none-eabi --prefix=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/install-mingw --libexecdir=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/install-mingw/lib --infodir=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/install-mingw/share/doc/gcc-arm-none-eabi/info --mandir=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/install-mingw/share/doc/gcc-arm-none-eabi/man --htmldir=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/install-mingw/share/doc/gcc-arm-none-eabi/html --pdfdir=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/install-mingw/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --enable-mingw-wildcard --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-headers=yes --with-newlib --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/install-mingw/arm-none-eabi --with-libiconv-prefix=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/build-mingw/host-libs/usr --with-gmp=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/build-mingw/host-libs/usr --with-mpfr=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/build-mingw/host-libs/usr --with-mpc=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/build-mingw/host-libs/usr --with-isl=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/build-mingw/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for STM32 11.3.rel1.20230519-1941' --with-multilib-list=rmprofile,aprofile
Thread model: single
Supported LTO compression algorithms: zlib
gcc version 11.3.1 20220712 (GNU Tools for STM32 11.3.rel1.20230519-1941)
COLLECT_GCC_OPTIONS='-mcpu=cortex-m4' '-std=gnu11' '-g3' '-D' 'DEBUG' '-D' 'USE_HAL_DRIVER' '-D' 'STM32L432xx' '-c' '-I' '../Core/Inc' '-I' '../Drivers/STM32L4xx_HAL_Driver/Inc' '-I' '../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy' '-I' '../Drivers/CMSIS/Device/ST/STM32L4xx/Include' '-I' '../Drivers/CMSIS/Include' '-I' '../Middlewares/Third_Party/FreeRTOS/Source/include' '-I' '../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2' '-I' '../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F' '-O0' '-ffunction-sections' '-fdata-sections' '-Wall' '-v' '-fstack-usage' '-fcyclomatic-complexity' '-MMD' '-MP' '-MF' 'Core/Src/main.d' '-MT' 'Core/Src/main.o' '-specs=nano.specs' '-mfpu=fpv4-sp-d16' '-mfloat-abi=hard' '-mthumb' '-o' 'Core/Src/main.o' '-mlibarch=armv7e-m+fp' '-march=armv7e-m+fp' '-dumpdir' 'Core/Src/'
C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/cc1.exe -isystem =/include/newlib-nano -quiet -v -I ../Core/Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L4xx/Include -I ../Drivers/CMSIS/Include -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -imultilib thumb/v7e-m+fp/hard -iprefix C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin/../lib/gcc/arm-none-eabi/11.3.1/ -isysroot C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin/../arm-none-eabi -MMD Core/Src/main.d -MF Core/Src/main.d -MP -MT Core/Src/main.o -dD -D__USES_INITFINI__ -D DEBUG -D USE_HAL_DRIVER -D STM32L432xx ../Core/Src/main.c -quiet -dumpdir Core/Src/ -dumpbase main.c -dumpbase-ext .c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -mlibarch=armv7e-m+fp -march=armv7e-m+fp -g3 -O0 -Wall -std=gnu11 -version -ffunction-sections -fdata-sections -fstack-usage -fcyclomatic-complexity -o C:\Users\frank\AppData\Local\Temp\cca9GvKz.s
GNU C11 (GNU Tools for STM32 11.3.rel1.20230519-1941) version 11.3.1 20220712 (arm-none-eabi)
compiled by GNU C version 7.3-win32 20180312, GMP version 6.2.1, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.15-1-g835ea3a-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin/../arm-none-eabi/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/install-mingw/lib/gcc/arm-none-eabi/11.3.1/../../../../include"
ignoring nonexistent directory "C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin/../arm-none-eabi/usr/include"
#include "..." search starts here:
#include <...> search starts here:
../Core/Inc
../Drivers/STM32L4xx_HAL_Driver/Inc
../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy
../Drivers/CMSIS/Device/ST/STM32L4xx/Include
../Drivers/CMSIS/Include
../Middlewares/Third_Party/FreeRTOS/Source/include
../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2
../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F
C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin/../arm-none-eabi/include/newlib-nano
C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin/../lib/gcc/arm-none-eabi/11.3.1/include
C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin/../lib/gcc/arm-none-eabi/11.3.1/include-fixed
C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/include
C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/lib/gcc/../../lib/gcc/arm-none-eabi/11.3.1/include
C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/lib/gcc/../../lib/gcc/arm-none-eabi/11.3.1/include-fixed
C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/lib/gcc/../../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/include
End of search list.
GNU C11 (GNU Tools for STM32 11.3.rel1.20230519-1941) version 11.3.1 20220712 (arm-none-eabi)
compiled by GNU C version 7.3-win32 20180312, GMP version 6.2.1, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.15-1-g835ea3a-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: bb7af03544c92f4e52aff0e366d0d072
COLLECT_GCC_OPTIONS='-mcpu=cortex-m4' '-std=gnu11' '-g3' '-D' 'DEBUG' '-D' 'USE_HAL_DRIVER' '-D' 'STM32L432xx' '-c' '-I' '../Core/Inc' '-I' '../Drivers/STM32L4xx_HAL_Driver/Inc' '-I' '../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy' '-I' '../Drivers/CMSIS/Device/ST/STM32L4xx/Include' '-I' '../Drivers/CMSIS/Include' '-I' '../Middlewares/Third_Party/FreeRTOS/Source/include' '-I' '../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2' '-I' '../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F' '-O0' '-ffunction-sections' '-fdata-sections' '-Wall' '-v' '-fstack-usage' '-fcyclomatic-complexity' '-MMD' '-MP' '-MF' 'Core/Src/main.d' '-MT' 'Core/Src/main.o' '-specs=nano.specs' '-mfpu=fpv4-sp-d16' '-mfloat-abi=hard' '-mthumb' '-o' 'Core/Src/main.o' '-mlibarch=armv7e-m+fp' '-march=armv7e-m+fp' '-dumpdir' 'Core/Src/'
C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/as.exe -v -I ../Core/Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L4xx/Include -I ../Drivers/CMSIS/Include -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -march=armv7e-m -mfloat-abi=hard -mfpu=fpv4-sp-d16 -meabi=5 -o Core/Src/main.o C:\Users\frank\AppData\Local\Temp\cca9GvKz.s
GNU assembler version 2.38 (arm-none-eabi) using BFD version (GNU Tools for STM32 11.3.rel1.20230519-1941) 2.38.20220708
MAKEFLAGS= -j8
COMPILER_PATH=C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/;C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/;C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/
LIBRARY_PATH=C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+fp/hard/;C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/;C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../arm-none-eabi/lib/thumb/v7e-m+fp/hard/;C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/;C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/;C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/;C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../arm-none-eabi/lib/
COLLECT_GCC_OPTIONS='-mcpu=cortex-m4' '-std=gnu11' '-g3' '-D' 'DEBUG' '-D' 'USE_HAL_DRIVER' '-D' 'STM32L432xx' '-c' '-I' '../Core/Inc' '-I' '../Drivers/STM32L4xx_HAL_Driver/Inc' '-I' '../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy' '-I' '../Drivers/CMSIS/Device/ST/STM32L4xx/Include' '-I' '../Drivers/CMSIS/Include' '-I' '../Middlewares/Third_Party/FreeRTOS/Source/include' '-I' '../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2' '-I' '../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F' '-O0' '-ffunction-sections' '-fdata-sections' '-Wall' '-v' '-fstack-usage' '-fcyclomatic-complexity' '-MMD' '-MP' '-MF' 'Core/Src/main.d' '-MT' 'Core/Src/main.o' '-specs=nano.specs' '-mfpu=fpv4-sp-d16' '-mfloat-abi=hard' '-mthumb' '-o' 'Core/Src/main.o' '-mlibarch=armv7e-m+fp' '-march=armv7e-m+fp' '-dumpdir' 'Core/Src/main.'
arm-none-eabi-gcc -o "FreRTOS_3Tasks.elf" @"objects.list" -mcpu=cortex-m4 -T"C:\Users\frank\OneDrive\Lehre\CE31 Embedded Systems\TimeDoctor\FreeRTOS_3Tasks_Real-Time_Tracing\STM32L432KCUX_FLASH.ld" --specs=nosys.specs -Wl,-Map="FreRTOS_3Tasks.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
Finished building target: FreRTOS_3Tasks.elf
arm-none-eabi-size FreRTOS_3Tasks.elf
arm-none-eabi-objdump -h -S FreRTOS_3Tasks.elf > "FreRTOS_3Tasks.list"
text data bss dec hex filename
32248 116 10036 42400 a5a0 FreRTOS_3Tasks.elf
Finished building: default.size.stdout
Finished building: FreRTOS_3Tasks.list
13:35:03 Build Finished. 0 errors, 0 warnings. (took 1s.483ms)
The compiler tools are in the plugin folder of STM32CubeIDE like
C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin
hth
KnarfB
2023-08-12 05:29 AM
In STM32CubeIDE Project Properties, C/C++ Build, Tool Settings you may set the -v (verbose) option and check compilation. Sample output:
13:35:01 **** Incremental Build of configuration Debug for project FreRTOS_3Tasks ****
make -j8 all
arm-none-eabi-gcc "../Core/Src/main.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32L432xx -c -I../Core/Inc -I../Drivers/STM32L4xx_HAL_Driver/Inc -I../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32L4xx/Include -I../Drivers/CMSIS/Include -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -O0 -ffunction-sections -fdata-sections -Wall -v -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/main.d" -MT"Core/Src/main.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Core/Src/main.o"
Using built-in specs.
Reading specs from C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/nano.specs
rename spec link to nano_link
rename spec link_gcc_c_sequence to nano_link_gcc_c_sequence
rename spec cpp_unique_options to nano_cpp_unique_options
COLLECT_GCC=arm-none-eabi-gcc
Target: arm-none-eabi
Configured with: /build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/src/gcc/configure --build=x86_64-linux-gnu --host=x86_64-w64-mingw32 --target=arm-none-eabi --prefix=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/install-mingw --libexecdir=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/install-mingw/lib --infodir=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/install-mingw/share/doc/gcc-arm-none-eabi/info --mandir=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/install-mingw/share/doc/gcc-arm-none-eabi/man --htmldir=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/install-mingw/share/doc/gcc-arm-none-eabi/html --pdfdir=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/install-mingw/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --enable-mingw-wildcard --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-headers=yes --with-newlib --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/install-mingw/arm-none-eabi --with-libiconv-prefix=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/build-mingw/host-libs/usr --with-gmp=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/build-mingw/host-libs/usr --with-mpfr=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/build-mingw/host-libs/usr --with-mpc=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/build-mingw/host-libs/usr --with-isl=/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/build-mingw/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='GNU Tools for STM32 11.3.rel1.20230519-1941' --with-multilib-list=rmprofile,aprofile
Thread model: single
Supported LTO compression algorithms: zlib
gcc version 11.3.1 20220712 (GNU Tools for STM32 11.3.rel1.20230519-1941)
COLLECT_GCC_OPTIONS='-mcpu=cortex-m4' '-std=gnu11' '-g3' '-D' 'DEBUG' '-D' 'USE_HAL_DRIVER' '-D' 'STM32L432xx' '-c' '-I' '../Core/Inc' '-I' '../Drivers/STM32L4xx_HAL_Driver/Inc' '-I' '../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy' '-I' '../Drivers/CMSIS/Device/ST/STM32L4xx/Include' '-I' '../Drivers/CMSIS/Include' '-I' '../Middlewares/Third_Party/FreeRTOS/Source/include' '-I' '../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2' '-I' '../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F' '-O0' '-ffunction-sections' '-fdata-sections' '-Wall' '-v' '-fstack-usage' '-fcyclomatic-complexity' '-MMD' '-MP' '-MF' 'Core/Src/main.d' '-MT' 'Core/Src/main.o' '-specs=nano.specs' '-mfpu=fpv4-sp-d16' '-mfloat-abi=hard' '-mthumb' '-o' 'Core/Src/main.o' '-mlibarch=armv7e-m+fp' '-march=armv7e-m+fp' '-dumpdir' 'Core/Src/'
C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/cc1.exe -isystem =/include/newlib-nano -quiet -v -I ../Core/Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L4xx/Include -I ../Drivers/CMSIS/Include -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -imultilib thumb/v7e-m+fp/hard -iprefix C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin/../lib/gcc/arm-none-eabi/11.3.1/ -isysroot C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin/../arm-none-eabi -MMD Core/Src/main.d -MF Core/Src/main.d -MP -MT Core/Src/main.o -dD -D__USES_INITFINI__ -D DEBUG -D USE_HAL_DRIVER -D STM32L432xx ../Core/Src/main.c -quiet -dumpdir Core/Src/ -dumpbase main.c -dumpbase-ext .c -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -mlibarch=armv7e-m+fp -march=armv7e-m+fp -g3 -O0 -Wall -std=gnu11 -version -ffunction-sections -fdata-sections -fstack-usage -fcyclomatic-complexity -o C:\Users\frank\AppData\Local\Temp\cca9GvKz.s
GNU C11 (GNU Tools for STM32 11.3.rel1.20230519-1941) version 11.3.1 20220712 (arm-none-eabi)
compiled by GNU C version 7.3-win32 20180312, GMP version 6.2.1, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.15-1-g835ea3a-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin/../arm-none-eabi/build/gnu-tools-for-stm32_11.3.rel1.20230519-1941/install-mingw/lib/gcc/arm-none-eabi/11.3.1/../../../../include"
ignoring nonexistent directory "C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin/../arm-none-eabi/usr/include"
#include "..." search starts here:
#include <...> search starts here:
../Core/Inc
../Drivers/STM32L4xx_HAL_Driver/Inc
../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy
../Drivers/CMSIS/Device/ST/STM32L4xx/Include
../Drivers/CMSIS/Include
../Middlewares/Third_Party/FreeRTOS/Source/include
../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2
../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F
C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin/../arm-none-eabi/include/newlib-nano
C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin/../lib/gcc/arm-none-eabi/11.3.1/include
C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin/../lib/gcc/arm-none-eabi/11.3.1/include-fixed
C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/include
C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/lib/gcc/../../lib/gcc/arm-none-eabi/11.3.1/include
C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/lib/gcc/../../lib/gcc/arm-none-eabi/11.3.1/include-fixed
C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/lib/gcc/../../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/include
End of search list.
GNU C11 (GNU Tools for STM32 11.3.rel1.20230519-1941) version 11.3.1 20220712 (arm-none-eabi)
compiled by GNU C version 7.3-win32 20180312, GMP version 6.2.1, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.15-1-g835ea3a-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: bb7af03544c92f4e52aff0e366d0d072
COLLECT_GCC_OPTIONS='-mcpu=cortex-m4' '-std=gnu11' '-g3' '-D' 'DEBUG' '-D' 'USE_HAL_DRIVER' '-D' 'STM32L432xx' '-c' '-I' '../Core/Inc' '-I' '../Drivers/STM32L4xx_HAL_Driver/Inc' '-I' '../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy' '-I' '../Drivers/CMSIS/Device/ST/STM32L4xx/Include' '-I' '../Drivers/CMSIS/Include' '-I' '../Middlewares/Third_Party/FreeRTOS/Source/include' '-I' '../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2' '-I' '../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F' '-O0' '-ffunction-sections' '-fdata-sections' '-Wall' '-v' '-fstack-usage' '-fcyclomatic-complexity' '-MMD' '-MP' '-MF' 'Core/Src/main.d' '-MT' 'Core/Src/main.o' '-specs=nano.specs' '-mfpu=fpv4-sp-d16' '-mfloat-abi=hard' '-mthumb' '-o' 'Core/Src/main.o' '-mlibarch=armv7e-m+fp' '-march=armv7e-m+fp' '-dumpdir' 'Core/Src/'
C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/as.exe -v -I ../Core/Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc -I ../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32L4xx/Include -I ../Drivers/CMSIS/Include -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -march=armv7e-m -mfloat-abi=hard -mfpu=fpv4-sp-d16 -meabi=5 -o Core/Src/main.o C:\Users\frank\AppData\Local\Temp\cca9GvKz.s
GNU assembler version 2.38 (arm-none-eabi) using BFD version (GNU Tools for STM32 11.3.rel1.20230519-1941) 2.38.20220708
MAKEFLAGS= -j8
COMPILER_PATH=C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/;C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/;C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/
LIBRARY_PATH=C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/thumb/v7e-m+fp/hard/;C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/;C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../arm-none-eabi/lib/thumb/v7e-m+fp/hard/;C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/;C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/;C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/lib/;C:/ST/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506/tools/bin/../arm-none-eabi/lib/
COLLECT_GCC_OPTIONS='-mcpu=cortex-m4' '-std=gnu11' '-g3' '-D' 'DEBUG' '-D' 'USE_HAL_DRIVER' '-D' 'STM32L432xx' '-c' '-I' '../Core/Inc' '-I' '../Drivers/STM32L4xx_HAL_Driver/Inc' '-I' '../Drivers/STM32L4xx_HAL_Driver/Inc/Legacy' '-I' '../Drivers/CMSIS/Device/ST/STM32L4xx/Include' '-I' '../Drivers/CMSIS/Include' '-I' '../Middlewares/Third_Party/FreeRTOS/Source/include' '-I' '../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2' '-I' '../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F' '-O0' '-ffunction-sections' '-fdata-sections' '-Wall' '-v' '-fstack-usage' '-fcyclomatic-complexity' '-MMD' '-MP' '-MF' 'Core/Src/main.d' '-MT' 'Core/Src/main.o' '-specs=nano.specs' '-mfpu=fpv4-sp-d16' '-mfloat-abi=hard' '-mthumb' '-o' 'Core/Src/main.o' '-mlibarch=armv7e-m+fp' '-march=armv7e-m+fp' '-dumpdir' 'Core/Src/main.'
arm-none-eabi-gcc -o "FreRTOS_3Tasks.elf" @"objects.list" -mcpu=cortex-m4 -T"C:\Users\frank\OneDrive\Lehre\CE31 Embedded Systems\TimeDoctor\FreeRTOS_3Tasks_Real-Time_Tracing\STM32L432KCUX_FLASH.ld" --specs=nosys.specs -Wl,-Map="FreRTOS_3Tasks.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
Finished building target: FreRTOS_3Tasks.elf
arm-none-eabi-size FreRTOS_3Tasks.elf
arm-none-eabi-objdump -h -S FreRTOS_3Tasks.elf > "FreRTOS_3Tasks.list"
text data bss dec hex filename
32248 116 10036 42400 a5a0 FreRTOS_3Tasks.elf
Finished building: default.size.stdout
Finished building: FreRTOS_3Tasks.list
13:35:03 Build Finished. 0 errors, 0 warnings. (took 1s.483ms)
The compiler tools shall be in a folder like
C:\ST\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin
There may be other installed toolchains interfering.
hth
KnarfB
2023-08-12 11:23 AM
Hello
How do you exactly create your empty project ?
Maybe you could share your project ?
BR J.T
2023-08-12 06:59 PM
An irrational config.sys can produce strange errors. Use one from a simple GPIO HAL library example.
2023-08-12 07:43 PM
Perhaps you could try installing the IDE on a freshly installed system (Linux/Windows etc), perhaps using Virtualbox.