Thread: Invalid Address
View Single Post
  #5   Spotlight this post!  
Unread 17-04-2008, 19:09
Jay Lundy Jay Lundy is offline
Programmer/Driver 2001-2004
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Berkeley, CA
Posts: 320
Jay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to all
Re: Invalid Address

If you want to program starting from scratch on the RC, there are two things you're going to have to deal with:

1. There are 2 PIC18F8722's in the RC, the master and the user. You have no control over the master processor and full control of the user. The master and the user are linked and communicate with each other. I think you can safely ignore the data sent from master to user, but if you don't send data from user to master about every 25 ms (40 Hz), then the master will kill the RC.

2. When IFI loader downloads code onto the user, it adds a bootloader to 0x000 through 0x7FF. This means you have to add 0x800 to the reset vector and interrupt vectors, and you also have to make sure none of your code gets placed in 0x000 to 0x7FF (with the linker script).

It's much easier to just start with the default code and take out things you don't need.