Tool/software: Code Composer Studio
Hello,
I am trying to speed up my R5F program by executing it in the fastest memory which is TCM I supposed.
And I have some questions about the mmap of R5F:
- I learned that the start address of TCMB is 0x40000000 from "Table 2-6. MCU_ARMSS Memory Map" in the TRM; however, from the memory layout in linker_r5.lds, the start address of TCMB is 0x41010000 which is not matched with the value in TRM.
- What OCMRAM and MSMC3 are? It seems that TRM does not mention these memories.
MEMORY
{
VECTORS (X) : origin=0x41C7F000 length=0x1000
/* Reset Vectors base address(RESET_VECTORS) should be 64 bytes aligned */
RESET_VECTORS (X) : origin=0x41C00000 length=0x100
/* MCU0_R5F_0 local view */
MCU0_R5F_TCMA_SBL_RSVD (X) : origin=0x0 length=0x100
MCU0_R5F_TCMA (X) : origin=0x100 length=0x8000 - 0x100
MCU0_R5F_TCMB0 (RWIX) : origin=0x41010000 length=0x8000
/* MCU0_R5F_1 SoC view */
MCU0_R5F1_ATCM (RWIX) : origin=0x41400000 length=0x8000
MCU0_R5F1_BTCM (RWIX) : origin=0x41410000 length=0x8000
/* Fully avaialble for apps. Used by SBL to load SYSFW */
OCMRAM_LOW (RWIX) : origin=0x41C00100 length=0x40600 - 0x100 /* ~257KB */
/* MCU0 memory used for SBL. Avaiable after boot for app starts for dynamic use */
SBL_RESERVED (RWIX) : origin=0x41C40600 length=0x60000 - 0x40600 /* ~126KB */
/* MCU0 share locations */
OCMRAM (RWIX) : origin=0x41C60000 length=0x20000 - 0x1000 /* ~124KB */
/* AM65XX M4 locations */
MSMC3 (RWIX) : origin=0x70000000 length=0xF0000 /* 1MB - 64K */
/* Reserved for DMSC */
MSMC3_DMSC (RWIX) : origin=0x700F0000 length=0x10000 /* 64K */
MSMC3_H (RWIX) : origin=0x70100000 length=0xF2000 /* 1MB -56K */
MSMC3_NOCACHE (RWIX) : origin=0x701F2000 length=0xE000 /* 56K */
DDR0 (RWIX) : origin=0x80000000 length=0x80000000 /* 2GB */
/* Additional memory settings */
} /* end of MEMORY */
Regards,
Hungwei

