Skip to main content
i124q
Associate
Mar 18, 2024 6:16 PM UTC
Solved

DFU error using CubeProgrammer_API

I am working on implementing a firmware update on my electron app using CubeProgrammer_API. I keep encountering issues on connecting to the DFU bootloader in which is giving me CUBEPROGRAMMER_ERROR_NOT_SUPPORTED (-5). I compiled my code into a .exe and run a JavaScript code to execute the .exe. However, when I run the .exe manually, it works fine, but not on my Electron app. I have the latest version of STMCubeProgrammer (2.16.0). 

This topic has been closed for replies.
i124q
i124qBest answer
Associate
Mar 19, 2024 1:13 PM UTC

I discovered the issue. I had issues specifying the FlashLoader path. It requires the full path to the FlashLoader file.

2 replies

TDK
Mar 18, 2024 7:27 PM UTC

It sounds like something you are trying to do is not supported, perhaps a command you are sending.

What are you trying to do in the bootloader? What chip are you connecting to?

"If you feel a post has answered your question, please click ""Accept as Solution""."
i124q
i124qAuthorBest answer
Associate
Mar 19, 2024 1:13 PM UTC

I discovered the issue. I had issues specifying the FlashLoader path. It requires the full path to the FlashLoader file.