cancel
Showing results for 
Search instead for 
Did you mean: 

stm32 vscode extension 2.1.1 in both MACos and linux fail to build. Fails after compile during link.

jcs
Visitor
Hi Everyone/Anyone,
 
I get the same results for fresh installs (Oct-5-2024) both an install on a Mac and on a PC/linux.  Code is generated by stm32cubemx for development boards stm32f407disc and a nucleo-f446re.  The code is untouched after generation.  Both Os's and dev boards (all four permutations fail).   When I try to build I get the following:
 
Any Ideas?
Thanks,
Jim
 
 
[build] [23/24] Building C object CMakeFiles/446retest.dir/Core/Src/system_stm32f4xx.c.obj
[build] [24/24] Linking C executable 446retest.elf
[build] FAILED: 446retest.elf
[build] : && /opt/st/stm32cubeclt_1.16.0/GNU-tools-for-STM32/bin/arm-none-eabi-gcc -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -O0 -g3 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -O0 -g3 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -O0 -g3 -g -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -T "/home/jim/projects/test4/446retest/STM32F446RETx_FLASH.ld" --specs=nano.specs -Wl,-Map=446retest.map -Wl,--gc-sections -Wl,--start-group -lc -lm -Wl,--end-group -Wl,--print-memory-usage CMakeFiles/446retest.dir/Core/Src/main.c.obj CMakeFiles/446retest.dir/Core/Src/stm32f4xx_it.c.obj CMakeFiles/446retest.dir/Core/Src/stm32f4xx_hal_msp.c.obj CMakeFiles/446retest.dir/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c.obj CMakeFiles/446retest.dir/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c.obj CMakeFiles/446retest.dir/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c.obj CMakeFiles/446retest.dir/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c.obj CMakeFiles/446retest.dir/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c.obj CMakeFiles/446retest.dir/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c.obj CMakeFiles/446retest.dir/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c.obj CMakeFiles/446retest.dir/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.c.obj CMakeFiles/446retest.dir/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c.obj CMakeFiles/446retest.dir/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c.obj CMakeFiles/446retest.dir/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c.obj CMakeFiles/446retest.dir/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c.obj CMakeFiles/446retest.dir/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c.obj CMakeFiles/446retest.dir/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c.obj CMakeFiles/446retest.dir/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c.obj CMakeFiles/446retest.dir/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c.obj CMakeFiles/446retest.dir/Core/Src/system_stm32f4xx.c.obj CMakeFiles/446retest.dir/Core/Src/sysmem.c.obj CMakeFiles/446retest.dir/Core/Src/syscalls.c.obj CMakeFiles/446retest.dir/startup_stm32f446xx.s.obj -o 446retest.elf && :
[build] /opt/st/stm32cubeclt_1.16.0/GNU-tools-for-STM32/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld:/home/jim/projects/test4/446retest/STM32F446RETx_FLASH.ld:56: syntax error
[build] collect2: error: ld returned 1 exit status
[build] ninja: build stopped: subcommand failed.
[proc] The command: /opt/st/stm32cubeclt_1.16.0/CMake/bin/cmake --build /home/jim/projects/test4/446retest/build/Debug -- exited with code: 1
0 REPLIES 0