使用STM32F401解决Yotta的缺失模块错误

时间:2015-09-26 18:47:21

标签: mbed

我正在尝试使用OS X首次使用mbed进行开发(mbed.org)。我正在使用ST Microelectronics STM32F401 Nucleo板,并尝试按照“入门”指南进行操作。我正按照“你的第一份申请”中的说明进行操作

http://docs.mbed.com/docs/getting-started-mbed-os/en/latest/FirstProjectmbedOS/

在添加依赖项的步骤之前,似乎找不到东西。

我检查了yotta_modules目录,看看是否存在所需的模块。它们不显示为现有的。

$ yotta install mbed-drivers
info: dependency mbed-drivers is already present in module.json
info: get versions for mbed-hal-st-stm32f401re
info: get versions for cmsis-core-st-stm32f401xe
error: Failed to satisfy dependencies of       /Users/xxx/Documents/blinky/yotta_modules/mbed-hal-st-stm32f4:
error: mbed-hal-st-stm32f401re does not exist in the modules registry. Check that the name is correct, and that it has been published.
error: Failed to satisfy dependencies of /Users/xxx/Documents/blinky/yotta_modules/cmsis-core-stm32f4:
error: cmsis-core-st-stm32f401xe does not exist in the modules registry.    Check that the name is correct, and that it has been published.

我看了一下安装了什么模块,这就是我得到的

$ ls yotta_modules/
cmsis-core      core-util       mbed-hal-st     minar-platform
cmsis-core-st       dlmalloc        mbed-hal-st-stm32cubef4 ualloc
cmsis-core-stm32f4  mbed-drivers        mbed-hal-st-stm32f4 uvisor-lib
compiler-polyfill   mbed-hal        minar

知道如何获取丢失的模块吗?

1 个答案:

答案 0 :(得分:2)

目标STM32F401不包含所有已发布的模块,因为您可能已经注意到某些模块丢失了。因为它尚未成为官方支持的目标(http://www.mbed.com/en/development/hardware/boards/

这个拉取请求为它添加了缺少的cmsis-core模块:https://github.com/ARMmbed/cmsis-core-stm32f4/pull/9。为了能够使用它,您可以克隆那些共享的存储库并使用yotta链接(请在yotta docs页面中查看命令描述)。您可以在本地链接该模块。