yuzhuixin 发表于 2020-3-21 02:26:02

STM32H743移植Lora模块sx1278驱动 multiply defined 错误

       近期得空试用一下Lora模块,Ai-Thinker的Ra-01模块,SPI接口。工具为STM32CubeMX V5.5.0 +Keil V 5.29;sx1278驱动为官方STM32驱动。因手头现有电路板因素,计划使用STM32F051+SX1278实现Lora接收,用STM32H743+SX1278实现Lora发送。
STM32F051很顺利的完成驱动移植与接收功能。但在STM32H743上却碰上了链接错误。始终摸不着头脑。(H7的大炮打这个sx1278蚊子,活不好干)
      特来向大神们求助。
      附上整个工程文件(STM32CubeMX +Keil)。各位过路大神,得空帮忙研究研究。不胜感激!
      


linking...
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_copysign multiply defined (by sx1276.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_copysign multiply defined (by sx1276-lora.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_copysign multiply defined (by sx1276-loramisc.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_copysignf multiply defined (by sx1276.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_copysignf multiply defined (by sx1276-lora.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_copysignf multiply defined (by sx1276-loramisc.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_fabsf multiply defined (by sx1276.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_fabsf multiply defined (by sx1276-lora.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_fabsf multiply defined (by sx1276-loramisc.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_fmal multiply defined (by sx1276.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_fmal multiply defined (by sx1276-lora.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_fmal multiply defined (by sx1276-loramisc.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_llrintl multiply defined (by sx1276.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_llrintl multiply defined (by sx1276-lora.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_llrintl multiply defined (by sx1276-loramisc.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_llroundl multiply defined (by sx1276.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_llroundl multiply defined (by sx1276-lora.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_llroundl multiply defined (by sx1276-loramisc.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_lrintl multiply defined (by sx1276.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_lrintl multiply defined (by sx1276-lora.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_lrintl multiply defined (by sx1276-loramisc.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_lroundl multiply defined (by sx1276.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_lroundl multiply defined (by sx1276-lora.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_lroundl multiply defined (by sx1276-loramisc.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_nanl multiply defined (by sx1276.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_nanl multiply defined (by sx1276-lora.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_nanl multiply defined (by sx1276-loramisc.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_remquol multiply defined (by sx1276.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_remquol multiply defined (by sx1276-lora.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol __hardfp_remquol multiply defined (by sx1276-loramisc.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol _sqrt multiply defined (by sx1276.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol _sqrt multiply defined (by sx1276-lora.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol _sqrt multiply defined (by sx1276-loramisc.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol _sqrtf multiply defined (by sx1276.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol _sqrtf multiply defined (by sx1276-lora.o and radio.o).
stm32H7_sx1278_tx_dsw\stm32H7_sx1278_tx_dsw.axf: Error: L6200E: Symbol _sqrtf multiply defined (by sx1276-loramisc.o and radio.o).



yuzhuixin 发表于 2020-3-21 02:31:30

求助的附件下载咋还要扣分?又找不到在哪修改。新手发贴,见谅!

yuzhuixin 发表于 2020-3-21 10:33:00

补充说明一下,这些错误无法Keil定位。貌似是跟<math.h>库的调用有关。可却找不到错误原因。

pxforever 发表于 2020-4-1 18:32:15

是的,和math.h文件有关,还可能和使用了C99 mode相关,应该是代码某些头文件重复包含问题,加上math中的命名空间问题

yuzhuixin 发表于 2020-4-5 17:07:06

pxforever 发表于 2020-4-1 18:32
是的,和math.h文件有关,还可能和使用了C99 mode相关,应该是代码某些头文件重复包含问题,加上math中的命 ...

感谢!   可怎么解决呢?

anhuali 发表于 2020-8-5 09:16:43

大神这个问题解决了吗,想学习下
页: [1]
查看完整版本: STM32H743移植Lora模块sx1278驱动 multiply defined 错误