ST意法半导体
直播中

刘杰

7年用户 1274经验值
私信 关注
[问答]

NucleoSTM32L152 + X-Nucleo-IKS01A3构建问题如何解决?

大家好
我是这件事的新手。
我的目的是为这个系统使用强度检测应用程序:NucleoSTM32L152 + X-Nucleo-IKS01A3 with ST32CubeMX version 6.21 and
ST32CubeIDE 版本 1.61。
我从https://www.st.com/content/st_com/en/products/embedded-software/mcu-mpu-embedded-software/stm32-embedded-software/stm32cube-expansion-packages/x-cube下载了 MEMS 示例  -mems1.html
我将应用程序 IntensityDetection(适用于 NucleoSTM32L152 和 X-Nucleo-IKS01A3)复制到我的工作区 (NucleoL152RE) 中。
我用 STM32CubeMx 打开了 IntensityDetection ioc 文件。我迁移到更新版本的 ioc 固件(如建议的那样),然后生成了代码。
我打开了 STM32CubeIDE 并进行了构建。
它返回这个:
c:programmazionestmicroelectronicsstm32cubeidestm32cubeidestm32cubeidepluginscom.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924tools arm-none-eabibinld.exe:应用程序/用户/motion_id_manager.o:在函数“MotionID_manager_init”中:
D:/0Prove/STM/Esempi/NucleoL152RE/IntensityDetection/Src/motion_id_manager.c:42: 未定义对“MotionID_Initialize”的引用
c:programmazionestmicroelectronicsstm32cubeidestm32cubeidestm32cubeidepluginscom.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924tools arm-none-eabibinld.exe:应用程序/用户/motion_id_manager.o:在函数“MotionID_manager_run”中:
D:/0Prove/STM/Esempi/NucleoL152RE/IntensityDetection/Src/motion_id_manager.c:53: 未定义对“MotionID_Update”的引用
c:programmazionestmicroelectronicsstm32cubeidestm32cubeidestm32cubeidepluginscom.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924tools arm-none-eabibinld.exe:应用程序/用户/motion_id_manager.o:在函数“MotionID_manager_get_version”中:
D:/0Prove/STM/Esempi/NucleoL152RE/IntensityDetection/Src/motion_id_manager.c:64: 未定义对“MotionID_GetLibVersion”的引用
我不明白发生了什么。






回帖(1)

邹俩珍

2023-1-4 10:34:27
在 C/C++ Build -> Settings -> MCU GCC Linker -> Library 中,路径正确,但库不正确。
我在 Libraries 中添加了 :MotionID_CM3_wc32_ot.a 它似乎可以工作。
举报

更多回帖

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