Hi,
>> First try:unsigned short __at(_CONFIG1) config1Reg = (_FCMEN_OFF
>> & _IESO_OFF & _BOREN_ON & _CPD_ON & _CP_ON & _MCLRE_OFF & _PWRTE_ON &
>> _WDTE_OFF
>> & _FOSC_HS);
I cannot check right now, but you might be missing a __code modifier:
__code unsigned short __at(0x8007) _conf1 = 0x1234;
Dear Raphael and Vaclav,
I tried this:
__code unsigned short __at(_CONFIG1) config1Reg = (_FCMEN_OFF & _IESO_OFF &
_BOREN_ON & _CPD_ON & _CP_ON & _MCLRE_OFF & _PWRTE_ON & _WDTE_OFF & _FOSC_HS);
__code unsigned short __at(_CONFIG2) config2Reg = (_LVP_ON & _BORV_25 &
_STVREN_ON & _PLLEN_ON & _WRT_
Dear Tim,
I got the same problem with 14bit enhanced core (PIC16F1XXX) devices.
I tried to define config values and received the similar error message.
I think it is not a proper way to define config in c source. I also do not know
how to do it correctly in sdcc.
However, it works when you specif
Hi,
> __code unsigned short __at(_CONFIG1) config1Reg = (_FCMEN_OFF & _IESO_OFF &
> _BOREN_ON & _CPD_ON & _CP_ON & _MCLRE_OFF & _PWRTE_ON & _WDTE_OFF & _FOSC_HS);
> __code unsigned short __at(_CONFIG2) config2Reg = (_LVP_ON & _BORV_25 &
> _STVREN_ON & _PLLEN_ON & _WRT_ALL);
>
> And it generated
Hello again,
__code unsigned short __at(_CONFIG1) config1Reg = (_FCMEN_OFF &
_IESO_OFF & _BOREN_ON & _CPD_ON & _CP_ON & _MCLRE_OFF & _PWRTE_ON &
_WDTE_OFF & _FOSC_HS);
> __code unsigned short __at(_CONFIG2) config2Reg = (_LVP_ON & _BORV_25 &
> _STVREN_ON & _PLLEN_ON & _WRT_ALL);
Since SDCC r698