Update STM32 with WinPE and CubeProgrammer c++ API
Moved from the Feedback forum.
The Feedback forum is not for product questions.
Hello,
I have been trying to update my STM32 using a WinPE image.
I created a c++ application that implements the CubeProgrammer_API. The application runs fine, but when I try getDfuDeviceList(&dfuList, 0xdf11, 0x0483), it does not find any DFU device. (Note that the application works well on a normal Windows 11 installation)
I tried downloading the STM32Bootloader driver using the C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammerV2.19\Drivers\DFU_Driver\Driver\STM32Bootloader.inf file and pnputil /add-driver STM32Bootloader.inf /install command, but it still does not find the device.
I tried listing the usb devices using devcon. It can find the STM32Bootloader USB device and the driver.
I also tried using dfu-util, but when I try to list the devices with dfu-util.exe -l, I get "Cannot open DFU device 0483:df11"...
Does anyone have any insights on what I am doing wrong or if it is possible at all to update my STM32 from a WinPE image?
