Other Parts Discussed in Thread: OMAP-L138
I'm getting a strange error on an omap-l138, with dsp/bios 5. My application launches and then 5 seconds later, the audio task begins (msbsp). I see a few frame clocks go by and then the application bombs into UTL_halt. Here is the system log message seen:
00000002 00000002 C3E8471D 00000009
EXC_exceptionHandler: EFR=0x2
00000004 D43B5600 C3E8473C 00000009
NRP=0xD43B5600
00000006 C3E84756 C3E84747 00000009
mode=supervisor
00000008 00000012 C3E8460E 00000009
Internal exception: IERR=0x00000012
0000000A 00000000 C3E8464A 00000009
Fetch packet exception
0000000C 00000000 C3E84692 00000009
Resource conflict exception
0000000E C3E84761 C3E8543C 00000009
SYS abort called with message 'Run-time exception detected, aborting'
If I put a breakpoint at hwi1, I see that B3 = 0xC3E343E4, which is the line 1851 "chanHandle->currentError = IOM_COMPLETED;" in Mcbsp.c.
On some boards, the exact same code appears to work. If I make a minor change to the code, recompile, and relaunch using dsp/link, the problem does not appear. If I rebuild the filesystem with the new binary, that appears to be working, it then breaks again.
I'm kind of unsure how to continue debugging this, is there a way to get the stack back of whatever was executing before the NMI?