gpt4 book ai didi

microcontroller - 无法在 openOCD 中启用 STLink

转载 作者:行者123 更新时间:2023-12-03 09:09:43 26 4
gpt4 key购买 nike

我正在尝试通过配置 openOCD 来启用 STLink。它说它找不到我的 libusb-1.x 文件,即使它是通过安装 openOCD 来安装的,因为它是一个依赖项。我不知道该怎么办

这是错误:

checking for LIBUSB1... no
configure: WARNING: libusb-1.x not found, trying legacy libusb-0.1 as
a fallback; consider installing libusb-1.x instead
checking for LIBUSB0... no
checking for HIDAPI... no
checking for HIDAPI... no
checking for HIDAPI... no
checking for LIBFTDI... no
checking for LIBFTDI... no
checking for LIBJAYLINK... no
configure: error: libusb-1.x is required for the ST-Link JTAG Programmer

这是我的输入:

./configure --enable-stlink

我可以做什么来解决这个问题?

谢谢

最佳答案

您可以尝试通过以下方式安装libusb

sudo apt-get install libusb-1.0-0-dev

关于microcontroller - 无法在 openOCD 中启用 STLink,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43565009/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com