【发布时间】:2021-01-23 12:33:47
【问题描述】:
我按照关于显示滚动文本 (https://blog.adacore.com/ada-for-microbit-part-1-getting-started) 的 adacore 教程进行操作,但无法在我的 microbit 上运行。
也许我的 microbit 是尚未支持的更新版本?我怀疑这是因为我第一次尝试闪存到板上时不支持我的板 id (9904)。我使用了此处描述的修复:Unable to get the Ada scrolling text demo working on the microbit on GNAT 2019 community edition 并在 board_ids.py 中添加了以下行:
"9904": BoardInfo( "micro:bit", "nrf51", "l1_microbit.bin", ),
执行此操作后,我能够将滚动文本示例闪烁到板上,但出现以下警告:
0000601:WARNING:common:STLink and CMSIS-DAPv2 probes are not supported because no libusb library was found.
现在的问题是只有一个 LED 亮起。似乎单个 LED 根据其闪烁模式根据输入文本正确亮起。我不确定 libusb 警告是否是导致问题的原因。
我使用的是 GNAT 2020 版本的 x86_64 和 arm-elf。我已经坚持了一段时间,希望有任何建议。谢谢!
编辑:
我在 Windows 10 上。
我认为问题与 pyocd/libusb 无关,因为在确保我在与 GNAT 中的 python exe 相同的目录中有一个 libusb dll 之后,我在闪烁到板时不再收到任何警告。滚动文本示例仍然不起作用(只有一个 LED 亮起)。
我也在另一台计算机上尝试过,结果相同。
来自https://github.com/AdaCore/Ada_Drivers_Library/issues/379 看来 ada 驱动程序库不支持新版本的开发板?但这个问题与加速度计版本有关,我不确定这是否是我的原因。
【问题讨论】:
-
在 Debian 上,
sudo apt-get install libusb,但我不知道你有哪个操作系统/发行版。 -
抱歉,我在 Windows 上。
标签: ada libusb bbc-microbit