Hello to all.
I am having a reset issue in my code, without success in finding the cause of the reset.
I am using TM4C123FH6PM device,
I debugged the code and put breakpoints at all points where it performs software reset (ROM_SysCtlReset), also i put breakpoints at the FaultISR, NmiSR and IntDefaultISR to check if it enters any of these conditions.
Then i found out the code goes directly to the reset handler:
void ResetISR(void)
{
HWREG(NVIC_CPAC) = ((HWREG(NVIC_CPAC) &
~(NVIC_CPAC_CP10_M | NVIC_CPAC_CP11_M)) |
NVIC_CPAC_CP10_FULL | NVIC_CPAC_CP11_FULL);
__iar_program_start();
}
At the time the code reaches the reset handler, I tried checking the registers but didn't find any clue: PC points to the reset command line, LR is 0xFFFFFFFF, SP points to 0x2000779C which in memory is 0x00, 0x00, 0x00, 0x00 and from there the memory just shows 0xFF. The NVIC_FAULT_STAT (0xE000.ED28) just shows 0x00000000.
I'll appreciate any help with this. Thanks in advance.