楼主,按你的做了,出现这么多错误
Rebuild target 'Target 1'
compiling main.c...
compiling main.c...
compiling main.c...
compiling misc.c...
STM32F4xx_StdPeriph_Driver\src\misc.c(76): error: #5: cannot open source input file "misc.h": No such file or directory
#include "misc.h"
STM32F4xx_StdPeriph_Driver\src\misc.c: 0 warnings, 1 error
compiling stm32f4xx_adc.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_adc.c(106): error: #5: cannot open source input file "stm32f4xx_adc.h": No such file or directory
#include "stm32f4xx_adc.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_adc.c: 0 warnings, 1 error
compiling stm32f4xx_can.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_can.c(84): error: #5: cannot open source input file "stm32f4xx_can.h": No such file or directory
#include "stm32f4xx_can.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_can.c: 0 warnings, 1 error
compiling stm32f4xx_crc.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_crc.c(29): error: #5: cannot open source input file "stm32f4xx_crc.h": No such file or directory
#include "stm32f4xx_crc.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_crc.c: 0 warnings, 1 error
compiling stm32f4xx_cryp.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_cryp.c(164): error: #5: cannot open source input file "stm32f4xx_cryp.h": No such file or directory
#include "stm32f4xx_cryp.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_cryp.c: 0 warnings, 1 error
compiling stm32f4xx_cryp_aes.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_cryp_aes.c(55): error: #5: cannot open source input file "stm32f4xx_cryp.h": No such file or directory
#include "stm32f4xx_cryp.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_cryp_aes.c: 0 warnings, 1 error
compiling stm32f4xx_cryp_des.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_cryp_des.c(48): error: #5: cannot open source input file "stm32f4xx_cryp.h": No such file or directory
#include "stm32f4xx_cryp.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_cryp_des.c: 0 warnings, 1 error
compiling stm32f4xx_cryp_tdes.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_cryp_tdes.c(48): error: #5: cannot open source input file "stm32f4xx_cryp.h": No such file or directory
#include "stm32f4xx_cryp.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_cryp_tdes.c: 0 warnings, 1 error
compiling stm32f4xx_dac.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dac.c(131): error: #5: cannot open source input file "stm32f4xx_dac.h": No such file or directory
#include "stm32f4xx_dac.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dac.c: 0 warnings, 1 error
compiling stm32f4xx_dbgmcu.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dbgmcu.c(29): error: #5: cannot open source input file "stm32f4xx_dbgmcu.h": No such file or directory
#include "stm32f4xx_dbgmcu.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dbgmcu.c: 0 warnings, 1 error
compiling stm32f4xx_dcmi.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dcmi.c(86): error: #5: cannot open source input file "stm32f4xx_dcmi.h": No such file or directory
#include "stm32f4xx_dcmi.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dcmi.c: 0 warnings, 1 error
compiling stm32f4xx_dma2d.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dma2d.c(58): error: #5: cannot open source input file "stm32f4xx_dma2d.h": No such file or directory
#include "stm32f4xx_dma2d.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dma2d.c: 0 warnings, 1 error
compiling stm32f4xx_dma.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dma.c(124): error: #5: cannot open source input file "stm32f4xx_dma.h": No such file or directory
#include "stm32f4xx_dma.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dma.c: 0 warnings, 1 error
compiling stm32f4xx_exti.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_exti.c(67): error: #5: cannot open source input file "stm32f4xx_exti.h": No such file or directory
#include "stm32f4xx_exti.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_exti.c: 0 warnings, 1 error
compiling stm32f4xx_flash.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_flash.c(72): error: #5: cannot open source input file "stm32f4xx_flash.h": No such file or directory
#include "stm32f4xx_flash.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_flash.c: 0 warnings, 1 error
compiling stm32f4xx_flash_ramfunc.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_flash_ramfunc.c(58): error: #5: cannot open source input file "stm32f4xx_flash_ramfunc.h": No such file or directory
#include "stm32f4xx_flash_ramfunc.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_flash_ramfunc.c: 0 warnings, 1 error
compiling stm32f4xx_fmc.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fmc.c(36): error: #5: cannot open source input file "stm32f4xx_fmc.h": No such file or directory
#include "stm32f4xx_fmc.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fmc.c: 0 warnings, 1 error
compiling stm32f4xx_fsmc.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(35): error: #5: cannot open source input file "stm32f4xx_fsmc.h": No such file or directory
#include "stm32f4xx_fsmc.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c: 0 warnings, 1 error
compiling stm32f4xx_gpio.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_gpio.c(84): error: #5: cannot open source input file "stm32f4xx_gpio.h": No such file or directory
#include "stm32f4xx_gpio.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_gpio.c: 0 warnings, 1 error
compiling stm32f4xx_hash.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_hash.c(123): error: #5: cannot open source input file "stm32f4xx_hash.h": No such file or directory
#include "stm32f4xx_hash.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_hash.c: 0 warnings, 1 error
compiling stm32f4xx_hash_md5.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_hash_md5.c(47): error: #5: cannot open source input file "stm32f4xx_hash.h": No such file or directory
#include "stm32f4xx_hash.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_hash_md5.c: 0 warnings, 1 error
compiling stm32f4xx_hash_sha1.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_hash_sha1.c(47): error: #5: cannot open source input file "stm32f4xx_hash.h": No such file or directory
#include "stm32f4xx_hash.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_hash_sha1.c: 0 warnings, 1 error
compiling stm32f4xx_i2c.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_i2c.c(92): error: #5: cannot open source input file "stm32f4xx_i2c.h": No such file or directory
#include "stm32f4xx_i2c.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_i2c.c: 0 warnings, 1 error
compiling stm32f4xx_iwdg.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_iwdg.c(85): error: #5: cannot open source input file "stm32f4xx_iwdg.h": No such file or directory
#include "stm32f4xx_iwdg.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_iwdg.c: 0 warnings, 1 error
compiling stm32f4xx_ltdc.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_ltdc.c(76): error: #5: cannot open source input file "stm32f4xx_ltdc.h": No such file or directory
#include "stm32f4xx_ltdc.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_ltdc.c: 0 warnings, 1 error
compiling stm32f4xx_pwr.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_pwr.c(38): error: #5: cannot open source input file "stm32f4xx_pwr.h": No such file or directory
#include "stm32f4xx_pwr.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_pwr.c: 0 warnings, 1 error
compiling stm32f4xx_rcc.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_rcc.c(59): error: #5: cannot open source input file "stm32f4xx_rcc.h": No such file or directory
#include "stm32f4xx_rcc.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_rcc.c: 0 warnings, 1 error
compiling stm32f4xx_rng.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_rng.c(56): error: #5: cannot open source input file "stm32f4xx_rng.h": No such file or directory
#include "stm32f4xx_rng.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_rng.c: 0 warnings, 1 error
compiling stm32f4xx_rtc.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_rtc.c(285): error: #5: cannot open source input file "stm32f4xx_rtc.h": No such file or directory
#include "stm32f4xx_rtc.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_rtc.c: 0 warnings, 1 error
compiling stm32f4xx_sai.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_sai.c(126): error: #5: cannot open source input file "stm32f4xx_sai.h": No such file or directory
#include "stm32f4xx_sai.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_sai.c: 0 warnings, 1 error
compiling stm32f4xx_sdio.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_sdio.c(156): error: #5: cannot open source input file "stm32f4xx_sdio.h": No such file or directory
#include "stm32f4xx_sdio.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_sdio.c: 0 warnings, 1 error
compiling stm32f4xx_spi.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_spi.c(159): error: #5: cannot open source input file "stm32f4xx_spi.h": No such file or directory
#include "stm32f4xx_spi.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_spi.c: 0 warnings, 1 error
compiling stm32f4xx_syscfg.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_syscfg.c(50): error: #5: cannot open source input file "stm32f4xx_syscfg.h": No such file or directory
#include "stm32f4xx_syscfg.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_syscfg.c: 0 warnings, 1 error
compiling stm32f4xx_tim.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_tim.c(119): error: #5: cannot open source input file "stm32f4xx_tim.h": No such file or directory
#include "stm32f4xx_tim.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_tim.c: 0 warnings, 1 error
compiling stm32f4xx_usart.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_usart.c(92): error: #5: cannot open source input file "stm32f4xx_usart.h": No such file or directory
#include "stm32f4xx_usart.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_usart.c: 0 warnings, 1 error
compiling stm32f4xx_wwdg.c...
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_wwdg.c(84): error: #5: cannot open source input file "stm32f4xx_wwdg.h": No such file or directory
#include "stm32f4xx_wwdg.h"
STM32F4xx_StdPeriph_Driver\src\stm32f4xx_wwdg.c: 0 warnings, 1 error
assembling startup_stm32f401xe.s...
compiling system_stm32f4xx.c...
".\Objects\LED.axf" - 36 Error(s), 0 Warning(s).
Target not created.