PlatformIO Community

Export compiled .hex file for NRF52 Platform via CLI

Hi all,

I noticed that the CLI tool for the nordicnrf52 platform seems to export only an .elf file if I run pio run -v. However if I want to flash this manually I need the merged .hex file which contains both bootloader, softdevice and user code.

Is there a way I can make the CLI do that? I didn’t find any special export option. I guess I need to create a specific export target in the platformio.ini file. Can anyone help me with this?

Thanks!

1 Like