View Single Post
  #12   Spotlight this post!  
Unread 01-12-2008, 14:21
Roger Roger is offline
Registered User
FRC #1153
 
Join Date: Jan 2006
Rookie Year: 1900
Location: Walpole MA
Posts: 685
Roger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond repute
Re: Generic error in MPLAB

I'm still too mellow from turkey to give you the same lecture Alan just gave you, so I'll just tell you to look at kevin.org/frc/ -- the pre-2009 code is all there. Look at what Kevin has as a starting point, "compare and contrast", "exercise is left for the student" and all. I'm going to take a guess and say look at 2007 FRC code -- Kevin greatly changed and simplified the 2008 code and probably wrote something in the header saying as much.

Code:
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "main.c" -fo="main.o" -D_FRC_BOARD -D_LARGE_CODE -D_DONT_USE_TMR0 -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
The two -D's that are bolded I've never seen before. Looking at page 95 of Kevin's link C18_3.0_users_guide.pdf (page 104 of the PDF) show them to be for macros in one of your C listings. Do a global search thru your code to find them. I'm guessing that TMR0 is one of the PIC timers; you'll have to dig deep into PIC18_reference.pdf to read about that. They are not "standard" macros in Kevin's code. The ones I have are
Code:
-Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- -mL -nw=2066 -D_FRC_BOARD
Come to think of it, I think Alan told me those last two, many moons ago. Thanks again, Alan.