I uses S110 V6.00 softdeivce ,v5.20 SDK, and the nrf51822QFAC chip. now I use the 32k ram ,but it is wrong.The program is not run. I only use the 16k ram ,as same as nrf51822QFAA. Can you help me ,for offer a example.
I uses S110 V6.00 softdeivce ,v5.20 SDK, and the nrf51822QFAC chip. now I use the 32k ram ,but it is wrong.The program is not run. I only use the 16k ram ,as same as nrf51822QFAA. Can you help me ,for offer a example.
OK. 1, I used S110 V6.00,IROM1 =0X1400 SIZE=0X28000,IRAM1=0X20002000 SIZE =0X6000 2.I select the chip is nrf51822QFAC 3.I download the program to nrf51822 QFAC if the ram used size less than 0x2000,then the nrf51822QFAC work is OK. 4.I download the program to nrf51822 QFAC if the ram used size more than 0x2000,then the nrf51822QFAC work is wrogn. 5.I find the error at err_code = sd_ble_gap_device_name_set(&sec_mode, (const uint8_t *)DEVICE_NAME, strlen(DEVICE_NAME)) function.
OK. 1, I used S110 V6.00,IROM1 =0X1400 SIZE=0X28000,IRAM1=0X20002000 SIZE =0X6000 2.I select the chip is nrf51822QFAC 3.I download the program to nrf51822 QFAC if the ram used size less than 0x2000,then the nrf51822QFAC work is OK. 4.I download the program to nrf51822 QFAC if the ram used size more than 0x2000,then the nrf51822QFAC work is wrogn. 5.I find the error at err_code = sd_ble_gap_device_name_set(&sec_mode, (const uint8_t *)DEVICE_NAME, strlen(DEVICE_NAME)) function.
what error?
IROM1 =0X1400 does not look right. shouldn't this be IROM1 =0X14000 Also what error do you get?
IROM1=0X14000,
The program is stop at sd_ble_gap_device_name_set,i can not find what error,can you tell me how can to find the error?
compile your program with this keil settings Target_options->C/C++->optiomizations->Level 0
flash the code and set the breakpoint at the line next to where "err_code = sd_ble_gap_dev_name_set is called. run the debugger. And when the breakpoint hits, you can check what the err_code is.