Problem running simple empty function in STM32F407 KEIL

Thread Starter

yef smith

Joined Aug 2, 2020
755
Hello, i have bought STM32F4DISCOVERY STM32F4 STM32F407 MCU, i have installed keil and imported keil files and libraries by some video manual.
but when i try to compile it i get a ton of errors shown bellow.
i dont know where to start the fixing.
Could you please help me with guidance in keil?
Code:
#include "stm32f4xx.h"

int main(void)
{
while(1)
{

}
}
1612042091830.png
1612042119901.png
1612042141490.png
Code:
Build started: Project: less1
*** Using Compiler 'V6.15', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
Build target 'Target 1'
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/misc.c(76): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\misc.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling misc.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_crc.c(29): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_crc.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_crc.c...
main.c(1): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling main.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cec.c(93): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_cec.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_cec.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp.c(164): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_cryp.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_cryp.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_can.c(84): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_can.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_can.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_adc.c(106): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_adc.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_adc.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_aes.c(55): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_cryp.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_cryp_aes.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_des.c(48): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_cryp.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_cryp_des.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_tdes.c(48): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_cryp.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_cryp_tdes.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_dac.c(131): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_dac.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_dac.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_dbgmcu.c(29): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_dbgmcu.h(37): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_dbgmcu.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_dcmi.c(86): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_dcmi.h(37): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_dcmi.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_dfsdm.c(44): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_rcc.h(37): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_dfsdm.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_dma.c(124): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_dma.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_dma.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_dma2d.c(58): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_dma2d.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_dma2d.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_dsi.c(44): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_dsi.h(37): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_dsi.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_exti.c(68): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_exti.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_exti.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_flash.c(72): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_flash.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_flash.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_flash_ramfunc.c(58): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_flash_ramfunc.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_flash_ramfunc.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_fmc.c(36): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_fmc.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_fmc.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_fmpi2c.c(79): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_fmpi2c.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_fmpi2c.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_fsmc.c(35): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_fsmc.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_fsmc.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_gpio.c(84): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_gpio.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_gpio.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_hash.c(123): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_hash.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_hash.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_hash_md5.c(47): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_hash.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_hash_md5.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_hash_sha1.c(47): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_hash.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_hash_sha1.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_i2c.c(92): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_i2c.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_i2c.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_iwdg.c(85): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_iwdg.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_iwdg.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_lptim.c(96): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_lptim.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_lptim.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_ltdc.c(76): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_ltdc.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_ltdc.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_pwr.c(38): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_pwr.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_pwr.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_qspi.c(82): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_qspi.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_qspi.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_rcc.c(59): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_rcc.h(37): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_rcc.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_rng.c(56): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_rng.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_rng.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_sai.c(126): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_sai.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_sai.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_rtc.c(285): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_rtc.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_rtc.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_sdio.c(156): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_sdio.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_sdio.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_spdifrx.c(34): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_spdifrx.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_spdifrx.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_syscfg.c(50): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_syscfg.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_syscfg.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_spi.c(159): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_spi.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_spi.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_tim.c(119): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_tim.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_tim.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_usart.c(92): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_usart.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_usart.c...
pl/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_wwdg.c(84): warning: In file included from...
./pl/Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_wwdg.h(38): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling stm32f4xx_wwdg.c...
RTE/Device/STM32F407VGTx/system_stm32f4xx.c(49): warning: In file included from...
./pl/Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(12027): error: 'stm32f4xx_conf.h' file not found
#include "stm32f4xx_conf.h"
^~~~~~~~~~~~~~~~~~
1 error generated.
compiling system_stm32f4xx.c...
".\Objects\less1.axf" - 45 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:04
 

djsfantasi

Joined Apr 11, 2010
9,163
Most of those errors indicate that the compiler cannot find many files with a .h extension. Do you have them? If so, where are they located (full path)?

I’m not familiar with these libraries, but note that you show many files with a .c extension. Are you using the correct file names in your includes?

In summary
  1. Do you have the specified files?
  2. Are the file names correct?
 

MrChips

Joined Oct 2, 2009
30,809
Your Project is missing the required header and library files.
The quickest way to get started is to look for a Keil example in your downloaded folders and start from there.
They would have set up the example project for you.
 

BobaMosfet

Joined Jul 1, 2009
2,113
This is one of the typical problems associated with companies who no longer make compilers with default project and compiler-library directory settings.
 
Top