1

我正在尝试使用 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

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

4

1 回答 1

2

目标 STM32F401 不包含所有已发布的模块,因为您可能已经注意到缺少一些模块。因为它还不是官方支持的目标(http://www.mbed.com/en/development/hardware/boards/

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

于 2015-09-28T09:48:30.607 回答