7 years, 8 months ago.

Can mbed write the bin file directly to the device?

Instead of the 2-step process of mbed saving .bin files to my hard drive, then having to upload it from my hard drive to the target device, is there a way to setup mbed to save the .bin file directly to the target device?

2 Answers

7 years, 8 months ago.

Jon,

Thanks for getting in touch.

This really depends on your browser, if you can 'save as' then you can save it directly to the mbed drive and then reset the board and it should run.

If you use our offline compile option of mbed-cli, you can do everything that you can in the online compiler, import libraries, programs from mbed and your directory, all offline! This is using the command line (cmd), https://github.com/ARMmbed/mbed-cli.

Whats great about this is that you can automate the process of compiling and copying in one line.

When using mbed cli for a crude example.

$mbed compile -m K64F -t GCC_ARM && cp /BUILD/firmware.bin /Volumes/MBED

This example command will compile the example and then copy the binary from the build directory to the MBED drive.

Regards,

Andrea, team mbed

Accepted Answer
7 years, 8 months ago.

Yes, it can be done automatically. Have a look at these hints.