Hi,
I was posting a similar question.
I also checkout this post:
https://community.nxp.com/t5/S32K/Would-you-share-the-s32k3-RTOS-sample-code-for-refer/m-p/1457368#M...
And download the code, but it is not helping.
I need to configure the TCM as system RAM, as according to the Reference Manual.
I tried some configuration but with no luck...in the AN13388 is contained some code. Particularly:
// Example 5. TCM Configured as System RAM
/********************************** START TCM_Configured as System RAM *****************************/
MC_ME->PRTN2_COFB1_CLKEN |= MC_ME_PRTN2_COFB1_CLKEN_REQ62(1); /* PRTN2_COFB1_CLKEN_[REQ62] = 1 */
/* Enable clock for TCM for CM7_0 */
MC_ME->PRTN2_COFB1_CLKEN |= MC_ME_PRTN2_COFB1_CLKEN_REQ63(1); /* PRTN2_COFB1_CLKEN_[REQ63] = 1 */
/* Enable clock for TCM for CM7_1 */
DCM_GPR->DCMRWF4 |= DCM_GPR_DCMRWF4_cm7_0_cpuwait(1); /* DCMRWF4[CM7_0_CPUWAIT] = 1 */
/* Wait Mode for CM7_0 */
DCM_GPR->DCMRWF4 |= DCM_GPR_DCMRWF4_cm7_1_cpuwait(1); /* DCMRWF4[CM7_1_CPUWAIT] = 1 */
/* Wait Mode for CM7_1 */
MC_ME->PRTN0_CORE0_PCONF |= MC_ME_PRTN0_CORE0_PCONF_CCE(1); /* PRTN0_CORE0_PCONF[CCE] = 1 */
/* Enable Clock for CM7_0 */
MC_ME->PRTN0_CORE1_PCONF |= MC_ME_PRTN0_CORE1_PCONF_CCE(1); /* PRTN0_CORE1_PCONF[CCE] = 1 */
/* Enable Clock for CM7_1 */
/********************************** END TCM_Configured as System RAM *******************************/
But this is not for a S32K31x. My question:
1. Is it possible to configure TCM as system RAM with a monocore micro?
2. Is there a demo or a tutorial for that? The Reference manual provide a general description for it.