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

Unable to load Softdevice on custom board

I developed a custom board with nRF51822_xxAA on it, working on low voltage mode.

I can program some basic things on it using Keil uVision 5.15 and a J-link to flash the code. Everything works fine, as I can debug in Keil and see the value of my variables.

At this stage, here are my IROM and IRAM settings in Keil IROM : Start 0x0 - Size 0x40000 IRAM : Start 0x2000000 - Size 0x4000

Now, I'd like to make BLE advertising example work on my board. So I need Softdevice S110 on it. I got S110 v8.0.0 on Nordic website. Next step is to flash it on my board & adjust project settings in Keil (I mean IROM and IRAM).

1/ Flash Softdevice S110 v8.0.0 Between my board and Jlink, there is a custom voltage adapter (5.0V -> 1.8V). Problem: with 1.8V read by Jlink, neither nRFGo Studio, nore nrfjprog command seem to work to flash my board.

Is there any other software solutions to flash Softdevice on my board? I mean, it must exist. Otherwise, I won't be able to load some code in my board and debug it as previously checked... Tell me if I am wrong!

2/Adjust project settings in Keil In s110_nRF51 migration document, new version of SoftDevice (8.0.0) is said to be 96 kB, including MBR. Documentation suggests following settings: IROM : Start 0x18000 - Size 0x28000 (for the 256 kB variant) IRAM : Start 0x2002000 - Size 0x2000

My questions are related to MBR. Is it included directly in S110 hex file? Is it necessary? Yes -> How to install it? No -> In this case, what are the needed settings for IROM and IRAM?

Parents Reply
  • sorry for late response. Lost this thread. MBR comes within the softdevice hex file. Converting hex to bin should be ok except for one thing. If the hex file contains UICR addresses, then the binary file will become really big. This is because the binary file is with sequential addresses. I have not personally verified flashing bin, but it should work fine if there are no UICR settings. I see that you are using S110 v8.0.0 and this softdevice does not configure anything in UICR register neither does MBR.

Children
No Data
Related