Hi,everyone ,
I use C6678EVM and want to use MPAX registers to map the same DDR logical address to different physical address for every core ,the demo's code as following :
#if 1 lvMarPtr = (volatile uint32_t*)0x08000020; H_Value = 0x90000017 ; if (coreNum == 0) L_Value = 0x8100003f ; if (coreNum == 1) L_Value = 0x8110003f ; if (coreNum == 2) L_Value = 0x8120003f ; if (coreNum == 3) L_Value = 0x8130003f ; if (coreNum == 4) L_Value = 0x8140003f ; if (coreNum == 5) L_Value = 0x8150003f ; if (coreNum == 6) L_Value = 0x8160003f ; if (coreNum == 7) L_Value = 0x8170003f ; *lvMarPtr++ = L_Value; *lvMarPtr++ = H_Value; printMPAXOneRegisters(4) ;
In this demo,core 0.......7 can use the same logical address 0x90000000,and the global address for core1 is 0x91000000,for core2 is 0x92000000......and for core 7 is 0x97000000,the demo is ok.
And now,I want core 0......7 can use the same logical address 0x80000000,and the global address for core1 is 0x81000000,for core2 is 0x82000000......and for core7 is 0x87000000.It is possible ?
How can I change the code ?
Regards,
Simon