PDA

View Full Version : pic18f4585 and CAN



dip1
- 10th October 2007, 20:22
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.

BigWumpus
- 10th October 2007, 22:57
What is the error-message ?

dip1
- 11th October 2007, 10:39
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.

Bruce
- 11th October 2007, 12:29
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.

dip1
- 11th October 2007, 12:53
Thanks, Bruce

all OK!!!!!!!!!!!