-
pic18f4585 and CAN
HELP,
I can not compile my program with CAN registers for pic18f4585 chip and PBP PRO 2.47, BUT for pic18f4685,458,4580 all is OK.
pic18f4585 is soldered to my pcb and i can not replace it.
Is this pbp2.47 error?
Can I compile my program for pic18f4685 chip and program hex file to pic18f4585 chip?
Thanks.
-
What is the error-message ?
-
Errors (bad expression)
during compilation appear when I used registers from CAN module: RXB0D0,RXB0D1,
RXB0D2,...,RXB0D7,RXB1D0-RXB1D7,RXB1CON,RXB1CON, - all registers from CAN module.
When I compiled code for pic18f4580,4685 all is OK.
I used pbp pro 2.47,mpasm v.5.11 from mplab 7.60.
-
Open 18F4585.BAS file in your PBP directory.
Add include "PIC18CAN.BAS" just below include "PIC18EXT.BAS".
Should look like this;
include "PIC18EXT.BAS"
include "PIC18CAN.BAS"
Save the file. You should be good to go.
-
Thanks, Bruce
all OK!!!!!!!!!!!