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.

Compiler/RM46L852: Can I resize KRAM.

Part Number: RM46L852


Tool/software: TI C/C++ Compiler

Hello all,

I would like to reduce KRAM size because I need more RAM.

sys_link.cmd file of my project is like below.

And map file is like below.

 I knew that KRAM is .kernelBSS and the size is not change after compile the project.

So, I think that I can reduce the KRAM size becaue unused size of KRAM is 3ef8.

Can I reduce KRAM size?

Is there any test I have to after reduce the size?

  • Hello,

    KernelBSS section is used for freeRTOS variables. You can adjust the KRAM memory size based on your application. 

    https://www.freertos.org/

  • Dear Wang,

    I am not sure that KRAM size of memory map is fixed.

    Is it correct?

    MEMORY CONFIGURATION

    name           origin        length           used         unused     attr fill
    ---------------------- -------- --------- -------- -------- ---- --------
    VECTORS 00000000   00000020   00000020   00000000         X
    KERNEL    00000020   00008000   00004038   00003fc8     R   X
    FLASH0     00008020   000fa000    0005ee67   0009b199    R   X
    STACKS    08000000   00008200    00000000   00008200   RW
    KRAM        08008200   00004000    00000108   00003ef8   RW
    RAM          0800c200   00023d00    00020661   0000369f   RW

    Thank you.

  • Hello,

    You can adjust the size of KRAM based on your application. I am not sure if 0x800 or ox4000 is a proper size for your code.