在STM32的System Workbench中没有此类文件错误

时间:2019-02-13 07:20:06

标签: eclipse eclipse-plugin stm32

我说错了 fatal error: stm32l0xx_hw_conf.h: No such file or directory 即使我在同一项目中加入了stm32l0xx_hw_conf.h。我该如何解决这个错误?

enter image description here

编辑:此错误的控制台输出是:

  

调用:MCU GCC编译器   / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Debug   arm-none-eabi-gcc -mcpu = cortex-m0plus -mthumb -mfloat-abi = soft   -DHAL_OK -DSTM32L0 -DSTM32L071xx -DUSE_MIROMICO_FMLR -DUSE_HAL_DRIVER -DUSE_BAND_868 -DSENSOR_ENABLED -DDEBUG -I“ / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub   -I / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc / Legacy   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc / Legacy”   -I / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc   -I / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc / Legacy   -I / home / dinesh / fmlr_bitbucket / lorawan / Drivers / STM32L0xx_HAL_Driver / Inc / Legacy   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc / Legacy”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc”   -I ../../../../../../../../ Drivers / CMSIS / Device / ST / STM32L1xx / Include -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / CMSIS / Device / ST / STM32L0xx / Include“   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / BSP / FMLR” -I ../../../../../../../../ Drivers / STM32L1xx_HAL_Driver / Inc-我” / home / dinesh / fmlr_bitbucket / lorawan / Drivers / STM32L0xx_HAL_Driver / Inc”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / CMSIS / Include” -I“ / home / dinesh / fmlr_bitbucket / lorawan / Middlewares / Third_Party / Lora / Crypto”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Middlewares / Third_Party / Lora / Mac”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Middlewares / Third_Party / Lora / Phy”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Middlewares / Third_Party / Lora / Utilities”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / BSP / Components / Common” -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / BSP / Components / sts_sht_21”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / BSP / Components / bmp280” -I“ / home / dinesh / fmlr_bitbucket / lorawan / Middlewares / Third_Party / Lora / Core”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / BSP / sx1272mb2das” -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / BSP / sx1272mb2das / Phy” -Og -g3 -Wall -fmessage-length = 0 -ffunction-sections -c -fmessage-length = 0 -MMD -MP -MF“ Projects / MultiSensorHub / src / debug.d” -MT“ Projects / MultiSensorHub / src / debug.o” -o“ Projects / MultiSensorHub / src /debug.o”   “ /home/dinesh/fmlr_bitbucket/lorawan/Projects/Multi/Applications/LoRa/MultiSensorHub/src/debug.c”   / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Debug   arm-none-eabi-gcc -mcpu = cortex-m0plus -mthumb -mfloat-abi = soft   -DHAL_OK -DSTM32L0 -DSTM32L071xx -DUSE_MIROMICO_FMLR -DUSE_HAL_DRIVER -DUSE_BAND_868 -DSENSOR_ENABLED -DDEBUG -I“ / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub   -I / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc / Legacy   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc / Legacy”   -I / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc   -I / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc / Legacy   -I / home / dinesh / fmlr_bitbucket / lorawan / Drivers / STM32L0xx_HAL_Driver / Inc / Legacy   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc / Legacy”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc”   -I ../../../../../../../../ Drivers / CMSIS / Device / ST / STM32L1xx / Include -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / CMSIS / Device / ST / STM32L0xx / Include“   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / BSP / FMLR” -I ../../../../../../../../ Drivers / STM32L1xx_HAL_Driver / Inc-我” / home / dinesh / fmlr_bitbucket / lorawan / Drivers / STM32L0xx_HAL_Driver / Inc”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / CMSIS / Include” -I“ / home / dinesh / fmlr_bitbucket / lorawan / Middlewares / Third_Party / Lora / Crypto”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Middlewares / Third_Party / Lora / Mac”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Middlewares / Third_Party / Lora / Phy”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Middlewares / Third_Party / Lora / Utilities”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / BSP / Components / Common” -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / BSP / Components / sts_sht_21”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / BSP / Components / bmp280” -I“ / home / dinesh / fmlr_bitbucket / lorawan / Middlewares / Third_Party / Lora / Core”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / BSP / sx1272mb2das” -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / BSP / sx1272mb2das / Phy” -Og -g3 -Wall -fmessage-length = 0 -ffunction-sections -c -fmessage-length = 0 -MMD -MP -MF“ Projects / MultiSensorHub / src / hw_gpio.d” -MT“ Projects / MultiSensorHub / src / hw_gpio.o” -o“ Projects / MultiSensorHub / src /hw_gpio.o”   “ /home/dinesh/fmlr_bitbucket/lorawan/Projects/Multi/Applications/LoRa/MultiSensorHub/src/hw_gpio.c”   / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Debug   arm-none-eabi-gcc -mcpu = cortex-m0plus -mthumb -mfloat-abi = soft   -DHAL_OK -DSTM32L0 -DSTM32L071xx -DUSE_MIROMICO_FMLR -DUSE_HAL_DRIVER -DUSE_BAND_868 -DSENSOR_ENABLED -DDEBUG -I“ / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub   -I / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc / Legacy   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc / Legacy”   -I / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc   -I / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc / Legacy   -I / home / dinesh / fmlr_bitbucket / lorawan / Drivers / STM32L0xx_HAL_Driver / Inc / Legacy   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc / Legacy”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Projects / Multi / Applications / LoRa / MultiSensorHub / SW4STM32 / Miromico-FMLR / Drivers / STM32L0xx_HAL_Driver / Inc”   -I ../../../../../../../../ Drivers / CMSIS / Device / ST / STM32L1xx / Include -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / CMSIS / Device / ST / STM32L0xx / Include“   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / BSP / FMLR” -I ../../../../../../../../ Drivers / STM32L1xx_HAL_Driver / Inc-我” / home / dinesh / fmlr_bitbucket / lorawan / Drivers / STM32L0xx_HAL_Driver / Inc”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / CMSIS / Include” -I“ / home / dinesh / fmlr_bitbucket / lorawan / Middlewares / Third_Party / Lora / Crypto”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Middlewares / Third_Party / Lora / Mac”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Middlewares / Third_Party / Lora / Phy”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Middlewares / Third_Party / Lora / Utilities”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / BSP / Components / Common” -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / BSP / Components / sts_sht_21”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / BSP / Components / bmp280” -I“ / home / dinesh / fmlr_bitbucket / lorawan / Middlewares / Third_Party / Lora / Core”   -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / BSP / sx1272mb2das” -I“ / home / dinesh / fmlr_bitbucket / lorawan / Drivers / BSP / sx1272mb2das / Phy” -Og -g3 -Wall -fmessage-length = 0 -ffunction-sections -c -fmessage-length = 0 -MMD -MP -MF“ Projects / MultiSensorHub / src / bsp.d” -MT“ Projects / MultiSensorHub / src / bsp.o” -o“ Projects / MultiSensorHub / src / bsp.o” -o“ Projects / MultiSensorHub / src /bsp.o”   “ /home/dinesh/fmlr_bitbucket/lorawan/Projects/Multi/Applications/LoRa/MultiSensorHub/src/bsp.c”   在包含的文件中   /home/dinesh/fmlr_bitbucket/lorawan/Projects/Multi/Applications/LoRa/MultiSensorHub/inc/hw.h:72:0,来自   /home/dinesh/fmlr_bitbucket/lorawan/Projects/Multi/Applications/LoRa/MultiSensorHub/src/bsp.c:50:   /home/dinesh/fmlr_bitbucket/lorawan/Projects/Multi/Applications/LoRa/MultiSensorHub/inc/hw_conf.h:123:10:   严重错误:stm32l0xx_hw_conf.h:没有这样的文件或目录#include   “ stm32l0xx_hw_conf.h”

2 个答案:

答案 0 :(得分:1)

您需要在项目设置(如果是托管项目)中设置包含文件的路径,如果不是,则设置makefile的路径。将文件添加到项目中不会将其添加到包含路径中。

答案 1 :(得分:0)

可能需要重新索引项目。在Eclipse中,您可以右键单击该项目,然后选择Index->​​ Rebuild。