2016-12-06 12:45 AM
Dear Sir,
As we discussed earlier, difficulties on adapting project in SW4STM32 and mdk-keil, things might related to compiler, including paths, wrong pre-processors, undefined characters, unresolved items, miss-matching of slandered files/states with HAL libraries, we did not find any particular clue.
https://community.st.com/thread/32323
Lets see the difficulties accordance with
SW4STM32 because mdk-keil and coo-cox is failed!! (AC6,
, , All are not usefull)Right at the moment, the error console says,
arm-none-eabi-gcc -mthumb -mfloat-abi=soft -E ''-IC:\\Ac6\\SystemWorkbench\\plugins\\fr.ac6.mcu.externaltools.arm-none.win32_1.7.0.201602121829\\tools\\compiler\\bin'' ''-IC:\\STM32_toolchain\\lib\\gcc'' -IC:/STM32_toolchain/common/Drivers/STM32F0xx_HAL_Driver/Inc -IC:/STM32_toolchain/common/Drivers/STM32F0xx_HAL_Driver/Src -O0 -g3 -Wall -fmessage-length=0 -ffunction-sections -c -o ''startup\\Src\\stm32f0xx_ll_utils.o'' ''..\\startup\\Src\\stm32f0xx_ll_utils.c''
..\startup\Src\stm32f0xx_ll_utils.c:39:32: fatal error: stm32f0xx_ll_utils.h: No such file or directory compilation terminated.Kindly take a look the project properties setting, things might skip from my eyes.
#sw4stm32 #hal-diver #stm32 Note: this post was migrated and contained many threaded conversations, some content may be missing.Solved! Go to Solution.
2016-12-06 10:59 PM
Not sure where that's coming from, but could be an issue with an errant ' quote mark. See end of line for third include path entry
Your other error comes from loading
'..\\startup\\Src\\stm32f0xx_ll_utils.c'
In this case a path of '..\\startup\\Inc' might be appropriate.
I'm not using Ac6/SW4STM32, I use GNU/GCC with a makefile. The slash, back-slash, and Korean/Japanese W, and the use of UNIX based tools in Windows, can cause all manner of head-aches if misapplied or inconsistently applied
2016-12-06 11:45 PM
Dear Sir Clive1,
Not sure where that's coming from, but could be an issue with an errant ' quote mark
I have corrected the path in following include,
'C:/STM32_toolchain/Workspace/project_1/startup/Src'
If you look previous post image, its quite wrong approach in using
'
.This time console says something about output files.
Info: Internal Builder is used for build
arm-none-eabi-gcc -mthumb -mfloat-abi=soft '-TC:\\STM32_toolchain\\Workspace\\project_1\\LinkerScript.ld' -Wl,-Map=output.map -Wl,--gc-sections -lm -o project_1 'src\\rc_new.o' 'src\\stm32f0xx_hal.o' 'src\\stm32f0xx_hal_msp.o' 'src\\stm32f0xx_it.o' 'src\\syscalls.o' 'startup\\Src\\stm32f0xx_hal.o' 'startup\\Src\\stm32f0xx_hal_adc.o' 'startup\\Src\\stm32f0xx_hal_adc_ex.o' 'startup\\Src\\stm32f0xx_hal_can.o' 'startup\\Src\\stm32f0xx_hal_cec.o' 'startup\\Src\\stm32f0xx_hal_comp.o' 'startup\\Src\\stm32f0xx_hal_cortex.o' 'startup\\Src\\stm32f0xx_hal_crc.o' 'startup\\Src\\stm32f0xx_hal_crc_ex.o' 'startup\\Src\\stm32f0xx_hal_dac.o' 'startup\\Src\\stm32f0xx_hal_dac_ex.o' 'startup\\Src\\stm32f0xx_hal_dma.o' 'startup\\Src\\stm32f0xx_hal_flash.o' 'startup\\Src\\stm32f0xx_hal_flash_ex.o' 'startup\\Src\\stm32f0xx_hal_gpio.o' 'startup\\Src\\stm32f0xx_hal_i2c.o' 'startup\\Src\\stm32f0xx_hal_i2c_ex.o' 'startup\\Src\\stm32f0xx_hal_i2s.o' 'startup\\Src\\stm32f0xx_hal_irda.o' 'startup\\Src\\stm32f0xx_hal_iwdg.o' 'startup\\Src\\stm32f0xx_hal_msp_template.o' 'startup\\Src\\stm32f0xx_hal_pcd.o' 'startup\\Src\\stm32f0xx_hal_pcd_ex.o' 'startup\\Src\\stm32f0xx_hal_pwr.o' 'startup\\Src\\stm32f0xx_hal_pwr_ex.o' 'startup\\Src\\stm32f0xx_hal_rcc.o' 'startup\\Src\\stm32f0xx_hal_rcc_ex.o' 'startup\\Src\\stm32f0xx_hal_rtc.o' 'startup\\Src\\stm32f0xx_hal_rtc_ex.o' 'startup\\Src\\stm32f0xx_hal_smartcard.o' 'startup\\Src\\stm32f0xx_hal_smartcard_ex.o' 'startup\\Src\\stm32f0xx_hal_smbus.o' 'startup\\Src\\stm32f0xx_hal_spi.o' 'startup\\Src\\stm32f0xx_hal_spi_ex.o' 'startup\\Src\\stm32f0xx_hal_tim.o' 'startup\\Src\\stm32f0xx_hal_tim_ex.o' 'startup\\Src\\stm32f0xx_hal_tsc.o' 'startup\\Src\\stm32f0xx_hal_uart.o' 'startup\\Src\\stm32f0xx_hal_uart_ex.o' 'startup\\Src\\stm32f0xx_hal_usart.o' 'startup\\Src\\stm32f0xx_hal_wwdg.o' 'startup\\Src\\stm32f0xx_ll_adc.o' 'startup\\Src\\stm32f0xx_ll_comp.o' 'startup\\Src\\stm32f0xx_ll_crc.o' 'startup\\Src\\stm32f0xx_ll_crs.o' 'startup\\Src\\stm32f0xx_ll_dac.o' 'startup\\Src\\stm32f0xx_ll_dma.o' 'startup\\Src\\stm32f0xx_ll_exti.o' 'startup\\Src\\stm32f0xx_ll_gpio.o' 'startup\\Src\\stm32f0xx_ll_i2c.o' 'startup\\Src\\stm32f0xx_ll_pwr.o' 'startup\\Src\\stm32f0xx_ll_rcc.o' 'startup\\Src\\stm32f0xx_ll_rtc.o' 'startup\\Src\\stm32f0xx_ll_spi.o' 'startup\\Src\\stm32f0xx_ll_tim.o' 'startup\\Src\\stm32f0xx_ll_usart.o' 'startup\\Src\\stm32f0xx_ll_utils.o' 'startup\\startup_stmo' 'startup\\sysmem.o' src\rc_new.o: file not recognized: File format not recognized collect2.exe: error: ld returned 1 exit statusWhats about, '
file not recognized: File format not recognized'?