Skip to main content
i124q
Associate
March 18, 2024
Solved

DFU error using CubeProgrammer_API

  • March 18, 2024
  • 2 replies
  • 1002 views

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.
Best answer by i124q

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

2 replies

TDK
Super User
March 18, 2024

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
March 19, 2024

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