New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boards: should support specifying whether .hex or .bin is needed for each board #316

rph8 opened this Issue Oct 30, 2015 · 1 comment


None yet
2 participants

rph8 commented Oct 30, 2015

I had the issue that the Seeed Arch BLE needs a .hex file to be copied to the MBED USB, not a .bin. Another board from Seeed, the Arch Max does need a .bin file.
So there should be a way in the board JSON language whether the board needs a .hex or .bin.

I fixed this for now in my local installation by cloning the nordicrf51 platform and changing the builder script for the second platform from

if "uploadlazy" in COMMAND_LINE_TARGETS:
    target_firm = join("$BUILD_DIR", "firmware.bin")
    target_firm = env.ElfToBin(join("$BUILD_DIR", "firmware"), target_elf)


if "uploadlazy" in COMMAND_LINE_TARGETS:
    target_firm = join("$BUILD_DIR", "firmware.hex")
    target_firm = env.ElfToHex(join("$BUILD_DIR", "firmware"), target_elf)

(Used version 2.3.4.)


This comment has been minimized.


ivankravets commented Nov 2, 2015

Please re-test it using the latest development version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment