我使用
STM32CubeIDE 1.6.1 和 STM32_WL V1.0.0 创建 LoRaWAN_End_Node 示例项目。当我编辑 IOC 文件以简单地添加对 CRC 的支持并重新生成源代码时,我无法再构建示例。
我收到大量重复符号错误 - 例如:
- C:/Users/danam/STM32CubeIDE/workspace_1.6.1/LoRaWAN_End_Node/Middlewares/Third_Party/LoRaWAN/Utilities/utilities.c:73: multiple definition of `memcpyr'; Middlewares/LoRaWAN/utilities.o:C:/Users/danam/STM32CubeIDE/workspace_1.6.1/LoRaWAN_End_Node/Middlewares/Third_Party/LoRaWAN/Utilities/utilities.c:73: first defined here
- c:ststm32cubeide_1.5.1stm32cubeidepluginscom.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924toolsarm-none-eabibinld.exe: Middlewares/LoRaWAN/Utilities/utilities.o: in function `memset1':
- C:/Users/danam/STM32CubeIDE/workspace_1.6.1/LoRaWAN_End_Node/Middlewares/Third_Party/LoRaWAN/Utilities/utilities.c:82: multiple definition of `memset1'; Middlewares/LoRaWAN/utilities.o:C:/Users/danam/STM32CubeIDE/workspace_1.6.1/LoRaWAN_End_Node/Middlewares/Third_Party/LoRaWAN/Utilities/utilities.c:82: first defined here
- c:ststm32cubeide_1.5.1stm32cubeidepluginscom.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924toolsarm-none-eabibinld.exe: Middlewares/LoRaWAN/Utilities/utilities.o: in function `Nibble2HexChar':
- C:/Users/danam/STM32CubeIDE/workspace_1.6.1/LoRaWAN_End_Node/Middlewares/Third_Party/LoRaWAN/Utilities/utilities.c:90: multiple definition of `Nibble2HexChar'; Middlewares/LoRaWAN/utilities.o:C:/Users/danam/STM32CubeIDE/workspace_1.6.1/LoRaWAN_End_Node/Middlewares/Third_Party/LoRaWAN/Utilities/utilities.c:90: first defined here
- collect2.exe: error: ld returned 1 exit status
- make: *** [makefile:79: LoRaWAN_End_Node.elf] Error 1
- "make -j16 all" terminated with exit code 2. Build might be incomplete.
我如何以不会发生这种情况的方式使用这些工具?