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.

CC2340R5: SRAM & AES

Part Number: CC2340R5
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

CCS version : 12.7.0.00007

SDK version : simplelink_lowpower_f3_sdk_7_40_00_64

project : basic_ble_LP_EM_CC2340R5_freertos_ticlang

1. I found that loading the basic_ble_LP_EM_CC2340R5_freertos_ticlang project occupies 33KB of the 36KB in SRAM. From sysconfig, I can see that the default heap is 0x5000, which is 20KB. Is it possible to reduce the SRAM space? Or the heap must be set Is it set to 0x5000? If the heap is set lower, will there be insufficient space?

2. Using the basic_ble_LP_EM_CC2340R5_freertos_ticlang project, sysconfig will preset three encryption methods: AESCCM, AESCTRDBG, and AESECB. However, I currently do not use these three encryption methods. After removing them directly, the compilation will display an Error. How can I successfully migrate? Except these three encryption methods

  • Hi,

    Thank you for reaching out. We will look into this and get back to you as soon as possible. in the meantime, can you verify if the same encryption behavior is seen on 8.10?

    Best Regards,

    Jan

  • The basic_ble_LP_EM_CC2340R5_freertos_ticlang project using 8.10.01.02 will also default to these three encryption methods, and it still cannot be compiled after being removed.

  • Regarding the first point I mentioned in the article, whether the heap size of SRAM can be reduced, please give me an test result. Thank you.

  • Hello Ryan,

    1. The basic_ble example comes with a predefined amount of heap size which can be of course reduced and tuned out based on your application actual requirements. Please find the field to modified it inside SysConfig -> FreeRTOS -> Heap Size. I would suggest to use Runtime Object Viewer where you can see the peak heap mem consumption during runtime. Please take a look at this material: Debugging Common Heap Issues.
    2. The basic_ble example has several dependencies on these drivers which provide functionalities required by the Bluetooth spec. In other words, if you remove the AESCCM, AESECB, AESCTRDRBG, from the SysConfig, the stack will still looking for the symbols related to these and link will fail.

    BR,

    David.

  • OK , thanks