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.

IWR1443BOOST: How to modify iwr1443 program memory TCMA size?

Part Number: IWR1443BOOST
Other Parts Discussed in Thread: IWR1443

In the iwr1443 demo program, the default configuration TCMA (R4F Program RAM) is 128K, the TCMB (R4F Data RAM) is 64K, and the DSS_L3 (Radar Data Memory) is 256K as follows: In the r4f_linker.cmd file,

MEMORY{                                                                                         
VECTORS (X) :        origin=0x00000000 length=0x00000100
PROG_RAM (RX) : origin=0x00000100 length=0x0001FF00
DATA_RAM (RW) : origin=0x08000000 length=0x00010000
L3_RAM (RW) :      origin=0x51020000 length=0x00040000
HWA_RAM (RW) : origin=0x52030000 length=0x00010000
}                                                                                                          

Now, our program code size exceeds 128K, we tried the following methods will TCMA (R4F Program RAM) extended to 256K, are not successful, the steps are as follows:

First, in the r4f_linker.cmd file, "PROG_RAM (RX): origin = 0x0000000100 length = 0x0001FF00" is changed to: "PROG_RAM (RX): origin = 0x00000100 length = 0x0003FF00", compile and download, can not run.

Then, add the following code to the SOC_deviceInit() function:
ptrSOCDriverMCB->ptrTopRCMRegs->DSSMEMBANKEN=ptrSOCDriverMCB->ptrTopRCMRegs->DSSMEMBANKEN&0xFFFFFFFC; // Bank0, bank1 is disabled in DSS
ptrSOCDriverMCB->ptrTopRCMRegs->TCMAMEMBANK_EN=ptrSOCDriverMCB->ptrTopRCMRegs->TCMAMEMBANK_EN|0x3;         // Bank0, bank1 is disabled in TCMA
compile and download, can not run.

Finally, in the SOC_mpu_config () function, the region 2, TCMA IRAM code fragment,
_mpuSetRegionSizeRegister_ (mpuREGION_ENABLE | MPU_126_KB) is modified to _mpuSetRegionSizeRegister_ (mpuREGION_ENABLE | MPU_256_KB); compile download and can not run.

What should we do to achieve TCMA (R4F Program RAM) extended to 256K, or other size?

Regards,
line

  • Hi Line,

    We are aware this issue which is in xRW14xx ES1.0 and 2.0 version. In our current xWR1443 ROM bootloader implementation, there is a limitation that the additional TCMA region allocated from the shared memory pool cannot be loaded to. This is due to the MPU settings in the earlier ROM bootloader that did not account for the additional memory that can be allocated.

    We are working on a workaround solution. Even with the workaround, the max size of TCMA can only be 196KB. The workaround is working only in ccs debug mode and we are actively working to make it work in flashed demo mode.

    This issue will be resolved in ES3.0.

    Let me know if TCMA < 196KB is OK and if you want to give it a try for the work around in ccs debug mode.

    Thanks and Regards,

    Michelle