Hi Team,
I am trying produce FIT exception.
However, after executing this code, the board resets then enters the FIT exception handler. Could you please let me know if any additional configuration or changes are required to correctly trigger and handle the FIT exception?
Thank you for your support.
Best regards,
Pavan
Hello,
The FIT exception should work once the exception infrastructure is properly configured.
Please verify:
Since the board resets before reaching the FIT handler, please also check the RGM reset status registers to identify the reset source.
Reference: FIT exception generation is described in AN2865 Section 3.
Best regards,
Peter
Hello,
I’d first check that the FIT enable bit in the TCR is set correctly and that the corresponding exception vector is properly initialized. Also make sure the exception/MSR configuration allows the FIT interrupt to be taken.
One thing that stands out is writing the same value to TCR twice:
asm("li r0, 0x8000");
asm("mtspr TCR, r0");
asm("mtspr TCR, r0");
If your intention is simply to force the FIT event, you may not need the second write. The exact behavior also depends on the PowerPC core and the TCR bit definitions for that specific device.
Hello,
Thank you for the update. Since you are using FIT, IVOR11 is the correct vector. Please additionally verify:
The value of TSR is particularly important. If TSR[FIS] is set but the ISR is not entered, the FIT is being generated but the exception dispatch path is not functioning correctly.
Best regards,
Peter