Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 10 months ago.
How to create mBed HEX file for Nordic mKit with mBed SDK???
I'm exploring with mBed SDK and somehow it only create a BIN file with their "tests" (See below), any ideas how to create the mBed HEX file? Any examples would be great!
C:\mbed-master\workspace_tools>python make.py -m NRF51822 -t GCC_ARM -d D:\ -s COM61 -p 8
Building project ECHO (NRF51822, GCC_ARM)
Compile: main.cpp
Compile: test_env.cpp
Link: echo
Elf2Bin: echo
Image: C:\mbed-master\build\test\NRF51822\GCC_ARM\MBED_A9\echo.hex
[ERROR] [Errno 2] No such file or directory: 'C:
mbed-master
build
test
NRF51822
GCC_ARM
MBED_A9
echo.hex'
1 Answer
10 years, 10 months ago.
Hi,
it looks like that make.py script file supports only binary files, not hex. As it invokes a function
def link_program(self, r, tmp_path, name)
which calls then elf2bin, which does not cover a case for nordic chips. You can extend it and send a pull request on github. Thanks.
Regards,
0xc0170