Go to Post We talked to a team in Las Vegas and next year there will be another team with a 25 drive train. The west coast may never be the same. - nuggetsyl [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 03-08-2006, 13:40
StargateFan StargateFan is offline
Registered User
no team
 
Join Date: Jul 2006
Location: Pittsburgh
Posts: 7
StargateFan is an unknown quantity at this point
Trouble using Kevin Watson's Serial Code with Vex user API

Hi,
I am trying to link the user API supplied with the Vex programming kit to a project using Kevin Watson's serial drivers. In particular, I want the program to receive data through the serial port and then move a servo. I have code that receives data through the serial port but when I tried to add a SetServo() call from the user API, I got a linking error. I linked user_api.o to the project and the error message I received was:

MPLINK 3.90, Linker
Copyright (c) 2004 Microchip Technology Inc.
Error - could not find definition of symbol 'EnableInterrupt' in file './user_api.o'.
Errors : 1

So then I linked interrupts.o (also supplied by Vex) to the project and I received this error message:

MPLINK 3.90, Linker
Copyright (c) 2004 Microchip Technology Inc.
Error - could not find definition of symbol 'Old_Port_B' in file './interrupts.o'.
Errors : 1

Then I tried linking the only other .o file supplied by Vex that didn't correspond to any of Kevin's serial port code - Start.o. But once again I received an error:

MPLINK 3.90, Linker
Copyright (c) 2004 Microchip Technology Inc.
Error - symbol 'txdata' has multiple definitions.
Errors : 1

I have no idea how these files supplied by Vex are implemented since I only have the '.o' files (in the case of user_api.o, I also have a header file but this only contains function protoypes). Has anyone else tried to use the vex user API in this way? Any help would be greatly appreciated.

Thanks.
  #2   Spotlight this post!  
Unread 17-08-2006, 01:05
swe9 swe9 is offline
Registered User
no team
 
Join Date: Apr 2006
Location: California
Posts: 10
swe9 is an unknown quantity at this point
Re: Trouble using Kevin Watson's Serial Code with Vex user API

Quote:
Originally Posted by StargateFan
Hi,
I am trying to link the user API supplied with the Vex programming kit to a project using Kevin Watson's serial drivers...
I don't use MPLAB, but your issues don't look specific to that. It seems like you're on the right track to look at the objects and the link order. The easyC compiler actually lists its link commands in the GUI if you want something to follow. You might also be able to make use of HobbyVex Not-So-easyC. The makefiles on that page have all the info needed to link properly.

You may have additional issues introduced by the serial code you're using. I have never seen it so someone else will have to tackle that part of it.
  #3   Spotlight this post!  
Unread 13-01-2007, 15:38
FoxWil's Avatar
FoxWil FoxWil is offline
The world is mine!-Stewie Griffin
AKA: Fox
FRC #1646 (Precision Guessworks)
Team Role: Programmer
 
Join Date: Nov 2006
Rookie Year: 2006
Location: Indiana
Posts: 4
FoxWil is an unknown quantity at this point
Send a message via Yahoo to FoxWil
Re: Trouble using Kevin Watson's Serial Code with Vex user API

Yah we are useing the same serial port. The program its self isnt building.
__________________
The death of one man is a tradegy, the death of a million men is a statistic.-Joesph Stalin.
  #4   Spotlight this post!  
Unread 13-01-2007, 15:42
FoxWil's Avatar
FoxWil FoxWil is offline
The world is mine!-Stewie Griffin
AKA: Fox
FRC #1646 (Precision Guessworks)
Team Role: Programmer
 
Join Date: Nov 2006
Rookie Year: 2006
Location: Indiana
Posts: 4
FoxWil is an unknown quantity at this point
Send a message via Yahoo to FoxWil
Re: Trouble using Kevin Watson's Serial Code with Vex user API

Okay fixed that we are haveing troubles with the

serial_port_one_byte_count

Function does not exist.
__________________
The death of one man is a tradegy, the death of a million men is a statistic.-Joesph Stalin.
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
Using USB with Serial Tower Mick Lego Mindstorm Discussion 11 07-11-2006 09:54
Positioning with Mr. Watson's code Zalumaskov Programming 1 12-02-2005 22:56
Kevin Watson's encoder code with RPM output MaxM Programming 2 05-02-2005 00:06
Kevin Watson's Kick-off Demo Code! Mr. Lim Programming 27 22-01-2005 03:38
EDU Demo Code: Serial Data Transmitter Using a State-Machine Kevin Watson Programming 3 28-12-2003 22:56


All times are GMT -5. The time now is 10:34.

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