View Single Post
  #7   Spotlight this post!  
Unread 10-02-2008, 16:39
robofan robofan is offline
Registered User
FRC #0540
 
Join Date: Feb 2008
Rookie Year: 2004
Location: Virginia
Posts: 2
robofan is an unknown quantity at this point
Re: MPLAB SIM : Stack Overflow Error

I solved stack overflow issue by adding the following code to ifi_frc.h:

#ifdef _SIMULATOR
#define RESET_VECTOR 0x000
#define HIGH_INT_VECTOR 0x008
#define LOW_INT_VECTOR 0x018
#else
#define RESET_VECTOR 0x800
#define HIGH_INT_VECTOR 0x808
#define LOW_INT_VECTOR 0x818
#endif

Also, you need to remove or comment out the following lines in ifi_frc.h:

//#define RESET_VECTOR 0x800
//#define HIGH_INT_VECTOR 0x808
//#define LOW_INT_VECTOR 0x818