Looks like you mixed a new version of jallib and used the old compiler ?
>From where did you download the jalpack ?

Sunish

On Fri, Apr 6, 2012 at 2:46 PM, <[email protected]> wrote:

> I am really new to the JAL compiler.  I thought I would try a simple blink
> led from the samples.  So, I created a new folder in the project folder and
> copied the 16F88 blink file to that folder.  Then I compiled it and I got
> like 31 errors.  Anyone have any idea what I am doing wrong.
>
>
>
> code:
> include 16f88                    -- target PICmicro
> --
> -- This program assumes that a 20 MHz resonator or crystal
> -- is connected to pins OSC1 and OSC2.
> -- (unspecified configuration bits may cause a different frequency!)
> pragma target clock 20_000_000     -- oscillator frequency
> -- configuration memory settings (fuses)
> pragma target OSC      HS               -- HS crystal or resonator
> pragma target WDT      disabled     -- no watchdog
> pragma target DEBUG    disabled     -- no debugging
> pragma target LVP      disabled     -- no Low Voltage Programming
> pragma target MCLR     external     -- reset externally
> -- These configuration bit settings are only a selection, sufficient for
> -- this program, but other programs may need more or different settings.
> --
> enable_digital_io()                -- make all pins digital I/O
> --
> -- Specify the pin to which the LED is connected.
> -- A low current (2 mA) led with 2.2K series resistor is recommended
> -- since not all pins may be able to drive an ordinary 20mA led.
> alias led is pin_A0
> pin_A0_direction =  output
> --
> forever loop
>    led = on
>    _usec_delay(250_000)
>    led = off
>    _usec_delay(250_000)
> end loop
>
> errors:
> Compilation started at :4/6/2012 1:52:27 AM
> jal 2.4l (compiled Aug  7 2009)
> [Error] (lib/16f88.jal) [Line 54]  unexpected token: 'id'
> [Error] (lib/16f88.jal) [Line 54]  "id" not defined
> [Error] (lib/16f88.jal) [Line 54]  '=' expected (got '0x2000')
> [Error] (lib/16f88.jal) [Line 54]  unexpected token: "0x2000"
> [Error] (16f88_blink.jal) [Line 32]  unknown pragma target: osc
> [Error] (16f88_blink.jal) [Line 32]  "osc" not defined
> [Error] (16f88_blink.jal) [Line 32]  '=' expected (got 'hs')
> [Error] (16f88_blink.jal) [Line 32]  "hs" not defined
> [Error] (16f88_blink.jal) [Line 32]  '=' expected (got 'pragma')
> [Error] (16f88_blink.jal) [Line 33]  unknown pragma target: wdt
> [Error] (16f88_blink.jal) [Line 33]  "wdt" not defined
> [Error] (16f88_blink.jal) [Line 33]  '=' expected (got 'disabled')
> [Error] (16f88_blink.jal) [Line 33]  '=' expected (got 'pragma')
> [Error] (16f88_blink.jal) [Line 34]  unknown pragma target: debug
> [Error] (16f88_blink.jal) [Line 34]  "debug" not defined
> [Error] (16f88_blink.jal) [Line 34]  '=' expected (got 'disabled')
> [Error] (16f88_blink.jal) [Line 34]  '=' expected (got 'pragma')
> [Error] (16f88_blink.jal) [Line 35]  unknown pragma target: lvp
> [Error] (16f88_blink.jal) [Line 35]  "lvp" not defined
> [Error] (16f88_blink.jal) [Line 35]  '=' expected (got 'disabled')
> [Error] (16f88_blink.jal) [Line 35]  '=' expected (got 'pragma')
> [Error] (16f88_blink.jal) [Line 36]  unknown pragma target: mclr
> [Error] (16f88_blink.jal) [Line 36]  "mclr" not defined
> [Error] (16f88_blink.jal) [Line 36]  '=' expected (got 'external')
> [Error] (16f88_blink.jal) [Line 36]  "external" not defined
> [Error] (16f88_blink.jal) [Line 36]  '=' expected (got 'enable_digital_io')
> [Error] (16f88_blink.jal) [Line 40]  "enable_digital_io" not defined
> [Error] (16f88_blink.jal) [Line 45]  "pin_a0" not defined
> [Error] (16f88_blink.jal) [Line 45]  '=' expected (got 'pin_a0_direction')
> [Error] (16f88_blink.jal) [Line 46]  "pin_a0_direction" not defined
> [Error] (16f88_blink.jal) [Line 49]  "led" not defined
> 31 errors, 0 warnings
> Compiler CommandLine:
> C:\JALPack\compiler\jalv2.exe "C:\JALPack\project\PIC16F88
> Blink\16f88_blink.jal" -s "C:\JALPack\lib" -no-variable-reuse
>
>  --
> You received this message because you are subscribed to the Google Groups
> "jallib" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/jallib?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to