Skip to content
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

Closed
rph8 opened this issue Oct 30, 2015 · 1 comment
Closed
Assignees
Milestone

Comments

@rph8
Copy link

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")
else:
    target_firm = env.ElfToBin(join("$BUILD_DIR", "firmware"), target_elf)

to:

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

(Used version 2.3.4.)

@ivankravets
Copy link
Member

Please re-test it using the latest development version http://docs.platformio.org/en/latest/installation.html#development-version

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

No branches or pull requests

2 participants