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

NRF52832 mbed uVisor: How to specify address space?

I would like to implement the mbed-os uVisor on a NRF52832. Therefore I need to specify some addresses in the provided linker file. Now the file: mbed-os/targets/TARGET_NORDIC/TARGETS_NRF5/TARGET_MCU_NRF52832/device/TOOLCHAIN_GCC_ARM/NRF52832.ld provides the following address space:

FLASH (rx) : ORIGIN = 0x1C000, LENGTH = 0x64000 RAM (rwx) : ORIGIN = 0x20002ef8, LENGTH = 0xd108

But the datasheet says FLASH (rx) : ORIGIN = 0x00000, LENGTH = 0x80000 RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x10000

Now the question is, what do I have to use for uVisor? Has anybody already implemented uVisor on the NRF52832?

Parents
  • FormerMember
    0 FormerMember

    The reason that the linker script doesn't use the flash/RAM data from the datasheet/product specification is that your application is using a softdevice. The amount of flash used by the softdevice should match the amount given in the softdevice release notes. The minimum amount of RAM used by the softdevice is specified in its release notes. However, depending on the configurations, for example maximum number of links, the amount of RAM used by the softdevice will vary.

Reply
  • FormerMember
    0 FormerMember

    The reason that the linker script doesn't use the flash/RAM data from the datasheet/product specification is that your application is using a softdevice. The amount of flash used by the softdevice should match the amount given in the softdevice release notes. The minimum amount of RAM used by the softdevice is specified in its release notes. However, depending on the configurations, for example maximum number of links, the amount of RAM used by the softdevice will vary.

Children
No Data
Related