SPD 1.0.1 has been setup successfully in S32DS 3.5. I tried to add some codes of EIM in example code SPD_101_S32K344 as below :
Main()
{
eMcem_Init(&eMcem_Config_0);
Clock_Ip_Init(&Clock_Ip_aClockConfig[0]);
eMcem_SetupInjectionChannel(EMCEM_EIM_CH_0, 0, 1);
eMcem_InjectFault(EMCEM_EIM_CH_0);
for(;;)
{
if(exit_code != 0)
{
break;
}
}
return exit_code;
}
Errors happened in debugging code "pEim->EICHD[u16EimChannel].WORD[0] = channelCfg.EICHD_WORD[0];" of Function eMcem_Eim_SetupInjectionChannel (), and jump to
void HardFault_Handler(void)
{
while(TRUE) {};
}