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: peripheral example use too many ram

Other Parts Discussed in Thread: CC2340R5

Hi,

My customer is using latest SDK and test on CC2340R5 EVM.

When we were testing peripherial example, we found that we are using a lot of RAM.

From  "simple_peripheral_LP_EM_CC2340R5_freertos_ticlang.map"

 

MEMORY CONFIGURATION

         name            origin    length      used     unused   attr    fill
----------------------  --------  ---------  --------  --------  ----  --------
  FLASH                 00000000   0007e000  0002927a  00054d86  R  X
  FLASH_LAST_PAGE       0007e000   00002000  00000000  00002000  R  X
  SRAM                  20000000   00009000  00008fa9  00000057  RW X
  CCFG                  4e020000   00000800  00000800  00000000  RW  

SEGMENT ALLOCATION MAP

 

 

Do you have more information about it?

  • Hi,

    Thank you for evaluating the new CC2340R5!

    You are correct almost the whole RAM is used on the out of the box projects.
    However, most of this memory is used as heap.
    The heap size can be safely reduced in main_freertos.c (see symbol TOTAL_ICALL_HEAP_SIZE).

    Generally speaking, the heap size should always be maximized (i.e. use the whole RAM left by the rest of the software) to avoid "wasting" some memory space.

    I hope this will help,

    Best regards,

  • Thanks you~