Can I change the definition CFG_NB_PRF?

Learn MoreFAQsTutorials

9 posts / 0 new
Last post
stanley_yeh
Offline
Last seen:1 year 6 months ago
Joined:2016-12-23 06:52
Can I change the definition CFG_NB_PRF?

Hi there,
I find that the CFG_NB_PRF definition in da1458x_stack_config.h is 32 and it costs about 0x300 bytes in retention memory.
If I just have 2 ble profiles, can I modify it to 2?
If I modify it, Is there anything I should pay attention to?
Thanks a lot.

Device:
TR_Dialog
Offline
Last seen:1 month 4 days ago
Staff
Joined:2014-06-30 23:52
Hi Stanley:

Hi Stanley:

Need to check this with the SDK dev team. One question: what is the need behind it, are you running out of retention memory?

Thanks,

TR_DIALOG

stanley_yeh
Offline
Last seen:1 year 6 months ago
Joined:2016-12-23 06:52
Yes, I have used retention

Yes, I have used retention memory over 2048 bytes.
I just check the memory map of my project and find CFG_NB_PRF will occupy too many memory.

Followings are some of my questions, could you please answer me?

1. I know that I can change the definition "CFG_RET_DATA_SIZE", but what is the definition used for? I have searched all the project, I can't find it in other place and be used.
2. Could you give me some suggestions for setting the size of the definition "CFG_RET_DATA_SIZE"? Should it smaller than the size of SysRAM 4 (16kB) to prevent using SysRAM3 for reducing power consumption?

3. The document UM-B-051 is confused me. In 3.11.3.4, page 28, It said
"These are 4 special low leakage SRAM cells (2 kB + 2 kB + 3 kB + 1 kB) used to store various data of the Bluetooth Low Energy protocol as well as the system’s global variables and processor stack when the system goes into Deep Sleep mode.".
保留内存有4细胞哒14585? It mentions "deep sleep mode", if my device just uses extend sleep mode, does it need to store data in retention memory?

Thanks a lot.

TR_Dialog
Offline
Last seen:1 month 4 days ago
Staff
Joined:2014-06-30 23:52
Hi Stanley:

Hi Stanley:

I am still looking into your original question.

Regarding your point #3 in the previous your last response:

The retention ram is retained for both deep sleep and extended sleep. It is the sysRAM which is only retained in extended sleep, but not in deep sleep.

Also note that retention RAM is shared between BLE stack in ROM code, SDK code, and your application code.

Thanks,

TR_DIALOG

stanley_yeh
Offline
Last seen:1 year 6 months ago
Joined:2016-12-23 06:52
Thank you so much, I am

Thank you so much, I am grateful for your help. :)

TR_Dialog
Offline
Last seen:1 month 4 days ago
Staff
Joined:2014-06-30 23:52
Hi Stanley:

Hi Stanley:

During internal discussion it was pointed out you need to refer to UM-B-079 and UM-B-080 for DA14585 software related topics. UM-B-051 applies to DA14580.

I am still working on your original question about CFG_NB_PRF.

Thanks,

TR_DIALOG

TR_Dialog
Offline
Last seen:1 month 4 days ago
Staff
Joined:2014-06-30 23:52
Hi Stanley:

Hi Stanley:

We checked with development team. It is not recommended to change the value. Whether we use it or not, we should not touch this to bring down to 4 or any other number. The BLE stack in ROM is build with 32 spaces for profile.

Thanks,

TR_DIALOG

stanley_yeh
Offline
Last seen:1 year 6 months ago
Joined:2016-12-23 06:52
Hi TR_Dialog,

Hi TR_Dialog,
Thanks a lot.
So the only one way to enlarge the retention ram is changing the CFG_RET_DATA_SIZE definition, right?

MT_dialog
Offline
Last seen:1 month 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi stanley_yeh,

Hi stanley_yeh,

Yes the CFG_RET_DATA_SIZE is for configuring the size of the retainable memory, this #define is used by the scatterfile in order to define the size of the retainable memory.

Thanks MT_dialog