This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can't run blinky example

Im trying to run the example blinky_example on BLENano (tried with gcc / nrf51822-sdk on linux and windows)

.hex from linux before merge : 8475 bytes .hex from windows before merge : 8491 bytes

On windows, using mergehex with any one of these .hex + ss110_nrf51822_7.1.0_softdevice.hex results in error "merge not possible due to conflicts in files"

On linux, I use the sreg_cat technique to merge hex. It errors as

srec_cat: ..../blinky_gcc_xxaa.hex: 1: multiple 0x00000000 values (previous = 0xC0, this one = 0x00)

I tried 5 things :

  • copy directly blinky_gcc_xxaa.hex to the BLENano. Leds don't blink.

  • sreg_cat with option −contradictory-bytes=warning. After copying to the BLENano leds didn't blink

  • modify another example (ble_app_hrs) and replace their main with the blink example's main. I didn't need the flag with sreg_cat but leds didn't blink

  • use mbed's website and download the hex for the blinky example. Leds successfully blinked

  • compiled on linux and windows

Note : when using the sreg_cat merging technique, I keep getting output hex files slightly > 256k (s110_nrf51822_7.1.0_softdevice.hex is already 230k) so this might be an error ?

Any idea to bypass this ?

Thanks

Thomas

Parents
  • Hi Thomas, I'm having similar problems to yours but I succeed in compiling and flashing the hex completely under Linux.

    I can write here the instructions for what I usually do:

    1. download lastest SDK (at the time I'm writing is the 7.2.0)

    2. set the configuration makefile (SDK/components/toolchain/gcc/makefile.posix) according to your configuration

    3. go in the blinky makefile dir (SDK/examples/peripherial/blinky/pca10028/s110/armgcc)

    4. type make command in the current dir

    5. copy into the _build dir (you can find it in the same dir of the makefile) the softdevice precompiled hex (supplied by nordics)

    6. run the following command to merge the two hexes and you're redy to go!

    To merge the app with the SD:

    srec_cat s110_nrf51822_7.1.0_softdevice.hex -intel nrf51422_xxac.hex -intel -o combined.hex -intel --line-length=44
    

    I hope it would help you. Good evening.

Reply
  • Hi Thomas, I'm having similar problems to yours but I succeed in compiling and flashing the hex completely under Linux.

    I can write here the instructions for what I usually do:

    1. download lastest SDK (at the time I'm writing is the 7.2.0)

    2. set the configuration makefile (SDK/components/toolchain/gcc/makefile.posix) according to your configuration

    3. go in the blinky makefile dir (SDK/examples/peripherial/blinky/pca10028/s110/armgcc)

    4. type make command in the current dir

    5. copy into the _build dir (you can find it in the same dir of the makefile) the softdevice precompiled hex (supplied by nordics)

    6. run the following command to merge the two hexes and you're redy to go!

    To merge the app with the SD:

    srec_cat s110_nrf51822_7.1.0_softdevice.hex -intel nrf51422_xxac.hex -intel -o combined.hex -intel --line-length=44
    

    I hope it would help you. Good evening.

Children
No Data
Related