Can't get smarttrap to fire...
Posted: Wed Aug 21, 2013 1:17 pm
I have a trap being hit. I assume since I can't track the PC back to any code listed in my map file that I'm going off into the weeds. But I'm not sure where. With no smarttraps enabled, I get this output in the MTTY:
When I enable smarttraps Using the following include and calls in my main.cpp, I get absolutely no indication in the MTTY that we crashed besides the fact that the unit rebooted.
Any ideas what I may be doing wrong with the traps?
Code: Select all
Trap occured
Vector=Access Error FMT =03 SR =2004 FS =0C
Faulted PC = 0201317E
D0:00000000 00000000 00000023 0000024F 00000001 021A9480 021A9478 00000024
A0:00000003 40000204 021A9504 0201CED0 021A944E 021A94B0 001A940C 021A93F4
Code: Select all
...
#ifdef _DEBUG
#include <NetworkDebug.h>
#else
#include <smarttrap.h>
#endif
void UserMain( void *pd )
{
InitializeStack();
if ( EthernetIP == 0 )
{
iprintf( "Trying DHCP\n" );
GetDHCPAddress();
iprintf( "DHCP assigned the IP address of :" );
ShowIP( EthernetIP );
iprintf( "\n" );
}
else
{
iprintf( "Static IP set to:" );
ShowIP( EthernetIP );
iprintf( "\n" );
}
#ifdef _DEBUG
InitializeNetworkGDB();
#else
EnableSmartTraps();
#endif
...
}