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.
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
Is there a Generate_Relay function in the new code or do I need to make one? I didn’t see one in the old code, but I could have just missed it.
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.
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.