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/TM4C129XNCZAD: Writing to internal flash - How can I add a RWX section in the flash?

Part Number: TM4C129XNCZAD

Tool/software: TI-RTOS

Hello

I want to store running data (that is seldom written, often read) in the flash, as the space in the RAM is very limited.

I saw the Flash.c lib with the relevant functions and I hope to be able to use them. but I do not know how to define an area in the flash that will not be included in the program code, and will be writable.

my .map file now says:

name origin length used unused attr fill
---------------------- -------- --------- -------- -------- ---- --------
FLASH 00000000 00100000 00085bb6 0007a44a R X
SRAM 20000000 00040000 00033e4d 0000c1b3 RW X

thanks

Shlomo

  • OK, I have found it in the cmd file:
    #define APP_BASE 0x00000000
    #define FLASH_RAM_BASE 0x000B0000
    #define RAM_BASE 0x20000000

    /* System memory map */

    MEMORY
    {
    /* Application stored in and executes from internal flash */
    FLASH (RX) : origin = APP_BASE, length = 0x000B0000
    /* Application stored in and executes from internal flash */
    FLASH_RAM (RWX) : origin = FLASH_RAM_BASE, length = 0x00050000
    /* Application uses internal RAM for data */
    SRAM (RWX) : origin = 0x20000000, length = 0x00040000
    }

    I will be happy for any insights on this issue, but the question is resolved