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.

MCU-PLUS-SDK-AM263X: Internal Flash Memory

Part Number: MCU-PLUS-SDK-AM263X

Hi,

  • It seems from the "Memory Allocation" Tab in code composer that there is FLASH memory of 524K available. But, I couldn't find anything about internal flash memory in the datasheet. If it is available would you please guide me how to store data in this flash memory?

  • Another point is that as it is indicated above, 4 Banks of 512KB are available in OCSRAM. But, in the Memory allocation tab it is only 262K available. Would you clarify?
  • Finally, How can I use all 2MB of the OCSRAM in one core?

Saman

  • Hi Saman,

    The Memory Allocation Tab is based on the MEMORY section of linker.cmd file in the CCS project. It is not from the device spec.

    MEMORY
    {
    R5F_VECS : ORIGIN = 0x00000000 , LENGTH = 0x00000040
    R5F_TCMA : ORIGIN = 0x00000040 , LENGTH = 0x00007FC0
    R5F_TCMB0 : ORIGIN = 0x41010000 , LENGTH = 0x00008000

    /* memory segment used to hold CPU specific non-cached data, MAKE to add a MPU entry to mark this as non-cached */
    NON_CACHE_MEM : ORIGIN = 0x70060000 , LENGTH = 0x8000

    /* when using multi-core application's i.e more than one R5F/M4F active, make sure
    * this memory does not overlap with other R5F's
    */
    MSRAM : ORIGIN = 0x70080000 , LENGTH = 0x40000

    /* This section can be used to put XIP section of the application in flash, make sure this does not overlap with
    * other CPUs. Also make sure to add a MPU entry for this section and mark it as cached and code executable
    */
    FLASH : ORIGIN = 0x60100000 , LENGTH = 0x80000

    /* shared memory segments */
    /* On R5F,
    * - make sure there is a MPU entry which maps below regions as non-cache
    */
    USER_SHM_MEM : ORIGIN = 0x701D0000, LENGTH = 0x180
    LOG_SHM_MEM : ORIGIN = 0x701D0000 + 0x180, LENGTH = 0x00004000 - 0x180
    RTOS_NORTOS_IPC_SHM_MEM : ORIGIN = 0x701D4000, LENGTH = 0x0000C000
    }

    The 524KB flash memory is defined for FLASH (for on board QSPI flash) There is no on chip flash for AM263x. OCRAM is also defined in the linker.cmd file. The linker.cmd file is per CCS project, so it is totally customizable, like the start address and the size. While you modify the linker.cmd file, you must keep in mind that each core has its own CCS project therefore its own linker.cmd file. There are up to 4 R5F cores for AM243x, so you have to make sure the OCRAM areas used by each R5F core are not overlapped. However, each R5F core has its own TCM areas.

    There are certain areas (The first 128KB and last 128KB of the OCRAM) may be used by the system FW and the SBL.

    Best regards,

    Ming