Part Number: CC2642R
Other Parts Discussed in Thread: SYSCONFIG
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: CC2642R
Other Parts Discussed in Thread: SYSCONFIG
Hi !
When building the rtls_coordinator project for the CC2642, I see that I am using only 16% of RAM (12536 bytes out of 77857). Could you re-build your project and run "View > Memory Allocation" to see what is your memory usage ?
Another thing might be that you are not allocating enough memory for your heap. Do you know what heap strategy you are using and what is your heap size ? Can you share your map file ?
If you want to optimize the memory of your application, removing unused modules like UART in SysConfig will cut down memory consumption. I don't recommend removing threads, as they are all necessary for the application. You can try to look at this chapter of the user guide if you think the issue is that you do not have enough heap (which I don't think is the issue).
Kind regards,
Lea

20013c00 heapEnd 200089d8 heapStart
Hi !
When using CCS, you should be able to see the heap usage of your application with the RTOS object viewer. Can you show me the heap-related data of the RTOS object viewer when the application fails to allocate a task ? How much are you trying to allocate for this task ? Do you make any heap allocation before this task creation ?
Kind regards,
Lea
Hi !
I don't know what is the stack depth recommened for such things. The steps I recommend you to take would be to increase the stack by a lot, run your function and see the stack peak of your task in the RTOS object viewer. The RTOS object viewer does not work for tirtos on CCS 20 but should work as expected in CCS 12.
As for the RSSI. the BLE stack can get the RSSI from using the HCI_ReadRssiCmd function with the index of your connection. If you don't need RTLS you can remove it from SysConfig.
Kind regards,
Lea