View Single Post
  #3   Spotlight this post!  
Unread 17-02-2005, 10:09
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: missing old_port

Quote:
Originally Posted by stephenthe1
MPLINK 3.90, Linker
Copyright (c) 2004 Microchip Technology Inc.
Error - could not find definition of symbol 'Old_Port_B' in file 'C:\1008\build\interrupts.o'.
Errors : 1


what's wrong here?
Search your project for references to that symbol. Here's the clue in the interrupts.c file:
Code:
	Old_Port_B = PORTB;			// initialize the Old_Port_B variable (in user_routines_fast.c)
Immediately after all the #includes in user_routines.fast.c, you should have this:
Code:
unsigned char Old_Port_B = 0xFF;// state of port b the last time
				// this function was called
It's there in the downloaded frc_interrupts example. You probably copied what you thought was important from it into your own files, and missed this one.