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?
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.
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.