Go to Post "The rio has a boulder sized hole though it? *shrug* Just duct tape it. That doesn't let the code out, right?" - Bkeeneykid [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 22-08-2009, 17:15
rokenboker rokenboker is offline
Registered User
FRC #1236
 
Join Date: Sep 2008
Location: Danville
Posts: 29
rokenboker is an unknown quantity at this point
Question MPLAB error: Error [1027] unable to locate 'serial_ports.h'

hi, i downloaded the new MPLAB v8.33 and i am trying to get the program to locate all necessary documents. any ideas are welcome.
  #2   Spotlight this post!  
Unread 22-08-2009, 23:53
lynca's Avatar
lynca lynca is online now
Andrew Lynch
FRC #2587 (DiscoBots)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Houston, TX
Posts: 1,612
lynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond repute
Send a message via AIM to lynca
Re: MPLAB error: Error [1027] unable to locate 'serial_ports.h'

Which controller are you attempting to get working ?
1. VEX
2. FRC IFI Robot Controller (year specific helps) ?

What code template are you working with ?
1. Kevin Watson's code - http://www.kevin.org/frc/
2. VEX code base
3. WPI Library
__________________
History: 624 - Cryptonite --> 118 - Robonauts --> 2158 - AusTIN CANS --> 2587 DiscoBots
Bio: Andrew Lynch "How I Work" ---- LinkedIn , Facebook, Twitter
  #3   Spotlight this post!  
Unread 23-08-2009, 01:09
rokenboker rokenboker is offline
Registered User
FRC #1236
 
Join Date: Sep 2008
Location: Danville
Posts: 29
rokenboker is an unknown quantity at this point
Re: MPLAB error: Error [1027] unable to locate 'serial_ports.h'

the controller is the FRC IFI PIC18F8722.

Kevin Watson's Code: frc_camera_s_2.zip

Wii FRC bits: http://www.chiefdelphi.com/media/papers/2078
(this is to get the IFI bot controller to run off of a wiimote and nunchuk)

anything else i can provide you with?
  #4   Spotlight this post!  
Unread 23-08-2009, 09:32
Dave Scheck's Avatar
Dave Scheck Dave Scheck is online now
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: MPLAB error: Error [1027] unable to locate 'serial_ports.h'

That basically means that something is doing a #include "serial_ports.h" (probably in the camera code), but the compiler can't find that file. If you see that file in your filesystem, the way to fix it is to add it to your include path (directory). There's a setting somewhere in the project settings (something like Project -> Build Options... -> Project).

Do a Windows find for serial_ports.h if you're not sure if you don't have the file or need the path.

If you don't have the file (I'm not sure if that comes with the camera code or not), try grabbing Kevin's serial port code (frc_serial_ports.zip)
http://kevin.org/frc/
  #5   Spotlight this post!  
Unread 23-08-2009, 11:26
rokenboker rokenboker is offline
Registered User
FRC #1236
 
Join Date: Sep 2008
Location: Danville
Posts: 29
rokenboker is an unknown quantity at this point
Re: MPLAB error: Error [1027] unable to locate 'serial_ports.h'

sorry, but that gave me more errors than before. any other ideas?
  #6   Spotlight this post!  
Unread 23-08-2009, 11:36
Dave Scheck's Avatar
Dave Scheck Dave Scheck is online now
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: MPLAB error: Error [1027] unable to locate 'serial_ports.h'

You'll need to be more specific. The errors are telling you exactly what's wrong, you just need to understand what they're telling you. Usually the first error will clean up a lot of the following errors (i.e. if you're missing a header file, any reference to variables in that header will throw errors).

My suggestion is to copy/paste the entire output here and put it in a code block so it's readable. At that point, someone can take a look and provide suggestions
  #7   Spotlight this post!  
Unread 30-08-2009, 19:05
rokenboker rokenboker is offline
Registered User
FRC #1236
 
Join Date: Sep 2008
Location: Danville
Posts: 29
rokenboker is an unknown quantity at this point
Re: MPLAB error: Error [1027] unable to locate 'serial_ports.h'

okay, now that first error is not appearing anymore, i now have this error

C:\MPLAB\frc_camera_s_2\user_routines.c:17:Error [1027] unable to locate '_sticks.h'

here's tho whole output message:

