Hi, I've also been unable to find where these constants are defined, but 
I think this issue is related to gputils, it seems they are only defined 
for previous pic18 devices, I've use to program a 18F8722 that way and 
worked, the macros where defined in the .h file of the processor, but 
now, using the 18F66j15, the .h file indicates that the old way is not 
working (__CONFIG) and we should use the CONFIG directive, but the 
macros are not defined in this file.

I hope some of the wise guys of this list can help us :)

Regards

Olgierd

On 18-04-2011 0:57, Rob Connolly wrote:
> Hi Everyone,
>
> I'm trying to get a simple program running on one of our firms development 
> boards using SDCC, however I'm having problems setting the configuration 
> bits. The board uses a PIC18F97J60 chip.
>
> There seems to be some differing ways of setting these bits throughout other 
> posts around the internet. So far the best I've come up with is:
>
> __code __at 0x1FFF8 __CONFIG = _EXTCLK_OSC&  _WDT_OFF&  _LVP_OFF&  
> _DATA_CP_OFF&  _PWRTE_ON;
>
> However, this tells me that several of the macros are not defined:
>
> hello_led.c:12: error 20: Undefined identifier '_EXTCLK_OSC'
> hello_led.c:12: error 20: Undefined identifier '_WDT_OFF'
> hello_led.c:12: error 20: Undefined identifier '_LVP_OFF'
> hello_led.c:12: error 20: Undefined identifier '_DATA_CP_OFF'
> hello_led.c:12: error 20: Undefined identifier '_PWRTE_ON'
>
> And indeed if I look in pic18f96j60.h (which is included from pic18f97j60.h) 
> there are no macros for configuration bits.
>
> So, my question is, what is the best way to go about this?
>
> Thanks in advance,
>
> Rob Connolly, BE
> HMI Technologies Ltd.
> ------------------------------------------------------------------------------
> Benefiting from Server Virtualization: Beyond Initial Workload
> Consolidation -- Increasing the use of server virtualization is a top
> priority.Virtualization can reduce costs, simplify management, and improve
> application availability and disaster protection. Learn more about boosting
> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user


------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to