Hi Nxp Community,
I am thankful for having a chance to consult about something. I am stuck in EIM because api eMcem_Eim_SetupInjectionChannel that is necessary to inject faults always return fail. Access to pEim->EICHD[u16EimChannel].WORD[0] (address is 0x40258100) causes to BusFault_Handler(). Is there any solution? looking forward to your reply.
main() is as belows:
BR,
Sylvia
Solved! Go to Solution.
Hello Sylvia,
by default the clock for EIM module is disabled so when trying to access EIM registers a bus fault is generated. In order to enable clocks for EIM module, there can be used Power_Ip driver.
In the configuration it is needed to add POWER module:
Then in configuration of POWER module enable clock for EIM:
And then in main function call Power_Ip_SetMode API to enable the EIM clock:
Power_Ip_SetMode(&Power_Ip_aModeConfigPB[0]);
Best Regards,
Frantisek
Hello Sylvia,
by default the clock for EIM module is disabled so when trying to access EIM registers a bus fault is generated. In order to enable clocks for EIM module, there can be used Power_Ip driver.
In the configuration it is needed to add POWER module:
Then in configuration of POWER module enable clock for EIM:
And then in main function call Power_Ip_SetMode API to enable the EIM clock:
Power_Ip_SetMode(&Power_Ip_aModeConfigPB[0]);
Best Regards,
Frantisek