Skip to main content
EPop.2
Associate II
January 16, 2023
Question

How to use dfu in project to flash the uC

  • January 16, 2023
  • 2 replies
  • 1135 views

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

    This topic has been closed for replies.

    2 replies

    MM..1
    Chief III
    January 16, 2023

    system call is ok , but better is use STM32CubeProgrammerCLI

    EPop.2
    EPop.2Author
    Associate II
    January 16, 2023

    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

    MM..1
    Chief III
    January 16, 2023

    dfu-util is opensource not directly designed for stm

    EPop.2
    EPop.2Author
    Associate II
    January 17, 2023

    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?