Part Number: J721S2XSOMXEVM
Hi,
I'm working on a custom board using a J721s2 chip with C7 DSPs. Using the default memory configuration from the evaluation and example projects we currently have 1GB of external DDR memory configured:
/*!
* ======== MAIR7 ========
* Memory attribute 7
*
* Default is normal outer and inner write-back cacheable non-transient
* memory.
*/
attrs.attrIndx = Mmu_AttrIndx_MAIR7;
// MAIR7 has a default attribute type of Inner and Outer
// write-back cacheable
(void)Mmu_map(0x80000000U, 0x80000000U, 0x20000000U, &attrs, isSecure); /* DDR */
(void)Mmu_map(0xA0000000U, 0xA0000000U, 0x20000000U, &attrs, isSecure); /* DDR */
The first section is for the ARM/Linux side and the second section is divided between the other cores; MCUs and DSPs.
I have an 8GB memory on the board, so my question is how to go about making the rest of the memory available to the DSPs. I would like to customize the memory_map_defines.inc file:
#define C7x_1_ALLOCATED_START MCU3_1_ALLOCATED_START + CORE_TOTAL_SIZE /* 0xA6000000 */
#define C7x_2_ALLOCATED_START C7x_1_ALLOCATED_START + CORE_TOTAL_SIZE /* 0xA7000000 */
to give more memory to the C7x_1 DSP. I understand also the changes to this memory mapping will need to be reflected in the ARM/Linux system as well.
Thanks,
Matt