Hello,
First of all thanks for your response in details and asking questions.
My understanding is we do not do read while write. (I will check in more details).
We are using Low Address Space block L4 and L5. (0x00020000 & 0x00030000). So we are using partition 2 only. Also to add we are using freescale ee driver to deal with EEPROM. My understanding is as we only use one partition so there is no question of accessing partition. Please correct me here if my understanding is incorrect.
Since this issue, I configured IVOR and wrote my functions in All IVOR to get information on CAN to know which IVOR it had been to as soon as reset occurred. I am not getting any thing out on CAN as of now. May be it is not getting time to through out on CAN by the time reset happen. I did not tried with debugger, i will try that. Also struggled with IVOR configuration as there is no sample code available anywhere at least i did not saw any where. (Please share if you have any.) The sample code i did to configure IVOR as below:
***********************************************************************************
asm void ivor_branch_table_p0(void) {
nofralloc
.align SIXTEEN_BYTES
IVOR0trap: b SafeRTOS_ApplicationErrorHook1 /* Critical Input interrupt handler */
.align SIXTEEN_BYTES
IVOR1trap: b SafeRTOS_ApplicationErrorHook2 /* Machine check / (NMI) interrupt handler */
.align SIXTEEN_BYTES
IVOR2trap: b SafeRTOS_ApplicationErrorHook3 /* Data Storage interrupt handler */
*****************************************************************************************************************************************
I tried reading register RGM_FES and RGM_DES but not getting any content. Looks like getting cleared while restart. This section I need to understand in more details.
However I see some functions which clears those register by writing 1 (FF's) using function __clearFaultFlags() inside file MPC5643L_HWInit.c. I am working on that to stop clearing this.
Please provide your comments if any on this changes and how to handle it.
Looking forward to your response.
Thanks