ST意法半导体
直播中

张生

9年用户 836经验值
擅长:光电显示 接口/总线/驱动
私信 关注
[问答]

编译st25r3916发现源文件时缺少头文件是什么原因?

我从这里https://www.st.com/content/st_co ... /stsw-st25r011.html下载了 st25r3916 发现源文件。
源实际上不编译,因为很多包含丢失,我打开位于“STSW-
ST25R011ST25R3916_DISCO_v1.1.0ProjectsST25-DiscoveryDemonstrationsST25R3916DemoTrueSTUDIOST25R3916-DISCO.project”的项目文件使用 STM32CubeIDE。
是否有导入此类文件的指南?如果我只导入需要的包含(并且它涉及大量工作,因为它们太多了),很多同名但内容不同的文件被导入,导致错误。
非常感谢你,
问候
这是错误日志
  • 12:42:33 **** Build of configuration Debug for project ST25R3916-DISCO Firmware ****
  • make all
  • arm-none-eabi-gcc "C:/ST25R3916_DISCO_v1.1.0/Middlewares/ST/p2p/lib_llcp.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DUSE_HAL_DRIVER '-DUSE_MB1414_B=1' '-DMCU_FW_VERSION_EXTRA=B' '-DRFAL_ANALOG_CONFIG_CUSTOM=1' -DSTM32L476xx -DUSE_LCD -DUSE_ST25DV '-DMENU_DEMO_CENTER_ICONS=1' '-DUSE_LOGGER=2' '-DST25DX=1' '-D__weak=__attribute__((weak))' '-D__packed=__attribute__((__packed__))' -c -I"/Projects/ST25-Discovery/Demonstrations/ST25R3916Demo/inc" -I"/Drivers/CMSIS/Device/ST/STM32L4xx/Include" -I"/Drivers/CMSIS/Device/ST/STM32L4xx/Include" -I"/Drivers/CMSIS/Include" -I"/Middlewares/ST/fw_3916/DISCO-STM32L4x6/Drivers/STM32L4xx_HAL_Driver/Inc" -I"/Drivers/BSP/Components/Common" -I"/Drivers/BSP/Components/stmpe811" -I"/Drivers/BSP/Components/ad5112" -I"/Drivers/BSP/Components/ili9341_cube" -I"/Drivers/BSP/Components/ST25DV" -I"/Drivers/BSP/ST25-Discovery" -I"/Middlewares/ST/STM32_BlueNRG/SimpleBlueNRG_HCI/includes" -I"/Middlewares/ST/STM32_BlueNRG/Interface" -I"/Middlewares/ST/STM32_SPWF01SA/Utils" -I"/Middlewares/ST/STM32_SPWF01SA/Inc" -I"/Middlewares/Third_Party/LibJPEG/include" -I"/Middlewares/ST/menu_demo" -I"/Middlewares/ST/lib_NFC/lib_NDEF/inc" -I"/Middlewares/ST/lib_nfc/common/inc" -I"/Utilities/Fonts" -I"/Projects/ST25-Discovery/Demonstrations/ST25R3916Demo/Picture" -I"/Middlewares/ST/RFAL/include" -I"/Middlewares/ST/RFAL/source/st25r3916" -I"/Middlewares/ST/Reader_common/firmware/STM/utils/Inc" -I"/Middlewares/ST/RFAL/source" -I"/Middlewares/ST/Reader_common/firmware/STM/STM32/Inc" -I"/Middlewares/ST/BlueNRG_Host_HID_Profile_1.1.0BETA/Projects/Bluetooth_LE/Profile_Framework/includes" -I"/Middlewares/ST/fw_3916/DISCO-STM32L4x6/Inc" -I"/Middlewares/ST/fw_3916/DISCO-STM32L4x6/Drivers/BSP/DISCO-STM32L4x6" -I"/Middlewares/ST/fw_3916/DISCO-STM32L4x6/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" -I"/Middlewares/ST/fw_3916/DISCO-STM32L4x6/Middlewares/ST/STM32_USB_Device_Library/Class/CustomHID/Inc" -I"/Middlewares/ST/STM32_Cryptographic/Inc" -I"/Middlewares/ST/p2p" -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"p2p/lib_llcp.d" -MT"p2p/lib_llcp.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -o "p2p/lib_llcp.o"
  • C:/ST25R3916_DISCO_v1.1.0/Middlewares/ST/p2p/lib_llcp.c:316:10: fatal error: st_errno.h: No such file or directory
  • #include "st_errno.h"
  •           ^~~~~~~~~~~~
  • compilation terminated.
  • make: *** [p2p/subdir.mk:21: p2p/lib_llcp.o] Error 1
  • "make all" terminated with exit code 2. Build might be incomplete.
  • 12:42:36 Build Failed. 2 errors, 0 warnings. (took 2s.855ms)









回帖(1)

李旭彤

2023-1-12 13:52:53
我刚刚发现您正在使用STM32CubeIDE打开TrueStudio项目。到目前为止,我忽略了这一点。我尝试了同样的方法,但对我来说它说“无法运行程序“make”:启动失败”。
查看输出似乎包含路径是乱码 - 缺少相对或绝对路径前缀。您可以尝试解决此问题,但我不确定您还会遇到多少问题。
举报

更多回帖

发帖
×
20
完善资料,
赚取积分