I have defined some shared RAM as shown below (The memory area is outside the memory area of the three cores)
1
2 then defines a variable“a_b” in the main function
The main function is as follows
After added these variables in shared memory,The demo board must be pressed after the power is turned on to start,Simple power-on cannot make the demo board work。
Hi,
is that RAM block initialized in startup files? By default, each core has allocated 256KB of RAM memory in multicore project. And each core initializes own RAM block in own startup file.
You can see in linker file for Z4_0 core:
SRAM_SIZE = 256K;
/* Define SRAM Base Address */
SRAM_BASE_ADDR = 0x40000000;
For Z4_1 core:
SRAM_SIZE = 256K;
/* Define SRAM Base Address */
SRAM_BASE_ADDR = 0x40040000;
And for Z2_2 core:
SRAM_SIZE = 256K;
/* Define SRAM Base Address */
SRAM_BASE_ADDR = 0x40080000;
Because each core initializes own block by itseld, each core must be started to have all RAM initialized.
You wrote that the shared memory is outside of RAM of all three cores, so the question is if it is initialized ever.
You can modify this piece of code in startup.s for Z4_0 core and add the same initialization for shared block:
Regards,
Lukas