![]() |
Using MPLAB SIM
I tried using the MPLAB SIM debugger to debug a program that uses WPILib. I get a Stack over flow error before the main() function is reached. Is there any way to use the MPLAB SIM debugger to debug a program that uses WPILib?
|
Re: Using MPLAB SIM
Quote:
|
Re: Using MPLAB SIM
Thanks, this solved my problem.
|
Re: Using MPLAB SIM
Quote:
CORE-E0001: Stack overflow error occurred from instruction at 0x0030b2 |
Re: Using MPLAB SIM
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 |
Re: Using MPLAB SIM
Quote:
|
| All times are GMT -5. The time now is 03:20. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi