0

I installed the STM32F0 stand_perip driver library and I wanted to add the driver files to my project on keil software. I did include the header and C files of the STM32F0 stand_perip driver library but this error popped that many header files are not present. like these: #include "stm32f0xx_gpio.h" #include "stm32f0xx_rcc.h"

Any leads will help?

Sakshi
  • 1
  • 2
  • How do you compile the project? Are you using a Makefile? – Fra93 Jul 31 '22 at 15:41
  • I am using the build option available in keil – Sakshi Aug 01 '22 at 06:09
  • The build option uses either a makefile or a preconfigured project file. Check that because most probably you have not configured the header and library path. – Fra93 Aug 01 '22 at 08:08
  • I included the paths in the target options for the header files present in the driver folder and the errors have reduced.but I am facing this error now : Undefined symbol assert_param (referred from stm32f0xx_gpio.o). – Sakshi Aug 01 '22 at 08:18
  • how to resolve this? – Sakshi Aug 01 '22 at 08:19
  • You need to do the same for the library paths. – Fra93 Aug 01 '22 at 08:19
  • I did that . now its showing this error:.\Objects\First_proj.axf: Error: L6218E: Undefined symbol assert_param (referred from stm32f0xx_adc.o). – Sakshi Aug 01 '22 at 08:22
  • You need to be sure that all the libraries you use are compiled when linking your program. This is somehow not happening, but without more info I can't help you. Check the log, check your paths – Fra93 Aug 01 '22 at 08:51

0 Answers0