I'm looking for some guidance on the proper syntax for setting 18F config
bits in MPLAB. What I've done _looks_ like the examples I've found, but
clearly I'm missing something.
Error[113] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 38 : Symbol not previously
defined (_config1H)
Error[126] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 38 : Argument out of range
(not a valid config register address)
Error[113] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 39 : Symbol not previously
defined (_config2H)
Error[126] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 39 : Argument out of range
(not a valid config register address)
Error[113] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 40 : Symbol not previously
defined (_config2L)
Error[126] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 40 : Argument out of range
(not a valid config register address)
Error[113] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 41 : Symbol not previously
defined (_config3H)
Error[126] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 41 : Argument out of range
(not a valid config register address)
Error[113] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 42 : Symbol not previously
defined (_config4L)
Error[126] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 42 : Argument out of range
(not a valid config register address)
Any and all guidance would be appreciated, even if it's sprinkled with
admonishments for things I've been able to unearth from the manual or by
googling.
The current MPLAB does NOT support the old syntax of __CONFIG
Look back a few weeks ago, this is well discussed and I included a
working example.
Or you could READ the P18F452.INC file to see for your self.
>I'm looking for some guidance on the proper syntax for setting 18F config
>bits in MPLAB. What I've done _looks_ like the examples I've found, but
>clearly I'm missing something.
>
>What I've tried:
>
>include "P18F452.INC"
>
> __config _config1H, _HS_OSC_1H
> __config _config2H, _WDTPS_128_2H & _WDT_OFF_2H
> __config _config2L, _BOR_OFF_2L & _PWRT_OFF_2L
> __config _config3H, _CCP2MX_OFF_3H
> __config _config4L, _STVR_ON_4L & _LVP_OFF_4L & _DEBUG_OFF_4L
>
>What I get:
>
>Error[113] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 38 : Symbol not previously
>defined (_config1H)
>Error[126] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 38 : Argument out of range
>(not a valid config register address)
>Error[113] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 39 : Symbol not previously
>defined (_config2H)
>Error[126] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 39 : Argument out of range
>(not a valid config register address)
>Error[113] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 40 : Symbol not previously
>defined (_config2L)
>Error[126] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 40 : Argument out of range
>(not a valid config register address)
>Error[113] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 41 : Symbol not previously
>defined (_config3H)
>Error[126] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 41 : Argument out of range
>(not a valid config register address)
>Error[113] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 42 : Symbol not previously
>defined (_config4L)
>Error[126] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 42 : Argument out of range
>(not a valid config register address)
>
>Any and all guidance would be appreciated, even if it's sprinkled with
>admonishments for things I've been able to unearth from the manual or by
>googling.
>
>RR
>
>
>
>
--
*
| __O Thomas C. Sefranek spam_OUTWA1RHPTakeThisOuTARRL.net
|_-\<,_ Amateur Radio Operator: WA1RHP
(*)/ (*) Bicycle mobile on 145.41, 448.625 MHz
Have you tried all caps? Like so:
__CONFIG _CONFIG1H, _HS_OSC_1H
That's the only difference I can see, but if you have case sensitivity on, it
might make a difference.
I do know that the __CONFIG directive has been "deprecated", in favor of
a newer format, but aside from a little grumbling, MPASM still accepts it.
Which is good, because it seems changing to the newer format breaks
something in PICBASIC.
Mike H.
PS- If anyone can tell me how to exclude a certain warning level from
showing up in the output window, I'm all ears!
> I'm looking for some guidance on the proper syntax for setting 18F config
> bits in MPLAB. What I've done _looks_ like the examples I've found, but
> clearly I'm missing something.
>
> What I've tried:
>
> include "P18F452.INC"
>
> __config _config1H, _HS_OSC_1H
> __config _config2H, _WDTPS_128_2H & _WDT_OFF_2H
> __config _config2L, _BOR_OFF_2L & _PWRT_OFF_2L
> __config _config3H, _CCP2MX_OFF_3H
> __config _config4L, _STVR_ON_4L & _LVP_OFF_4L & _DEBUG_OFF_4L
>
> What I get:
>
> Error[113] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 38 : Symbol not previously
> defined (_config1H)
> Error[126] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 38 : Argument out of range
> (not a valid config register address)
> Error[113] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 39 : Symbol not previously
> defined (_config2H)
> Error[126] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 39 : Argument out of range
> (not a valid config register address)
> Error[113] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 40 : Symbol not previously
> defined (_config2L)
> Error[126] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 40 : Argument out of range
> (not a valid config register address)
> Error[113] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 41 : Symbol not previously
> defined (_config3H)
> Error[126] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 41 : Argument out of range
> (not a valid config register address)
> Error[113] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 42 : Symbol not previously
> defined (_config4L)
> Error[126] C:\PROGRA~1\MPLAB57\PBCAV101.ASM 42 : Argument out of range
> (not a valid config register address)
>
> Any and all guidance would be appreciated, even if it's sprinkled with
> admonishments for things I've been able to unearth from the manual or by
> googling.
>
> RR
>
>
On 3/1/06, Jan-Erik Soderholm <jan-erik.soderholmKILLspamtelia.com> wrote:
> Tom Sefranek wrote :
>
> > The current MPLAB does NOT support the old syntax of __CONFIG
>
> The "current MPLAB" *I* am using does...
>
> I *think* __CONFIG is unsupported for the 16-biters, thought...
>
> Jan-Erik.
>
MPLAB use __CONFIG for base line and mid-range PICs. It now uses
CONFIG for 18C/18F PICs. __CONFIG is still supported for many PIC18C/18F
PICs but the use of __CONFIG is deprecated. In fact, MPLAB does not
support __CONFIG for some new PIC18J chips.
> > The current MPLAB does NOT support the old syntax of __CONFIG
No, it still does, it just gripes. I just installed 7.22 freshly downloaded
about five days ago, and it assembles my "__CONFIG" with only minimal
grumbling (warning 230)...
> The "current MPLAB" *I* am using does...
>
> I *think* __CONFIG is unsupported for the 16-biters, thought...
...and I'm using that on a 16-bit 18F2320. The 230 warning DOES
specifically state that __CONFIG has been deprecated for PIC18
devices, but it still works just the same- changing a setting in the
__CONFIG directives causes it to change in the dialog box for the
project.
> Mike Hord wrote :
>
> > > I *think* __CONFIG is unsupported for the 16-biters, thought...
>
> > ...and I'm using that on a 16-bit 18F2320...
>
> Which is a 8-biter... :-)
>
> With "16-biters" I ment PIC24/30/33.