Problem getting started with BLE Nano 2

matbli gravatar image

asked 2017-09-12 23:13:01 +0100


Tried this getting started tutorial:


When building project at the end, I get: (After trying max optimization)

linking... ._build\nrf52832_xxaa.axf: error: L6050U: The code size of this image (37604 bytes) exceeds the maximum allowed for this version of the linker. Finished: 0 information, 0 warning, 0 error and 1 fatal error messages. "._build\nrf52832_xxaa.axf" - 1 Error(s), 0 Warning(s). Target not created.

What to do? :-)


edit retag flag offensive close delete report spam

2 answers

Sort by » oldest newest most voted
matbli gravatar image

answered 2017-09-13 23:44:34 +0100

Thank you,

Tried the SES tutorial and built the beacon example - builds fine as it seams.

Since I have a Redbear BLE NANO 2 KIT I want to program it through dropping the hex file on DAPLINK drive. Tried to merge my application hex with the softdevice, but:

mergehex -m s132_nrf52_5.0.0_softdevice.hex ble_app_beacon_pca10040_s132.hex -o application.hex Parsing input hex files. Merging files. ERROR: The hex files cannot be merged since there are conflicts.

Am I doing some thing wrong?


edit flag offensive delete publish link more


Did you use the FLASH_START and SRAM_START values from the tutorial, or did you modify these number to reflect the ROM/RAM requirements of the softdevice you are using? Correct numbers for the ble_app_beacon example from SDK v14.0.0 should be:


You can check the default FLASH and RAM settings in the linker-file (.ld), found in the armgcc directory of each example.

Jørgen Holmefjord ( 2017-09-14 09:02:06 +0100 )editconvert to answer


In the tutorial I followed it said:

FLASH_START=0x1F000 SRAM_START=0x20002000

But I se now that it was a different version of the softdevice.

Your numbers was much better, it looks like I'm flying :-)

Thanks for your help!!


matbli ( 2017-09-14 16:48:52 +0100 )editconvert to answer
joh2 gravatar image

answered 2017-09-13 11:04:00 +0100


If you do not want to pay the license fee for Keil, you can switch to another free compiler. We support GCC, and you can find a tutorial on developing with GCC and Eclipse here.

Another alternative is to use Segger Embedded Studio (SES). This blog post tutorial show you how to import Keil projects into SES, and how to get started with the development.

Best regards,


edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

Question Tools

1 follower


Asked: 2017-09-12 23:13:01 +0100

Seen: 60 times

Last updated: sep. 13 '17