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

How to modify ld to support 16KB RAM from 32KB

HI People,

I use nrf51822 CEAAE00 (0x0079) chip which has 256 kB FLASH, 16kB RAM. I faced a problem when compiling the bootloader for it. The solution was I am using a 16KB RAM, while the example is for a 32KB RAM variant. SO I was asked to change the RAM address and sizes in the ld file as follows

IRAM1: Start: 0x20002C00 , Size: 0x5380 --> 0x1380 IRAM2: Start: 20007F80 --> 20003F80, Size 0x80

How was this done? Could some one please explain the logic behind this?

Related