Hi,
My application under TI RTOS runs for a while then it terminates. Please see the screen capture below. My platform is the Tiva C Launchpad EK-TM4C123. (This box does not allow me to copy a screen capture?)
My application can run from a few seconds to about 40 minutes before it terminates. In my application, a hardware interrupt comes in from Port C periodically once every 3 mS. It calls the ISR handler syncManagerISR(), then some SPI transfers take place. Please see the code file attached.
In the stack dump. It always starts from 0xFFFFFFFC. I don’t know how to interpret the register dump in the Console window.
I am new to TI RTOS, could you give me some tips on how to debug this problem?
Thank you.
Jonathan
FSR = 0x0000
HFSR = 0x40000000
DFSR = 0x0000000b
MMAR = 0xe000ed34
BFAR = 0xe000ed38
AFSR = 0x00000000
Terminating execution...
Stellaris In-Circuit Debug Interface/CORTEX_M4_0 (Suspended)
loader_exit() at exit.c:52 0x000048CC
abort() at exit.c:117 0x000048D6
exit(int)() at exit.c:108 0x00004900
xdc_runtime_System_exit__E(int)() at System.c:133 0x00005BE2
ti_sysbios_BIOS_exitFunc__I(int)() at spiloopback_pem4f.c:2,558 0x00005C14
ti_sysbios_BIOS_exit__E(int)() at BIOS.c:109 0x00005DA8
ti_sysbios_family_arm_m3_Hwi_excHandlerMax__I(unsigned int *, unsigned int)() at Hwi.c:973 0x00000C50
ti_sysbios_family_arm_m3_Hwi_excHandler__I(unsigned int *, unsigned int)() at Hwi.c:863 0x00005756
0xFFFFFFFC (no symbols are defined for 0xFFFFFFFC)
/* */
/* LOADER_EXIT - */
/* */
/* SET C$$EXIT LABEL SO THE DEBUGGER KNOWS WHEN THE C++ PROGRAM HAS */
/* COMPLETED. THIS CAN BE REMOVED IF THE DEBUGGER IS NOT USED. */
/* */
/****************************************************************************/
static void loader_exit(void)
{
#if defined(EMBED_CIO_BP)
__asm(" .global C$$EXITE");
#if defined(__32bis__)
__asm("C$$EXITE:.word 0xDEFED0FE");
#else
__asm(" .align 4");
#if defined(__big_endian__)
__asm("C$$EXITE:.half 0xDEFE");
#else
__asm("C$$EXITE:.half 0xD0FE");
#endif /* __big_endian__ */
#endif /* __32bis__ */
#else /* !EMBED_CIO_BP */
__asm(" .global C$$EXIT");
__asm("C$$EXIT: nop");
#endif
}