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

Softdevice address not correct in RAM position 0x20000000

Hi!

In our development we are using nrf52833 and for the first development phase we used the SDK 17.0.0. In that case I used the usbd_ble_uart example with s113 and it works as expected. Now we have migrated to SDK 17.0.2 where we intergrate the usbd functionality to another project using the softdevice s140. The problem is that when sd_softdevice_enable() function is called the softdevice address at position 0x20000000 is not 0x0100 as expected it's 0xA801BE00 and therefor the init of the softdevice crash.

BR

Parents
  • Hi,

    I did not understand entirely what happens. Can you elaborate a bit?

    Perhaps you are mixing flash and RAM addresses? The RAM starts at address 0x20000000 and the flash starts at address 0x0. When you use a SoftDevice, that includes the MBR. From flash, you then have the MBR from address 0x0, and the SoftDevice from address 0x1000 and upwards. The application starts in the first available flash page after the SoftDevice.

    When it comes to RAM, the MBR and SoftDevice use the ram from 0x20000000, and the application use the RAM after the end of the SoftDevice region (actual application RAM start address depends on the configuration and RAM usage of the SoftDevice).

Reply
  • Hi,

    I did not understand entirely what happens. Can you elaborate a bit?

    Perhaps you are mixing flash and RAM addresses? The RAM starts at address 0x20000000 and the flash starts at address 0x0. When you use a SoftDevice, that includes the MBR. From flash, you then have the MBR from address 0x0, and the SoftDevice from address 0x1000 and upwards. The application starts in the first available flash page after the SoftDevice.

    When it comes to RAM, the MBR and SoftDevice use the ram from 0x20000000, and the application use the RAM after the end of the SoftDevice region (actual application RAM start address depends on the configuration and RAM usage of the SoftDevice).

Children
No Data
Related