Tool/software: TI-RTOS
Hello, I've been trying to search the forums and guides on how to configure our project to utilize the 4GB of DDR on our board instead of the default 2GB. After trying to configure our project using the Software Guidelines for EMIF, the two forum posts below, and the EMIF_RegisterConfig tools, I'm still not sure I've gotten it setup correctly.
https://e2e.ti.com/support/legacy_forums/embedded/linux/f/354/t/574408
https://e2e.ti.com/support/processors/f/791/t/680926?tisearch=e2e-sitesearch&keymatch=ddr%20size
The only location in my RTOS project I could find references to the DDR configuration was in the C:\ti\pdk_am57xx_1_0_12\packages\ti\board\src\<customBoard>\<customBoard>_ddr.c file. After modifying the values to match the output from the EMIF Tools spreadsheet, I set the LISA_MAP values to:
/* Two EMIFs in interleaved mode (2GB in total) */ /* Reset all LISA MAPs */ hMampuLsm->MAP_0 = 0x0; //0U; hMampuLsm->MAP_1 = 0x0; //0U; hMampuLsm->MAP_2 = 0x0; //0U; hMampuLsm->MAP_3 = 0x0; //0U; hDmmCfg->LISA_MAP[0U] = 0x0; //0U; hDmmCfg->LISA_MAP[1U] = 0x0; //0U; hDmmCfg->LISA_MAP[2U] = 0x0; //0U; hDmmCfg->LISA_MAP[3U] = 0x0; //0U; /* MA_LISA_MAP_i */ hMampuLsm->MAP_2 = 0x80740300; hMampuLsm->MAP_3 = 0xFF020100; /* DMM_LISA_MAP_i */ hDmmCfg->LISA_MAP[2U] = 0x80740300; hDmmCfg->LISA_MAP[3U] = 0xFF020100;
Then I modified the ti.platforms.evmAM572X configuration with the RTSC tools as shown in the screenshot. I've actually tried several different options in this editor, from 1 4GB section, or 2 2GB sections but neither seems to work. From looking at the TRM it looks like with the L3_MAIN Memory Map there is only 2GB available to EMIF1 and 2, but the MPU Memory Map it looks like you should be able to configure 4GB. I'm not sure how all that ties together with the EMIF tool and CCS configuration.
Thanks,
John