Dear all,
In my project, instead of SDRAM, we only used 256KB internal FlexRAM for application.
I have a question, please help me to answer it.
1. Can we put NCACHE_REGION into internal RAM, instead of SDRAM?
2. How to config MPU to enable NCACHE_REGION into FlexFRAM?
3. Can we put DMA buffer (such as UART, SPI...) into ITC RAM and define as NCACHE_REGION ?
Thank you.
Solved! Go to Solution.
Hi @huy_tv ,
1. Yes, you can put NCACHE_REGION in OCRAM, but you can't put it in DTCM or ITCM. TCM is already noncacheable.
2. There is a BOARD_ConfigMPU() function at the beginning of main(). If you look into this function, you'll find it is easy to change noncacheable area.
3. Yes, you can put DMA buffer in ITCM/DTCM/OCRAM. It should be a noncacheable space.
Regards,
Jing
Thank @jingpan for your answer.
Can i split default OCRAM 64KB into two parts with difference size? One part is OCRAM, and another part is NCACHE?
For example, the first 60KB RAM for OCRAM, last 4KB for NCACHE?
Hi,
Yes, no problem.
Regards,
Jing
Thank you in advance.
Hi @huy_tv ,
1. Yes, you can put NCACHE_REGION in OCRAM, but you can't put it in DTCM or ITCM. TCM is already noncacheable.
2. There is a BOARD_ConfigMPU() function at the beginning of main(). If you look into this function, you'll find it is easy to change noncacheable area.
3. Yes, you can put DMA buffer in ITCM/DTCM/OCRAM. It should be a noncacheable space.
Regards,
Jing