View Single Post
  #2   Spotlight this post!  
Unread 15-12-2006, 15:41
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Problem with the 2005 controller

Quote:
Originally Posted by Guy_E View Post
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.