cancel
Showing results for 
Search instead for 
Did you mean: 

How to use dfu in project to flash the uC

EPop.2
Associate II

I need to do an upgrade of the firmware via software. From my C++ app i have to call dfu-util, i guess, or if there is any other way please let me know, to download the upgrade to the uC

For the moment i am calling it like a system call, and i wonder if i am doing it right or not

4 REPLIES 4
MM..1
Chief II

system call is ok , but better is use STM32CubeProgrammerCLI

EPop.2
Associate II

to be honest i've been checking that option but it just does not make any sense for me how could i call it from my script?

as far as i can see it is a command that i need to run it in the terminal, which would be the same as the system call would it not?

or maybe i am missing something

dfu-util is opensource not directly designed for stm

alright, in that case how would i be using the CLI, it still looks like a command that i would need to call it from the terminal is it not?