使用 STM32F401 解决 Yotta 缺少模块错误

Resolve missing module error for Yotta with STM32F401

我第一次使用 mbed (mbed.org) 尝试使用 OS X 进行开发。我正在使用 ST Microelectronics STM32F401 Nucleo 开发板,并尝试遵循 "Getting Started" 指南。我正在按照 "Your First Application"

中的说明进行操作

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

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

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

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