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

Howto export nRF51DK project from online mbed compiler to ARM GCC toolchain?

I have tried to export a very simple mbed program (blinks LED1 and LED2 and writes to Serial (USBTX, USBRX)) with no success. I am running on an Ubuntu 32 bit distro. This is what I have done:

  1. Exported the program from mbed online compiler (developer.mbed.org/compiler) as GCC ARM Embedded:

image description

  1. Installed the GCC ARM Toolchain (launchpad.net/gcc-arm-embedded) in /usr/local

  2. Modified the following in the Makefile associated with the export in 1):

GCC_BIN = /usr/local/gcc-arm-none-eabi-5_2-2015q4/bin/

SOFTDEVICE = mbed/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_8_0_0/s110_nrf51822_8.0.0_softdevice.hex

The SOFTDEVICE entry was modified since the original exported Makefile referred to an older version that was not part of the export.

  1. Installed srecord (sudo apt-get install srecord) to support the SREC_CAT definition in the Makefile

  2. executed make clean; make; make merge

The make targets executed with success and produced a combined.hex file. The combined.hex file was dropped in the JLINK folder but unfortunately does not run.

Dropping the hex file produced by mbed to JLINK folder works fine.

What have I missed?

Parents Reply Children
No Data
Related