Skip to main content
Visitor II
April 6, 2020
Question

Trying to flash a .dfu file containing micropython onto a nucleo-f767zi board, but have exhausted all options and I'm stuck.

  • April 6, 2020
  • 14 replies
  • 4205 views

I originally tried dfuse.exe, but it couldn't see the board when I plugged it in. The device shows up as a VCOM port under Ports in the windows 10 device manager list. Next I tried stm32 cube programmer, but in the instructions, it says to uninstall the vcom driver by removing the device and checking the delete software when uninstalling which I did. Upon removing the usb and reinserting it, the device again shows up in ports, but as a USB serial device. Apparently windows 10 chose a device driver for it automagically - a M/S one. The device never shows up in the Universal Serial Bus controllers as a DFU device. Do I have to change a windows setting so that it doesn't try to find drivers automatically and install them? Help! I don't know what else to do.

    This topic has been closed for replies.

    14 replies

    Visitor II
    April 7, 2020

    I don't feel so bad about the posts I did when I forgot how to DFU... It seems funny now that they couldn't put a switch on Boot0 and include: Disconnect device, hold Boot0/User button, connect device, plug cable into CNx for DFU access. I just finished a layout and Boot0 on my PCB has a switch.

    JBlacAuthor
    Visitor II
    April 7, 2020

    Well, I'm not sure your instructions would have gotten around the issue with dfuse. Whenever I tried using dfuse, it simply doesn't find the STM32 BOOTLOADER device. It's there, although not under "Universal Serial Bus controllers"; rather it's under "Universal Serial Bus devices" as STM32 BOOTLOADER.

    Nevertheless, dfuse cannot find it! I'm running with dfuse v3.0.6 and the drop-down for "Available DFU Devices" is empty!

    Visitor II
    April 7, 2020

    I located Defuse and installed it, a new STM32L0538Disco arrived so after 'updating' the 'STLINK firmware' I tried Defuse. On Windows 10 with the latest STLink firmware Defuse doesn't see the device, the device does not enter DFU mode with Boot0 to +3 then power applied. The new Firmware is a drive on the network I guess. I dug up my H743ZI (running MicroPython) and tied boot0 to +3, plugged the user USB in and then plugged the STLink connector in, I can see the DFU USB device in Windows Device Manager but the Defuse software is showing nothing. I removed Defuse, I have STM32CubeProgrammer, STM32 STLink Utility and STM32CudeIDE and if there is an issue I have STLINK-V3SET with drag and drop or STLINK-V3MINI or my fall back, Segger Jlink.

    Use the hex file you generated for your MicroPython build and STM32CudeProgrammer.

    Super User
    April 7, 2020

    > I can see the DFU USB device in Windows Device Manager but the Defuse software is showing nothing.

    If you see it in Device Manager, it's a bug in the Dfuse, IIRC.

    Need to get the source and fix it (properly detect these devices, or something like that). Or look for a modern version that works with WIndows 8-10 and WinUSB API.

    >  although not under "Universal Serial Bus controllers"; rather it's under "Universal Serial Bus devices"

    Perfect. There it should be.

    -- pa

    JBlacAuthor
    Visitor II
    April 8, 2020

    So, tried to build the project for v3.0.6 from the sources and since I'm not a MFC C++ programmer, I got nowhere. But looking at the source, I'm just making a SWAG that the program isn't allocating enough space for the number of devices listed in the device manager. The STM32 BOOTLOADER is around the 270th device counting down from the HID group, which is where it seems to start looking. Anyway, started looking for v3.0.4 and in that search I found a post on the STM Community forum that dfuse is DEPRECATED and no longer supported. The original problem was someone for whom it stopped working after a WINDOWS 10 update. Anyway, the response from STM was that the "cube programmer" program is the product of choice to use now. Since I got my board programmed using the cube programmer, I'm going to uninstall the dfuse app. CLOSING THIS ORIGINAL PROBLEM AS SOLVED (don't use dfuse, use cube programmer)!