ST-Link V2—被检测为USB质量存储设备

发布于 2025-01-17 19:07:59 字数 1703 浏览 5 评论 0原文

我有一个连接到 Windows PC 的 STM32VLDISCOVERY 板。

该板具有集成的 ST-LINK V2 编程器/基于STM32F103C8微控制器的调试器,实际与PC通信。但该微控制器被认为是“USB 海量存储设备”。在设备管理器中,它位于磁盘驱动器/STM32

如果我右键单击它并按照属性/驱动程序/驱动程序详细信息/进行操作,则不会 ST 驱动程序已列出。此设备仅使用一些 Windows 默认驱动程序:

在此处输入图像描述

现在我断开了开发板的连接。

如文档中所述,我们只需安装 ST-LINK V2 Windows 驱动程序 STSW-LINK009 在我们将板连接到 个人电脑。

我下载了驱动程序,将其解压缩,然后以管理员身份运行 stlink_winusb_install.bat 脚本。这将安装驱动程序,并使 PC 能够与 STM32F103C8 正常通信。

我将板连接回工作站 PC,但没有任何变化。该板仍被视为USB 大容量存储设备。在设备管理器中,它仍然位于磁盘驱动器/STM32下,并且*属性/驱动程序/驱动程序详细信息/未列出 ST 驱动程序。同样只有 Windows 驱动程序。

安装驱动程序并将开发板连接到 PC(作为 USB 大容量存储设备)后,我尝试使用 STSW-LINK007 板固件更新实用程序无法连接到板:

在此处输入图像描述

如何克服此问题?

I have an STM32VLDISCOVERY board that I connected to my Windows PC.

This board has an integrated ST-LINK V2 programmer / debugger based on the STM32F103C8 microcontroller which actually communicates with the PC. But this microcontroller is recognized as a "USB mass storage device". In the Device Manager, it is located under Disk drives/STM32.

If I right-click it and follow Properties/Driver/Driver Details/, no ST drivers are listed. There are only some Windows default drivers used for this device:

Enter image description here

Now I disconnect the board.

As stated in the documentation, we have to only install the ST-LINK V2 Windows driver STSW-LINK009 before we connect the board to a PC.

I downloaded the driver, uncompressed it, and ran the stlink_winusb_install.bat script as the administrator. This installs the driver and should enable the PC to communicate with STM32F103C8 as it should.

I connect the board back to the workstation PC, but nothing changes. The board is still treated as a USB mass storage device. In Device Manager it is still located under Disk drives/STM32 and *Properties/Driver/Driver Details/ lists no ST drivers. Again only Windows drivers.

After the drivers were installed and the board connected to the PC (as a USB mass storage device), I tried to flash the newest firmware to the board by using the STSW-LINK007 board firmware update utility which fails to connect to the board:

Enter image description here

How can I overcome this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

○愚か者の日 2025-01-24 19:07:59

ST-Link V2-1实现USB质量存储接口,以允许拖放编程。

如果必须禁用质量存储界面,则可以通过固件更新进行操作。来自

在ST-Link/V2-1板上,可以禁用和恢复质量
通过stlinkupgrade应用程序存储界面(请参阅
图1)

ST-LINK V2-1 implements the USB mass storage interface to allow drag-and-drop programming.

If you must disable the mass storage interface, you can do it via the firmware update. From the TN1235 document:

On ST-LINK/V2-1 boards, it is possible to disable and restore the mass
storage interface by means of the STLinkUpgrade applications (refer to
Figure 1)

Enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文