why SDK12.2.0 ANCS keil target RAM1:start is 0x20003340?
and is it only can be this adress?
why SDK12.2.0 ANCS keil target RAM1:start is 0x20003340?
and is it only can be this adress?
ok thank you so much. O(∩_∩)O~
hello friend,i see the Memory resource map and usage,but i still don't know why it should be 0x3440.i use nrf51822QFAA with 256KB flash and 16kb ram, and i download the SDK12.2.0 softdevice s130,and download the sdk12.2.0 ANCS project application,it can't run,the RAM and flash. RAM=ZI-data + RW-data.and in the SDK12.2.0 ANCS project.RAM=8480+504=8984=8.984KB flash=Code + RO-data + RW-data,and in the SDK12.2.0 ANCS project.flash=39772+1964+504=42240=42.24KB. i know because the RAM is not enough. but i don't know why it could be 0x3440.and the first time you answer my question with a web,i click it,there it say set it to be 0x20002078, it's also ok. i want to know is there any way that calculate the value without print out it? because i use nrf51822QFAA,i can't debug now
No, you cannot calculate the RAM usage for the SoftDevice directly. The nrf51822QFAA has 16kB RAM. The RAM usage for the ANCS example code is ZI-data + RW-data = 8.953125 kB. For this example the SoftDevice uses 8,11kB RAM, so the total RAM usage is 17.07kB. If you turn off the NRF_LOG(set NRF_LOG_ENABLED to 0 in sdk_config.h) the total RAM usage is 15,3125 kB. Also, with the nrf51822QFAA you should set the start to 0x20002078 and the size to 0x1F88. You will almost have no extra RAM for your application, so if you want to add anything to the ANCS example, you should maybe buy a nRF51822 that have 32kB RAM.
hello friend ,For this example the SoftDevice uses 8.11kB RAM..where to see this 8.11 value
This is the value the softdevice_enable()
will tell you to use, 0x20002078 - start(0x20000000) = 0x2078 = 8312 byte = 8.1171875 kB.