----------------------------------------------------------------------
Debug build of project `C:\MPLAB\Wii FRC air cannon.mcp' started.
Language tool versions: MPASMWIN.exe v5.33, mplink.exe v4.33, mcc18.exe v3.33
Preprocessor symbol `__DEBUG' is defined.
Sun Aug 30 19:01:10 2009
----------------------------------------------------------------------
Make: The target "C:\MPLAB\user_routines_fast.o" is up to date.
Make: The target "C:\MPLAB\camera.o" is up to date.
Make: The target "C:\MPLAB\ifi_startup.o" is up to date.
Make: The target "C:\MPLAB\ifi_utilities.o" is up to date.
Make: The target "C:\MPLAB\main.o" is up to date.
Make: The target "C:\MPLAB\serial_ports.o" is up to date.
Make: The target "C:\MPLAB\terminal.o" is up to date.
Make: The target "C:\MPLAB\tracking.o" is up to date.
Make: The target "C:\MPLAB\user_routines.o" is out of date.
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F8722 "frc_camera_s_2\user_routines.c" -fo="user_routines.o" -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\MPLAB\frc_camera_s_2\user_routines.c:17:Error [1027] unable to locate '_sticks.h'
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `C:\MPLAB\Wii FRC air cannon.mcp' failed.
Language tool versions: MPASMWIN.exe v5.33, mplink.exe v4.33, mcc18.exe v3.33
Preprocessor symbol `__DEBUG' is defined.
Sun Aug 30 19:01:14 2009
----------------------------------------------------------------------
BUILD FAILED


hope this helps us figure this out.
  #8   Spotlight this post!  
Unread 30-08-2009, 20:20
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,572
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: MPLAB error: Error [1027] unable to locate 'serial_ports.h'

You are using a very new version of the C18 compiler, and a very old version of Kevin's camera code that wasn't designed to work with newer versions of the C18 compiler.

Kevin's code that supports C18 version 3.0 or higher does not have built in support the camera. If you really need camera support, I recommend starting with ifi_frc_sensor.zip and then start porting the camera code over. It may be a large task. If you just need the serial port support, it's built in to ifi_frc_sensor.zip, but you may still have to do some porting of the wii code, since I'm not sure how much the API changed over time.

In either case, you should be prepared to spend some time digging into the internals of how the code works. It may not be a quick change like it seems that you are expecting.

Alternately, if you could go back to using the version 2.4 of C18, and it might be easier.
  #9   Spotlight this post!  
Unread 01-09-2009, 20:45
rokenboker rokenboker is offline
Registered User
FRC #1236
 
Join Date: Sep 2008
Location: Danville
Posts: 29
rokenboker is an unknown quantity at this point
Re: MPLAB error: Error [1027] unable to locate 'serial_ports.h'

Quote:
Originally Posted by Joe Ross View Post
You are using a very new version of the C18 compiler, and a very old version of Kevin's camera code that wasn't designed to work with newer versions of the C18 compiler.

Kevin's code that supports C18 version 3.0 or higher does not have built in support the camera. If you really need camera support, I recommend starting with ifi_frc_sensor.zip and then start porting the camera code over. It may be a large task. If you just need the serial port support, it's built in to ifi_frc_sensor.zip, but you may still have to do some porting of the wii code, since I'm not sure how much the API changed over time.

In either case, you should be prepared to spend some time digging into the internals of how the code works. It may not be a quick change like it seems that you are expecting.

Alternately, if you could go back to using the version 2.4 of C18, and it might be easier.


thanks, do you know where i can get the 2.4 version of C18 compiler? and, this did not help me with the "unable to locate 'sticks.h'" problem.
  #10   Spotlight this post!  
Unread 02-09-2009, 10:28
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,817
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: MPLAB error: Error [1027] unable to locate 'serial_ports.h'

Quote:
Originally Posted by rokenboker View Post
Do you know where i can get the 2.4 version of C18 compiler?
The older version was distributed with the KOP over the past 4 years (2005-2008)
The 2.2 version was in the KOP in 2004.
It came on both the MPLAB CDs and the EasyC CDs.

I found a student version online:
https://jvex-robotics.dev.java.net/s...&folderID=4775
You might want the whole tool chain (the Vex controller is compatible with the FRC IFI controllers as far as tools go):
https://jvex-robotics.dev.java.net/ToolChainSetup.html
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 02-09-2009 at 11:04.
  #11   Spotlight this post!  
Unread 03-09-2009, 16:29
rokenboker rokenboker is offline
Registered User
FRC #1236
 
Join Date: Sep 2008
Location: Danville
Posts: 29
rokenboker is an unknown quantity at this point
Re: MPLAB error: Error [1027] unable to locate 'serial_ports.h'

sorry, but that did not help either. thanks though.
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
Generic error in MPLAB domoarigato Programming 11 01-12-2008 14:21
Help! unable to locate 'p18cxxx.h' ducttapehaxor Programming 1 24-01-2006 16:13
Error: Unable to locate 'stdio.h' phrontist Programming 4 09-02-2005 19:59
MPLAB build error cabbagekid2 Programming 7 12-01-2005 13:36
MPlab error ryan_f Programming 9 24-05-2004 07:30


All times are GMT -5. The time now is 13:26.

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