View Single Post
Old 04-02-2011, 09:26 AM   #158 (permalink)
Freyguy
EV Builder
 
Freyguy's Avatar
 
Join Date: Nov 2010
Location: Macungie, PA
Posts: 157
Thanks: 15
Thanked 64 Times in 40 Posts
Build error using PIC18F2420

Any of you using the PIC18F2420 will encounter this build error if using MPLAB 8.66
************************************************** **
CONFIG Directive Error: (value "PORTBEHalting build on first failure as
> requested.
************************************************** **
For some reason it sees PORTBE as an illegal config for CCP2MX even though it is listed as valid in the PIC18F2420.INC file. I don't see this on my laptop since I am using MPLAB ver 8.56. Turns out that versions of MPLAB up to and including 8.60 will compile fine (thank you Ian!) Older versions are available for download via a link on MicroChip's MPLAB page.

If you alternately set CCP2MX to PORTC (or delete this config option from the asm file) it will compile, but the PWM2 function will be muxed with our "MODE' LED. Can't say which will take priority as the datasheet is vague here. I would just use MPLAB 8.60!
  Reply With Quote