Hi. I'm beginner. I want to use nRF51822xxAA chip on keil compiler. project->Option->Target->IROM1 start, Size & IRAM1 start, size. Please let me know IROM's start and size and IRAM's start and size for nRF51822xxAA.
Hi Aryan,
Can you explain how you find this values please ? I worked with the nrf51 Dk 256 kB Flash and 32 kB of RAM, and i want to work now with Insight Sip module with 128 kB of Flash and 16 kB and RAM, so i need to modify the IRAM and IROM field in keil.
I saw the RAM and ROM management blog post but i don't understand how the values are found. Regards.
The softdevice release notes tells you the expected start address of the application which is IROM base address. The size of on a 128KB flash can be a maximum of
(FLASH_SIZE - IROM base) = (0X20000 - IROM base)
.
The softdevice release notes also tells you the amount of RAM it uses, so you application IRAM base is what the release notes tells you. Size is similar, on 16KB RAM it is
(RAM_SIZE - ( IRAM base offset ) ) = (0X4000 - ( IRAM base - 0X20000000 ) )
Thanks Aryan,
It's clear know but i have still a little question about RAM setting in Keil with an example of SDk v11.
I use the S130 V2.0.0 and an example of SDK v11 , and the value for APP_RAM_BASE is 0x200013C8 in the softdevice specification chapter 15, but in keil with an example i have the APP_RAM_BASE equal to 0x20002080 (IRAM1 in keil); Normally it should be 0x200013C8 in the IRAM1 field in keil settings ?
For the ROM setting, everything is fine.The values are correct. They correspond exactly with softdevice specification and field IR0M base and size in keil, but not for the RAM. Best regards.