Tried this getting started tutorial:
When building project at the end, I get: (After trying max optimization)
._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? :-)
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.
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.
ERROR: The hex files cannot be merged since there are conflicts.
Am I doing some thing wrong?
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.
In the tutorial I followed it said:
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!!