Hi, I've downloaded a project from the link placed on Youtube. I've opened it on Keil and when compiling I receive such errors
*** Using Compiler 'V5.06 update 5 (build 528)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Build target 'Target 1' assembling startup_stm32f30x.s... compiling DelayDemo.c... ..\DelayDemo\stm32f30x_conf.h(34): error: #5: cannot open source input file "stm32f30x_adc.h": No such file or directory #include "stm32f30x_adc.h" DelayDemo.c: 0 warnings, 1 error compiling system_stm32f30x.c... ..\DelayDemo\stm32f30x_conf.h(34): error: #5: cannot open source input file "stm32f30x_adc.h": No such file or directory #include "stm32f30x_adc.h" system_stm32f30x.c: 0 warnings, 1 error compiling stm32f3_discovery.c... "no source": Error: #5: cannot open source input file "..\Utilities\STM32F3_Discovery\stm32f3_discovery.c": No such file or directory ..\Utilities\STM32F3_Discovery\stm32f3_discovery.c: 0 warnings, 1 error compiling Accelerometer.c... Accelerometer.c(10): error: #5: cannot open source input file "stm32f3_discovery_lsm303dlhc.h": No such file or directory #include "stm32f3_discovery_lsm303dlhc.h" Accelerometer.c: 0 warnings, 1 error compiling USARTLib.c... USARTLib.c(6): error: #5: cannot open source input file "stm32f30x_misc.h": No such file or directory #include "stm32f30x_misc.h" USARTLib.c: 0 warnings, 1 error compiling Gyro.c... Gyro.c(9): error: #5: cannot open source input file "stm32f3_discovery_l3gd20.h": No such file or directory #include "stm32f3_discovery_l3gd20.h" Gyro.c: 0 warnings, 1 error compiling stm32f30x_tim.c... "no source": Error: #5: cannot open source input file "..\Libraries\STM32F30x_StdPeriph_Driver\src\stm32f30x_tim.c": No such file or directory ..\Libraries\STM32F30x_StdPeriph_Driver\src\stm32f30x_tim.c: 0 warnings, 1 error compiling KalmanFillter.c... "no source": Error: #5: cannot open source input file "..\Libraries\STM32F30x_StdPeriph_Driver\src\stm32f30x_usart.c": No such file or directory ..\Libraries\STM32F30x_StdPeriph_Driver\src\stm32f30x_usart.c: 0 warnings, 1 error
compiling stm32f3_discovery_lsm303dlhc.c... "no source": Error: #5: cannot open source input file "..\Utilities\STM32F3_Discovery\stm32f3_discovery_lsm303dlhc.c": No such file or directory ..\Utilities\STM32F3_Discovery\stm32f3_discovery_lsm303dlhc.c: 0 warnings, 1 error compiling stm32f30x_spi.c... "no source": Error: #5: cannot open source input file "..\Libraries\STM32F30x_StdPeriph_Driver\src\stm32f30x_spi.c": No such file or directory ..\Libraries\STM32F30x_StdPeriph_Driver\src\stm32f30x_spi.c: 0 warnings, 1 error ".\Output\DelayDemo.axf" - 5 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:03
I get more errors like these ones. How can I add missing files to the project? i.imgur.com/LQkS5JB.png
See http://www.keil.com/forum/63242/ - common reasons why a compiler can't open a header (or headers)
Ok, I've got a library downloaded from the link above. Now my question is where all the files should be placed?
it doesn't actually matter; you just configure your project to tell it where they are - as described in the linked thread.
However, if you have an existing project, it would make sense to put the library wherever that project is expecting it!
It works!
Thanks for all messages. Greetings