Quote:
Originally Posted by Guy_E
The code has certainly no problem because it worked on the 2006 controller...
|
Are you aware that the 2005 and 2006 Robot Controllers use different microprocessors? If you're trying to run a 2006 program on a 2005 controller, it's quite reasonable for it to get confused. You should probably recompile the code with the proper library file and appropriate target CPU selected.
From the Using_Last_Years_FRC.txt file included with the 2006 default code:
Code:
To compile this project to work with your 2005 FRC (18F8520) system do the following:
1. Select the correct device from the MPLAB IDE.
Configure->Select Device->PIC18F8520
2. Replace the library file with the appropriate one.
Remove the FRC_Library.lib file and replace it with FRC_Library_8520.lib
or
Remove the FRC_alltimers.lib file and replace it with FRC_alltimers_8520.lib
3. Remove the 18f8722.lkr file and replace it with the 18f8520.lkr file
4. Rebuild your project and download the HEX file to your controller.