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

CODE_R1_BASE question

Hello, Can you please help me with the following questions.... Why table 3 in the softdevice spec shows the same address for the application code_r1_base when softdevice S110 is either enabled or disabled? So, if I use the S110 softdevice I need to flash my application code at 0x00014000 correct? Are the non used system vectors just a bypass to application vectors? Thanks OAM

  • You're absolutely correct, as long as the softdevice is flashed to the chip, all application code must start at address 0x14000, no matter if the softdevice is currently enabled or not.

    This is set up correctly for all the example projects in the SDK, so it could be worth having a look at them. With Keil, this base address is part of the target options, so even the example projects that doesn't actually use the softdevice have multiple target configurations, one set for usage on chip with the softdevice (identified by its _s110 postfix) and one without. These can be selected from the drop-down close to the download button in Keil.

Related