|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Relays code not compiling
I know new programmers really shouldn't play with Beta code, but I had to. I am trying to port last year's code to Kevin Watsons' new MCC18 3.0+ code. I called the Generate_Relay function like in the old code, and get this error.
Code:
MPLINK 4.21, Linker Copyright (c) 2008 Microchip Technology Inc. Error - could not find definition of symbol 'Generate_Relay' in file './drttest.o'. Errors : 1 |
|
#2
|
||||
|
||||
|
Re: Relays code not compiling
I don't remember there being a "Generate_Relay" function in the old base code. The Relay output pins have no muxes, etc. between them and the user processor, as far as I know they're actually directly tied to the processor's pins.
i.e. relay1_fwd = LATEbits.LATE0 You shouldn't have to call anything. -q |
|
#3
|
|||
|
|||
|
Re: Relays code not compiling
Thanks. I guess I missed it reading through last year's code. I read through all the user stuff. However, the original programmer did not bother commenting his code well. I will look again. It has to be there somewhere. At least I know it is not something standard. Now I have an idea of where to look.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Not Compiling | popnbrown | Programming | 5 | 03-04-2008 14:55 |
| ADC_CHO not compiling in Kevin's code | Hazmatt | Programming | 2 | 13-02-2008 20:29 |
| Compiling Robot code... | greatman05 | Programming | 5 | 11-02-2008 21:50 |
| Spike Relays...How Come they are not in the Inventor files | D_Price | Technical Discussion | 2 | 28-01-2008 09:20 |
| Using Relays in Code | fred | Programming | 3 | 21-02-2004 19:29 |