Sysprogs forums › Forums › VisualGDB › Unable to build STM32 project
- This topic has 1 reply, 2 voices, and was last updated 4 years, 9 months ago by support.
-
AuthorPosts
-
March 14, 2020 at 13:34 #27636tinykerParticipant
Hi,
A few months ago I had no problems setting up a project on another machine and debugging an STM32 project, but this was before ST released the new STM32CubeMX (not sure if it has anything to do).
I have followed this tutorial (as I used to) and I am using your latest stable release (5.4r12):
https://visualgdb.com/tutorials/arm/stm32/cube/
I have tested communication to my board and that end is working. It is just not compiling the project for some reason. I have looked around the forum but can’t seem to find a solution to my problem. I have activated the verbose mode if that is of any help… Here is what “Output” shows:
1>—— Build started: Project: STM32, Configuration: Debug Win32 ——
1>VisualGDB: Trying to detect if your Makefiles need updating… Using configuration: Debug|Win32
1>VisualGDB: Found a makefile: C:\Users\Gabriel\Documents\Sourcetree\sitehkFirmware\STM32\VisualStudio\STM32\Makefile
1>VisualGDB: Found 35 source file(s):
1> ../../STM32CubeMX/Core/Src/gpio.c
1> ../../STM32CubeMX/Core/Src/i2c.c
1> ../../STM32CubeMX/Core/Src/rtc.c
1> ../../STM32CubeMX/Core/Src/spi.c
1> ../../STM32CubeMX/Core/Src/sys.c
1> ../../STM32CubeMX/Core/Src/usart.c
1> ../../STM32CubeMX/Core/Src/usb.c
1> ../../STM32CubeMX/Core/Src/stm32l0xx_it.c
1> ../../STM32CubeMX/Core/Src/stm32l0xx_hal_msp.c
1> ../../STM32CubeMX/Core/Src/main.c
1> ../../STM32CubeMX/Drivers/CMSIS/Device/ST/STM32L0xx/Source/Templates/system_stm32l0xx.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_i2c.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_i2c_ex.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_rtc.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_rtc_ex.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_uart.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_uart_ex.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_pwr.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_pwr_ex.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_flash_ramfunc.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_flash.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_flash_ex.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_spi.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_gpio.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_pcd.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_pcd_ex.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_ll_usb.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_rcc.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_rcc_ex.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_cortex.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_dma.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_tim.c
1> ../../STM32CubeMX/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_tim_ex.c
1> $(BSP_ROOT)/STM32L0xxxx/StartupFiles/startup_stm32l072xx.c
1>VisualGDB: Found 0 excluded file(s) for current configuration:
1>VisualGDB: No source changes detected. C:\Users\Gabriel\Documents\Sourcetree\sitehkFirmware\STM32\VisualStudio\STM32\Makefile needs no updating.
1>VisualGDB: Run “C:\Program Files (x86)\Sysprogs\VisualGDB\make.exe CONFIG=Debug -j16” in directory “C:\Users\Gabriel\Documents\Sourcetree\sitehkFirmware\STM32\VisualStudio\STM32” on local computer
1>C:/SysGCC/arm-eabi/bin/arm-none-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m0plus -mthumb -I..\..\STM32CubeMX\Core\Inc -I..\..\STM32CubeMX\Drivers\CMSIS\Include -I..\..\STM32CubeMX\Drivers\CMSIS\Device\ST\STM32L0xx\Include -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L072xx -DARM_MATH_CM0PLUS -Dflash_layout -DSTM32L072RB -c ../../STM32CubeMX/Core/Src/gpio.c -o Debug/gpio.o -MD -MF Debug/gpio.dep
1>C:/SysGCC/arm-eabi/bin/arm-none-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m0plus -mthumb -I..\..\STM32CubeMX\Core\Inc -I..\..\STM32CubeMX\Drivers\CMSIS\Include -I..\..\STM32CubeMX\Drivers\CMSIS\Device\ST\STM32L0xx\Include -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L072xx -DARM_MATH_CM0PLUS -Dflash_layout -DSTM32L072RB -c ../../STM32CubeMX/Core/Src/i2c.c -o Debug/i2c.o -MD -MF Debug/i2c.dep
1>C:/SysGCC/arm-eabi/bin/arm-none-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m0plus -mthumb -I..\..\STM32CubeMX\Core\Inc -I..\..\STM32CubeMX\Drivers\CMSIS\Include -I..\..\STM32CubeMX\Drivers\CMSIS\Device\ST\STM32L0xx\Include -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L072xx -DARM_MATH_CM0PLUS -Dflash_layout -DSTM32L072RB -c ../../STM32CubeMX/Core/Src/rtc.c -o Debug/rtc.o -MD -MF Debug/rtc.dep
1>C:/SysGCC/arm-eabi/bin/arm-none-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m0plus -mthumb -I..\..\STM32CubeMX\Core\Inc -I..\..\STM32CubeMX\Drivers\CMSIS\Include -I..\..\STM32CubeMX\Drivers\CMSIS\Device\ST\STM32L0xx\Include -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L072xx -DARM_MATH_CM0PLUS -Dflash_layout -DSTM32L072RB -c ../../STM32CubeMX/Core/Src/spi.c -o Debug/spi.o -MD -MF Debug/spi.dep
1>C:/SysGCC/arm-eabi/bin/arm-none-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m0plus -mthumb -I..\..\STM32CubeMX\Core\Inc -I..\..\STM32CubeMX\Drivers\CMSIS\Include -I..\..\STM32CubeMX\Drivers\CMSIS\Device\ST\STM32L0xx\Include -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L072xx -DARM_MATH_CM0PLUS -Dflash_layout -DSTM32L072RB -c ../../STM32CubeMX/Core/Src/sys.c -o Debug/sys.o -MD -MF Debug/sys.dep
1>C:/SysGCC/arm-eabi/bin/arm-none-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m0plus -mthumb -I..\..\STM32CubeMX\Core\Inc -I..\..\STM32CubeMX\Drivers\CMSIS\Include -I..\..\STM32CubeMX\Drivers\CMSIS\Device\ST\STM32L0xx\Include -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L072xx -DARM_MATH_CM0PLUS -Dflash_layout -DSTM32L072RB -c ../../STM32CubeMX/Core/Src/usart.c -o Debug/usart.o -MD -MF Debug/usart.dep
1>C:/SysGCC/arm-eabi/bin/arm-none-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m0plus -mthumb -I..\..\STM32CubeMX\Core\Inc -I..\..\STM32CubeMX\Drivers\CMSIS\Include -I..\..\STM32CubeMX\Drivers\CMSIS\Device\ST\STM32L0xx\Include -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L072xx -DARM_MATH_CM0PLUS -Dflash_layout -DSTM32L072RB -c ../../STM32CubeMX/Core/Src/usb.c -o Debug/usb.o -MD -MF Debug/usb.dep
1>C:/SysGCC/arm-eabi/bin/arm-none-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m0plus -mthumb -I..\..\STM32CubeMX\Core\Inc -I..\..\STM32CubeMX\Drivers\CMSIS\Include -I..\..\STM32CubeMX\Drivers\CMSIS\Device\ST\STM32L0xx\Include -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L072xx -DARM_MATH_CM0PLUS -Dflash_layout -DSTM32L072RB -c ../../STM32CubeMX/Core/Src/stm32l0xx_it.c -o Debug/stm32l0xx_it.o -MD -MF Debug/stm32l0xx_it.dep
1>make: *** No rule to make target../../STM32CubeMX/Drivers/CMSIS/Device/ST/STM32L0xx/Source/Templates/system_stm32l0xx.c', needed by
Debug/system_stm32l0xx.o’. Stop.
1>make: *** Waiting for unfinished jobs….
1>C:/SysGCC/arm-eabi/bin/arm-none-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m0plus -mthumb -I..\..\STM32CubeMX\Core\Inc -I..\..\STM32CubeMX\Drivers\CMSIS\Include -I..\..\STM32CubeMX\Drivers\CMSIS\Device\ST\STM32L0xx\Include -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L072xx -DARM_MATH_CM0PLUS -Dflash_layout -DSTM32L072RB -c ../../STM32CubeMX/Core/Src/stm32l0xx_hal_msp.c -o Debug/stm32l0xx_hal_msp.o -MD -MF Debug/stm32l0xx_hal_msp.dep
1>C:/SysGCC/arm-eabi/bin/arm-none-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m0plus -mthumb -I..\..\STM32CubeMX\Core\Inc -I..\..\STM32CubeMX\Drivers\CMSIS\Include -I..\..\STM32CubeMX\Drivers\CMSIS\Device\ST\STM32L0xx\Include -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc -I..\..\STM32CubeMX\Drivers\STM32L0xx_HAL_Driver\Inc\Legacy -I. -DDEBUG=1 -Dflash_layout -DSTM32L072xx -DARM_MATH_CM0PLUS -Dflash_layout -DSTM32L072RB -c ../../STM32CubeMX/Core/Src/main.c -o Debug/main.o -MD -MF Debug/main.dep
1>————————————————————-
1>Command exited with code 2
1>Executable: C:\Program Files (x86)\Sysprogs\VisualGDB\make.exe
1>Arguments: CONFIG=Debug -j16
1>Directory: C:\Users\Gabriel\Documents\Sourcetree\sitehkFirmware\STM32\VisualStudio\STM32
1>Environment: LANG=en_US.UTF-8|PATH=C:\SysGCC\arm-eabi\bin;%PATH%|TOOLCHAIN_ROOT=C:/SysGCC/arm-eabi|EFP_BASE=C:/Users/Gabriel/AppData/Local/VisualGDB/EmbeddedEFPs|TESTFW_BASE=C:/Users/Gabriel/AppData/Local/VisualGDB/TestFrameworks|TESTFW_BASE_LOCAL=C:/Users/Gabriel/AppData/Local/VisualGDB/TestFrameworks|BSP_ROOT=C:/Users/Gabriel/AppData/Local/VisualGDB/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.stm32
1>VisualGDB : error : Command-line action failed
1>VisualGDB : error : Build has failed. See the Output window for more details.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command “”C:\Program Files (x86)\Sysprogs\VisualGDB\\VisualGDB.exe” /build “C:\Users\Gabriel\Documents\Sourcetree\SiteHkFirmware\STM32\VisualStudio\STM32\STM32.vcxproj” “/solution:C:\Users\Gabriel\Documents\Sourcetree\sitehkFirmware\STM32\VisualStudio\STM32\STM32.sln” “/config:Debug” “/platform:Win32″” exited with code 1.
1>Done building project “STM32.vcxproj” — FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========Your help is appreciated,
Thanks
March 14, 2020 at 17:32 #27640 -
AuthorPosts
- You must be logged in to reply to this topic.