View Single Post
  #3   Spotlight this post!  
Unread 02-02-2005, 10:06
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: pwm definition problems

You could be missing a particular compiler flag.

In MPLAB go to:
Project -> Build Options... -> Project
then the MPLAB C18 tab
Look under "Marco Definitions" and you should see _FRC_BOARD

Missing this will cause the errors you describe, because the compiler thinks you are targeting the EDU controller which takes different arguments for the Generate_PWMs command, and it only has 8 PWMs.

If this is indeed the problem click on "Add.." and type in _FRC_BOARD.
Then re-build everything.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle