Go to Post It definitely looked like a penalty, but in FRC if it looks like a penalty and smells like a penalty, well, unfortunately it might not be. - Basel A [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-03-2007, 19:45
Guru's Avatar
Guru Guru is offline
Executive Programmer
FRC #0912 (Iron Lyons)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Etobicoke (North York)
Posts: 12
Guru is an unknown quantity at this point
Exclamation GTS Encoder Compilation Error

1) We take Kevin's encoder project from his website.
2) We remove the phase B logic.
3) We try to compile.
4) We get an error saying:
Code:
\frc_encoder\frc_encoder\encoder.c:130:Error [1205] unknown member 'INT3IP' in '__tag_223' \frc_encoder\frc_encoder\encoder.c:130:Error [1131] type mismatch in assignment
5) We find the error is occurring here:
Code:
// interrupt 2 is low priority INTCON2bits.INT3IP = 0;
------------------------
If we remove the segment of code, the interrupt is always on high priority and messes other things up. We'd be very gracious for any solutions.
__________________
\/\__Under Construction__/\/
  #2   Spotlight this post!  
Unread 14-03-2007, 19:54
Jake M Jake M is offline
void* Jake;
FRC #1178 (DURT)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Missouri
Posts: 118
Jake M has a spectacular aura aboutJake M has a spectacular aura about
Re: GTS Encoder Compilation Error

Seen it before. There's what appears to be a typo in one of the system's .h files, p18f8722.h. It may be in others as well, but I assume it's this one you're using. Just do a text search for INT3P and change it to INT3IP.
__________________
Code:
void function(void)
 {
  function();
 }
  #3   Spotlight this post!  
Unread 14-03-2007, 20:27
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,559
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: GTS Encoder Compilation Error

Don't forget to read the documentation, specifically step 9 of encoder_readme.txt.
  #4   Spotlight this post!  
Unread 15-03-2007, 11:38
Guru's Avatar
Guru Guru is offline
Executive Programmer
FRC #0912 (Iron Lyons)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Etobicoke (North York)
Posts: 12
Guru is an unknown quantity at this point
Smile Re: GTS Encoder Compilation Error

Thank you very much, we did follow the readme, but we must have missed that. Our program now compiles without error. Thanks again.
__________________
\/\__Under Construction__/\/
  #5   Spotlight this post!  
Unread 13-02-2008, 14:20
SmithWest SmithWest is offline
Registered User
FRC #2495 (Hamilton West Robotics)
Team Role: Teacher
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Hamilton NJ
Posts: 9
SmithWest is an unknown quantity at this point
Re: GTS Encoder Compilation Error

Hey folks, looking for some help with a problem that has been posted about a few times already. It involves the typo in the p18f8722.h file.

I've gone in an edited the typo from INT3P to INT3IP in that .h file and I still receive this error:

Code:
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "gear_tooth.c" -fo="gear_tooth.o" /i"C:\mcc18\h" -D_FRC_BOARD -D_LARGE_CODE -D_DONT_USE_TMR0 -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-

\FrcCode_2007_8722\gear_tooth.c:71:Error [1205] unknown member 'INT3IP' in '__tag_248'
\FrcCode_2007_8722\gear_tooth.c:71:Error [1131] type mismatch in assignment
Another mentor sent me his .h file and I over-wrote mine and it still didn't compile. I have some knowledge of programming, but details like this elude me. Thanks for any help you can offer.
  #6   Spotlight this post!  
Unread 13-02-2008, 14:40
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: GTS Encoder Compilation Error

Quote:
Originally Posted by SmithWest View Post
Hey folks, looking for some help with a problem that has been posted about a few times already. It involves the typo in the p18f8722.h file.

I've gone in an edited the typo from INT3P to INT3IP in that .h file and I still receive this error:

Code:
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "gear_tooth.c" -fo="gear_tooth.o" /i"C:\mcc18\h" -D_FRC_BOARD -D_LARGE_CODE -D_DONT_USE_TMR0 -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
 
\FrcCode_2007_8722\gear_tooth.c:71:Error [1205] unknown member 'INT3IP' in '__tag_248'
\FrcCode_2007_8722\gear_tooth.c:71:Error [1131] type mismatch in assignment
Another mentor sent me his .h file and I over-wrote mine and it still didn't compile. I have some knowledge of programming, but details like this elude me. Thanks for any help you can offer.
Did you drop the new 18f8722.h file into the compiler's "h" directory (i.e., c:\mcc18\h)? If not, the compiler won't find it and you'll continue to receive this error.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #7   Spotlight this post!  
Unread 13-02-2008, 15:39
SmithWest SmithWest is offline
Registered User
FRC #2495 (Hamilton West Robotics)
Team Role: Teacher
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Hamilton NJ
Posts: 9
SmithWest is an unknown quantity at this point
Re: GTS Encoder Compilation Error

Quote:
Originally Posted by Kevin Watson View Post
Did you drop the new 18f8722.h file into the compiler's "h" directory (i.e., c:\mcc18\h)? If not, the compiler won't find it and you'll continue to receive this error.

-Kevin
Yes. And then I edited the .h file and saw that it still had INT3P instead of INT3IP and I changed it manually and saved the file. I restarted MPLAB and recompiled and get that error every time.
  #8   Spotlight this post!  
Unread 13-02-2008, 15:59
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,559
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: GTS Encoder Compilation Error

Quote:
Originally Posted by SmithWest View Post
Yes. And then I edited the .h file and saw that it still had INT3P instead of INT3IP and I changed it manually and saved the file. I restarted MPLAB and recompiled and get that error every time.
You should not have needed to edit the file, you probably recreated the problem when you edited it.
  #9   Spotlight this post!  
Unread 13-02-2008, 16:27
SmithWest SmithWest is offline
Registered User
FRC #2495 (Hamilton West Robotics)
Team Role: Teacher
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Hamilton NJ
Posts: 9
SmithWest is an unknown quantity at this point
Re: GTS Encoder Compilation Error

Quote:
Originally Posted by Joe Ross View Post
You should not have needed to edit the file, you probably recreated the problem when you edited it.
I only edited it after testing it untouched and having it fail. Then I read the 5 or 6 posts about the issue and they all pointed to a very specific typo and to the best of my ability I found the problem and changed INT3P to INT3IP.
  #10   Spotlight this post!  
Unread 13-02-2008, 19:12
dcbrown dcbrown is offline
Registered User
AKA: Bud
no team
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Hollis,NH
Posts: 236
dcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud of
Re: GTS Encoder Compilation Error

Yes, this is a known bug in the provided mcc .h file.

I went through the same exercise and by changing the INT3P to INT3IP in mcc18/h/p18f8722.h it fixed the problem for me.

Is there a local copy of the the include file in your project directory? Try renaming the mcc18/h/p18f8722.h file to h_ and try recompiling. If it doesn't complain about not being able to find the file, then it is using a copy from somewhere else. Also, make sure the error is the same. I had some code that referenced the field as INT3P and fixing the include file kick the error of not being able to find INT3P -- a quick look might mistake this for INT3IP.
  #11   Spotlight this post!  
Unread 14-02-2008, 12:11
SmithWest SmithWest is offline
Registered User
FRC #2495 (Hamilton West Robotics)
Team Role: Teacher
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Hamilton NJ
Posts: 9
SmithWest is an unknown quantity at this point
Re: GTS Encoder Compilation Error

Quote:
Originally Posted by dcbrown View Post
Is there a local copy of the the include file in your project directory? Try renaming the mcc18/h/p18f8722.h file to h_ and try recompiling. If it doesn't complain about not being able to find the file, then it is using a copy from somewhere else. Also, make sure the error is the same. I had some code that referenced the field as INT3P and fixing the include file kick the error of not being able to find INT3P -- a quick look might mistake this for INT3IP.
Good suggestion for the file rename. I did that, and the compiler couldn't find the file anymore. Changed it back and get the same compiler error.

Not sure what you mean in your second point. I opend the 8722.h file and searched for all INT3P and changed it to INT3IP but the error persists.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Encoder, GTS, Gyro, Camera != Work purduephotog Programming 1 18-02-2007 17:20
Encoder Error Anime-niac_2.9 Programming 1 27-01-2007 16:23
GTS Code Error (the red light of doom!) Denz Programming 9 07-04-2006 17:39
FIRST DVD Compilation Mark McLeod General Forum 10 14-12-2005 02:02


All times are GMT -5. The time now is 09:32.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi