This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to build a mbed hex with GCC and Eclipse???

I'm new to nRF51822 Evaluation Kit. I was able to build the hex from "ble_app_hrs" example with GCC and Eclipse. However, it won't allow me to flash it by drag and drop to the "mbed drive". I have 2 questions:

  1. Is it possible to build a mbed type of hex file with GCC and Eclipse? I believe mbed does add some special header in the hex file that allow flashing the nRF51822 by drag and drop to the mbed flash drive.

  2. Without a physical J-Link debugger, how can I flash my application to the nRF51822 EK?

Parents
  • I finally figured out how to create a mbed HEX file for my Nordic nRF51822 mKit. I didn't know that I have to merge my GCC created HEX file with the Nordic Softdevice HEX file (C:\Nordic Semiconductor\nrf51\bin>mergehex -m ble_app_hrs_s110_xxaa.hex s110_nrf 51822_7.0.0_softdevice.hex -o result.hex) I can now flash the "result.hex" by drag & drop to the mbed flash drive.

Reply
  • I finally figured out how to create a mbed HEX file for my Nordic nRF51822 mKit. I didn't know that I have to merge my GCC created HEX file with the Nordic Softdevice HEX file (C:\Nordic Semiconductor\nrf51\bin>mergehex -m ble_app_hrs_s110_xxaa.hex s110_nrf 51822_7.0.0_softdevice.hex -o result.hex) I can now flash the "result.hex" by drag & drop to the mbed flash drive.

Children
No Data
Related