2 years, 8 months ago.

How to flash without compiling?

I'm using mbed CLI to program my microcontrollers. To compile and flash the board in one go, I use the following command:

> mbed compile -t GCC_ARM -m NUCLEO_F746ZG --flash

For some reasons - it would take us too far explaining them right here - I would like to split up the two actions. First I'd like to compile the code:

> mbed compile -t GCC_ARM -m NUCLEO_F746ZG

Next, I'd like to flash it to the chip:

> mbed flash

Sadly, that last command doesn't exist. How can I tell mbed CLI to flash the binary to the chip, without running a compilation?

PS: I know there are other ways of flashing the code to the chip, for example using OpenOCD or pyOCD, but I'm not interested in these methods right now.

Be the first to answer this question.