Sysprogs forums › Forums › VisualGDB › Stm32 import not working
- This topic has 1 reply, 2 voices, and was last updated 8 years, 10 months ago by support.
-
AuthorPosts
-
December 31, 2015 at 16:39 #7420zeroaviationParticipant
Gents,
I’m trying to get VisualGDB to work with importing STM32 projects, I have tried both the STM32 cube and non STM32 cube projects.
Here is the project in this scenario that I am test
“STM32Cube_FW_F4_V1.10.0\Projects\STM32F429I-Discovery\Applications\Display\LTDC_Paint\TrueSTUDIO”
It appears that it is not importing all of the project source code (see thi s image http://postimg.org/image/y3p6z6oyt/)
Here is the build error
1>—— Rebuild All started: Project: TestingImportProjectWithHelp, Configuration: Debug Win32 ——
1> VisualGDB: Run “cmd.exe /c “C:\SysGCC\arm-eabi\bin\make.exe” CONFIG=Debug clean -j8″ in directory “C:\Users\mhoneycutt\Documents\VS2015\TestingImportProjectWithHelp\TestingImportProjectWithHelp” on local computer
1> cmd /C del /S /Q Debug
1> The process cannot access the file because it is being used by another process.
1> C:\Users\mhoneycutt\Documents\VS2015\TestingImportProjectWithHelp\TestingImportProjectWithHelp\Debug\TestingImportProjectWithHelp.log
1> Updating C:\Users\mhoneycutt\Documents\VS2015\TestingImportProjectWithHelp\TestingImportProjectWithHelp\Makefile
1> VisualGDB: Updated source file list in C:\Users\mhoneycutt\Documents\VS2015\TestingImportProjectWithHelp\TestingImportProjectWithHelp\Makefile. Enable verbose mode for more details.
1> VisualGDB: Run “cmd.exe /c “C:\SysGCC\arm-eabi\bin\make.exe” CONFIG=Debug -j8″ in directory “C:\Users\mhoneycutt\Documents\VS2015\TestingImportProjectWithHelp\TestingImportProjectWithHelp” on local computer
1> C:\SysGCC\arm-eabi/bin/arm-eabi-gcc.exe -ggdb -ffunction-sections -O0 -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -I. -IC:\Users\mhoneycutt\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.stm32/STM32F4xxxx/STM32F4xx_HAL_Driver/Inc -IC:\Users\mhoneycutt\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.stm32/STM32F4xxxx/STM32F4xx_HAL_Driver/Inc/Legacy -IC:\Users\mhoneycutt\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.stm32/STM32F4xxxx/CMSIS_HAL/Device/ST/STM32F4xx/Include -IC:\Users\mhoneycutt\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.stm32/STM32F4xxxx/CMSIS_HAL/Include -IC:\Users\mhoneycutt\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.stm32/STM32F4xxxx/CMSIS_HAL/RTOS/Template -DDEBUG=1 -DARM_MATH_CM4 -DSTM32F429VI -Dstm32_flash_layout -DSTM32F429xx -c C:\Users\mhoneycutt\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.stm32/STM32F4xxxx/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c -o Debug/stm32f4xx_ll_usb.o -MD -MF Debug/stm32f4xx_ll_usb.dep
1> C:\SysGCC\arm-eabi/bin/arm-eabi-g++.exe -o Debug/TestingImportProjectWithHelp.elf -Wl,-gc-sections -TC:\Users\mhoneycutt\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.stm32/STM32F4xxxx/LinkerScripts/STM32F429VI_flash.lds -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -Wl,–start-group Debug/system_stm32f4xx.o Debug/startup_stm32f429xx.o Debug/stm32f4xx_hal.o Debug/stm32f4xx_hal_adc.o Debug/stm32f4xx_hal_adc_ex.o Debug/stm32f4xx_hal_can.o Debug/stm32f4xx_hal_cec.o Debug/stm32f4xx_hal_cortex.o Debug/stm32f4xx_hal_crc.o Debug/stm32f4xx_hal_cryp.o Debug/stm32f4xx_hal_cryp_ex.o Debug/stm32f4xx_hal_dac.o Debug/stm32f4xx_hal_dac_ex.o Debug/stm32f4xx_hal_dcmi.o Debug/stm32f4xx_hal_dcmi_ex.o Debug/stm32f4xx_hal_dma.o Debug/stm32f4xx_hal_dma2d.o Debug/stm32f4xx_hal_dma_ex.o Debug/stm32f4xx_hal_eth.o Debug/stm32f4xx_hal_flash.o Debug/stm32f4xx_hal_flash_ex.o Debug/stm32f4xx_hal_flash_ramfunc.o Debug/stm32f4xx_hal_fmpi2c.o Debug/stm32f4xx_hal_fmpi2c_ex.o Debug/stm32f4xx_hal_gpio.o Debug/stm32f4xx_hal_hash.o Debug/stm32f4xx_hal_hash_ex.o Debug/stm32f4xx_hal_hcd.o Debug/stm32f4xx_hal_i2c.o Debug/stm32f4xx_hal_i2c_ex.o Debug/stm32f4xx_hal_i2s.o Debug/stm32f4xx_hal_i2s_ex.o Debug/stm32f4xx_hal_irda.o Debug/stm32f4xx_hal_iwdg.o Debug/stm32f4xx_hal_ltdc.o Debug/stm32f4xx_hal_nand.o Debug/stm32f4xx_hal_nor.o Debug/stm32f4xx_hal_pccard.o Debug/stm32f4xx_hal_pcd.o Debug/stm32f4xx_hal_pcd_ex.o Debug/stm32f4xx_hal_pwr.o Debug/stm32f4xx_hal_pwr_ex.o Debug/stm32f4xx_hal_qspi.o Debug/stm32f4xx_hal_rcc.o Debug/stm32f4xx_hal_rcc_ex.o Debug/stm32f4xx_hal_rng.o Debug/stm32f4xx_hal_rtc.o Debug/stm32f4xx_hal_rtc_ex.o Debug/stm32f4xx_hal_sai.o Debug/stm32f4xx_hal_sai_ex.o Debug/stm32f4xx_hal_sd.o Debug/stm32f4xx_hal_sdram.o Debug/stm32f4xx_hal_smartcard.o Debug/stm32f4xx_hal_spdifrx.o Debug/stm32f4xx_hal_spi.o Debug/stm32f4xx_hal_sram.o Debug/stm32f4xx_hal_tim.o Debug/stm32f4xx_hal_tim_ex.o Debug/stm32f4xx_hal_uart.o Debug/stm32f4xx_hal_usart.o Debug/stm32f4xx_hal_wwdg.o Debug/stm32f4xx_ll_fmc.o Debug/stm32f4xx_ll_fsmc.o Debug/stm32f4xx_ll_sdmmc.o Debug/stm32f4xx_ll_usb.o -lcompactcpp -Wl,–end-group
1> Debug/startup_stm32f429xx.o: In function `Reset_Handler’:
1>C:\Users\mhoneycutt\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.stm32\STM32F4xxxx\StartupFiles\startup_stm32f429xx.c(1042): error VGDB1000: undefined reference to `main’
1>collect2.exe : error : ld returned 1 exit status
1> make: *** [Debug/TestingImportProjectWithHelp.elf] Error 1
1> ————————————————————-
1> Command exited with code 2
1> Executable: cmd.exe
1> Arguments: /c “C:\SysGCC\arm-eabi\bin\make.exe” CONFIG=Debug -j8
1> Directory: C:\Users\mhoneycutt\Documents\VS2015\TestingImportProjectWithHelp\TestingImportProjectWithHelp
1>VisualGDB : error : Command-line action failed
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(42,5): error MSB3073: The command “”C:\Program Files (x86)\Sysprogs\VisualGDB\VisualGDB.exe” /rebuild “C:\Users\mhoneycutt\Documents\VS2015\TestingImportProjectWithHelp\TestingImportProjectWithHelp\TestingImportProjectWithHelp.vcxproj” “/solution:C:\Users\mhoneycutt\Documents\VS2015\TestingImportProjectWithHelp\TestingImportProjectWithHelp.sln” “/config:Debug” “/platform:Win32″” exited with code 1.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========Opening that same project in truestudio works perfectly. (See here http://postimg.org/image/6vl1z8po5/)
Thanks for the help!
January 5, 2016 at 05:16 #7429supportKeymasterHi,
Please try manually locating the source file that contains the main() function. Is it located under the source directory you are importing?
-
AuthorPosts
- You must be logged in to reply to this topic.