AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
October 2020
Categories |
Back to Blog
Stm Usb Drivers Windows 109/16/2020
It can do most anything I want, run a half-dozen Linuxes, and has a shiny new open source Terminal, and has great support for Docker now.However. For years - YEARS I SAY - Windows has been a huge hassle when you want to flash the firmware of various devices over USB.The term dfu means Device Firmware Update and dfu-util is the Device Firmware Update Utility, natch.
Very often Ill find myself with a device like a Particle Photon, Wilderness Labs Meadow, or some STM32 device that uses the ST Bootloader. Stm Usb Mac And LinuxThe Mac and Linux instructions usually say something like plug it in and party on but folks like myself with Windows have to set up a WinUSB Driver (libusb-win32 or libusbK) as dfu-util uses those libraries to speak to USB devices. If you plug in a device, the vast majority of Windows users want the device to just work. My non-technical parent doesnt want Generic USB drivers so they can flash the firmware on their mouse. I, however, as an aristocrat, sometimes want to do low-level stuff and flash an OS on a Microcontroller. Today, the easiest way to swap the inbox driver with WinUSB is using a utility called Zadig. It can be especially useful for cases where: you want to access a device using a libusb-based application you want to upgrade a generic USB driver you want to access a device using WinUSB If you follow the instructions when flashing a device and dont have the right USB driver installed youll likely get an error like this: Cannot open DFU device 0483:df11. The issue is that the default inbox driver that Windows uses for devices like this isnt set up for Generic USB access with libraries like libusb. Heres the result. Note the SUCCESS and the changed Driver on the left. I replace the bootloader with the generic WinUSB driver and run dfu-util again and it finds the devices. He is a failed stand-up comic, a cornrower, and a book author. I have used Zadig before to work around the same issues with USB. But, nowadays I do embedded development via a Raspberry Pi, primarily because somebody pointed out that many computers do not have over-voltage protection as an RPI does. So, now I dont have to worry about blowing up the motherboard on my computer, and the problem of incompatible USB drivers goes away too.
0 Comments
Read More
Leave a Reply. |