|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |