cancel
Showing results for 
Search instead for 
Did you mean: 

Using CubeProgrammer driver without CubeProgrammer_API.dll

SMeier
Visitor

My company wishes to implement a feature in an existing C# application in order to download firmware to MCUs (USB DFU only).

I was able to get this done using the drivers and dlls provided through Dfuse (https://www.st.com/en/development-tools/stsw-stm32080.html).

There seems to be an issue concering the Dfuse driver on some of our computers which is why I tried to do the same using the driver and the CubeProgrammer_API.dll which are both part of the STM32CubeProgrammer (https://www.st.com/en/development-tools/stm32cubeprog.html). I managed to get that working as well, but it seems like the CubeProgrammer_API.dll needs a lot of other files to be able to work (>400MB).

This is why I was wondering if the CubeProgrammer_API.dll accesses another separat dll that only handles the USB DFU protocol (like STDFU.dll which is part of Dfuse) and does not need the >400MB of files.

Best,

Stefan 

1 REPLY 1
ahsrabrifat
Associate III

You can try dfu-util instead. It is  an open-source DFU tool that supports STM32. This could be wrapped in C# via process execution.