ST-Link V2—被检测为USB质量存储设备
我有一个连接到 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:
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:
How can I overcome this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ST-Link V2-1实现USB质量存储接口,以允许拖放编程。
如果必须禁用质量存储界面,则可以通过固件更新进行操作。来自
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: