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.

RTOS/CC2640R2F: Memory usage

Part Number: CC2640R2F

Tool/software: TI-RTOS

Hi,

i took a short look over the map file of my project and i can't figure out what the actual static memory usage is. I'm also using the NVS driver for saving 4kB of data in flash. Therefor i've implemented code from NVS driver example, which so far works without any problems.

Here is an exctract of the map file:

Module ro code ro data rw data rw data
(abs)
------ ------- ------- ------- -------
board.o 681 1 398 4 096


82 011 bytes of readonly code memory
15 725 bytes of readonly data memory
10 227 bytes of readwrite data memory (+ 4 096 absolute)

Now i'm wondering what "(+ 4 096 absolute)" means? 

Is this amount of memory a RAM buffer allocated by the NVS driver or just an information that this is a read -and writeable Flash section?

Best Regards,

Alex

Further information:

simplelink_cc2640r2_sdk_1_40_00_45

IAR-Version: 8.11.2.13606

Debugger & Programmer: TI XDS110 from LAUNCHXL-CC2640R2 board

XDS Tools: xdctools_3_50_02_20_core

  • Hi,

    Can you check in your linker file (.icf) if there is anything place in RAM in a specific memory location?

    See here for more info:
    software-dl.ti.com/.../ble-memory_problems.html

    Best wishes
  • Hi,

    regarding to your posted link to the documentation the total memory usage for flash should be 97736 bytes and for RAM, including 4096 Bytes absolute RAM memory, 14323 Bytes. Am i right?

    As suggested, I took a look over the .icf as suggested, but i did no changes to it. The origin project my project is set up is simple_peripheral from SDK simplelink_cc2640r2_sdk_1_40_00_45. 

    The question still is, what the value (+ 4 096 absolute) stands for? Is this really RAM memory?

    Best regards,

    Alex

  • Hi,

    i've increased flash memory to 12kB:

    83 333 bytes of readonly code memory
    15 626 bytes of readonly data memory
    10 410 bytes of readwrite data memory (+ 12 288 absolute)

    "+12 288 absolute" has no relation to RAM memory. Heap size (auto size, largest possible) won't change after increasing flash memory space.

    Thank you for your advices anyway.

    Best regards,
    Alex