when called Z7CoresInit() inside main() of Z4 cannot build the project.
getting a error : real-ld.exe: ./SDK/middleware/rsdk/platform_setup/src/PPC/gen_sdk/platform_setup_sdk_sa.o: the target (C1_CODE_START_ADDR) of a R_PPC_VLE_SDA21 relocation is in the wrong output section (*ABS*)
but when using a address location instead of 'C1_CODE_START_ADDR', not getting any error.
void Z7CoresInit(uint8_t coreId)
{
uint32_t mctl = MC_ME->MCTL;
//C1_CODE_START_ADDR = 0x1080000;
switch (coreId)
{
case 1:
// enable core 1 in all modes
MC_ME->CCTL2 = 0x00FE;
// Set Start address for core 1: Will reset and start
MC_ME->CADDR2 = ((uint32_t)&C1_CODE_START_ADDR) | 0x1;
break;
Thanks in Advance,