cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I miss lib files even with update cubeMX?

psvc.1
Associate II

Hi everyone,

I created this small project.

I uploaded package firmware to version 1.11.0

When I generate the code I have all these error messages.

The only one we don't need to pay attention is the first error as it's a lib I imported myself.

But why I have missing files even if last updated drivers?

Let me know if you need to know something else in order to help me. Thank you

Build started: Project: NumPad
*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'NumPad'
assembling startup_stm32f072xb.s...
compiling ssd1306.c...
ssd1306\ssd1306.h(12): error:  #5: cannot open source input file "_ansi.h": No such file or directory
  #include <_ansi.h>
ssd1306\ssd1306.c: 0 warnings, 1 error
compiling freertos.c...
compiling usbd_desc.c...
compiling usbd_conf.c...
../Middlewares/ST/STM32_USB_Device_Library/Class/HID/Inc/usbd_hid.h(63): warning:  #47-D: incompatible redefinition of macro "HID_FS_BINTERVAL"  (declared at line 76 of "../Inc/usbd_conf.h")
  #define HID_FS_BINTERVAL               0x0A
../Src/usbd_conf.c: 1 warning, 0 errors
compiling usb_device.c...
../Middlewares/ST/STM32_USB_Device_Library/Class/HID/Inc/usbd_hid.h(63): warning:  #47-D: incompatible redefinition of macro "HID_FS_BINTERVAL"  (declared at line 76 of "../Inc/usbd_conf.h")
  #define HID_FS_BINTERVAL               0x0A
../Src/usb_device.c: 1 warning, 0 errors
compiling fatfs.c...
compiling stm32f0xx_ll_usb.c...
"no source": Error:  #5: cannot open source input file "../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_usb.c": No such file or directory
../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_usb.c: 0 warnings, 1 error
compiling user_diskio.c...
compiling main.c...
compiling stm32f0xx_hal_pcd.c...
compiling stm32f0xx_hal_rcc.c...
compiling stm32f0xx_hal_pcd_ex.c...
compiling stm32f0xx_hal_msp.c...
compiling stm32f0xx_it.c...
compiling stm32f0xx_hal_timebase_tim.c...
compiling stm32f0xx_hal_rcc_ex.c...
compiling stm32f0xx_hal_cortex.c...
compiling stm32f0xx_hal_i2c_ex.c...
compiling stm32f0xx_hal.c...
compiling stm32f0xx_hal_i2c.c...
compiling stm32f0xx_hal_gpio.c...
compiling stm32f0xx_hal_dma.c...
compiling stm32f0xx_hal_exti.c...
"no source": Error:  #5: cannot open source input file "../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_exti.c": No such file or directory
../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_exti.c: 0 warnings, 1 error
compiling stm32f0xx_hal_pwr.c...
compiling stm32f0xx_hal_pwr_ex.c...
compiling stm32f0xx_hal_iwdg.c...
compiling stm32f0xx_hal_adc_ex.c...
compiling stm32f0xx_hal_spi.c...
compiling stm32f0xx_hal_flash_ex.c...
compiling stm32f0xx_hal_flash.c...
compiling stm32f0xx_hal_adc.c...
compiling stm32f0xx_hal_spi_ex.c...
compiling stm32f0xx_hal_tim_ex.c...
compiling system_stm32f0xx.c...
compiling stm32f0xx_hal_uart.c...
compiling diskio.c...
compiling stm32f0xx_hal_uart_ex.c...
compiling croutine.c...
compiling list.c...
compiling event_groups.c...
compiling stream_buffer.c...
"no source": Error:  #5: cannot open source input file "../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c": No such file or directory
../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c: 0 warnings, 1 error
compiling queue.c...
compiling timers.c...
compiling tasks.c...
compiling heap_1.c...
compiling cmsis_os.c...
compiling port.c...
compiling stm32f0xx_hal_tim.c...
compiling usbd_core.c...
compiling ff_gen_drv.c...
compiling ff.c...
compiling syscall.c...
compiling ccsbcs.c...
compiling usbd_ioreq.c...
compiling usbd_ctlreq.c...
compiling usbd_hid.c...
../Middlewares/ST/STM32_USB_Device_Library/Class/HID/Inc/usbd_hid.h(63): warning:  #47-D: incompatible redefinition of macro "HID_FS_BINTERVAL"  (declared at line 76 of "../Inc/usbd_conf.h")
  #define HID_FS_BINTERVAL               0x0A
../Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.c: 1 warning, 0 errors
"NumPad\NumPad.axf" - 4 Error(s), 3 Warning(s).
Target not created.
Build Time Elapsed:  00:00:32

0693W000000X7fvQAC.png0693W000000X7fqQAC.png0693W000000X7flQAC.png

4 REPLIES 4

Hello @Community member​ 

Could you please share your ioc file to check the issue.

Best regards,

Nesrine

psvc.1
Associate II

Hello @Nesrine.JLASSI​ 

here is the ioc file

Thank you

Hello @Community member​ 

You are using an old firmware package. (STM32Cube FW_F0 V1.8.0)

Try to use STM32Cube_FW_F0_V1.11.0, it works correctly. (there is no error messages)

Best regards,

Nesrine

OK Thank you, I don't understand why I didn't select the newer version but that's fine, let's move on

Thanks again