Hi,
I develop KEAZ128 MCU with S32DS.When running to the code below(s==4,or2),the MCU stop running.
if (s==4) {
*(CCP_DWORD*)d = *(CCP_DWORD*)p;
} else if (s==2) {
*(CCP_WORD*)d = *(CCP_WORD*)p;
} else {
*d = *p;
}

But, if I change the code to below, it's running ok. I guess the problem it's the pointer.
But the same code running ok on S32K144 MCU.
So, why?
CCP_BYTE i;
if (s==4) {
for(i = 0; i < 4; i++)
{
*d++ = *p++;
}
} else if (s==2) {
for(i = 0; i < 2; i++)
{
*d++ = *p++;
}
} else {
*d = *p;
}