Jal compile errors

151 views
Skip to first unread message

bluee...@gmail.com

unread,
Apr 6, 2012, 5:16:35 AM4/6/12
to jal...@googlegroups.com
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 

Rob Hamerling

unread,
Apr 6, 2012, 5:49:31 AM4/6/12
to jal...@googlegroups.com

On 04/06/12 11:16 am, bluee...@gmail.com 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.

...

> 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"

Your compiler version is too old (version 2.4l does not support pragma
ID). Dump your current JapPack, download the latest JalPack and use only
components from that new package (do not mix packs).

Regards, Rob.

--
R. Hamerling, Netherlands --- http://www.robh.nl

Oliver Seitz

unread,
Apr 6, 2012, 6:01:19 AM4/6/12
to jal...@googlegroups.com

A little addition to all the true things rob has said:

It is sometimes a bad idea to use spaces in directory- and filenames. It seems not to have caused any errors for you (yet), but I would suggest to try to avoid problems before they occur :-)

Greets,
Kiste

Sunish Issac

unread,
Apr 6, 2012, 9:13:27 AM4/6/12
to jal...@googlegroups.com
Looks like you mixed a new version of jallib and used the old compiler ? From where did you download the jalpack ?

Sunish


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

Z.K.

unread,
Apr 6, 2012, 2:10:17 PM4/6/12
to jallib
I was following a tutorial that I had downloaded and it said:

Windows Install:
1. Download jalpack (installer executable) from
http://jaledit.googlecode.com/files/JALPack_2.4_0.4_0.6.1.0.exe,
This will install JALv2 + JalEdit
2. Update your installation (very important) - Download jallib-pack or
jallib-pack-bee from http://code.google.com/
p/jallib/downloads/list, copy the .zip contents into your Jallib
installation directory

I guess the tutorial was old as well. Anyway I finally found the 4.60
and 4.62 version though neither of those has an installer for windows
so I guess it means just extract it anywhere and run it from that
directory.

Thanks for the info as I did not realize i was using an older
version. Do you know if there is an updated tutorial anywhere?

Rob Hamerling

unread,
Apr 6, 2012, 2:35:09 PM4/6/12
to jal...@googlegroups.com

On 04/06/12 08:10 pm, Z.K. wrote:
> I was following a tutorial that I had downloaded and it said:
>
> Windows Install:
> 1. Download jalpack (installer executable) from
> http://jaledit.googlecode.com/files/JALPack_2.4_0.4_0.6.1.0.exe,
> This will install JALv2 + JalEdit
> 2. Update your installation (very important) - Download jallib-pack or
> jallib-pack-bee from http://code.google.com/
> p/jallib/downloads/list, copy the .zip contents into your Jallib
> installation directory
>
> I guess the tutorial was old as well.

That tutorial is of 26 june 2011, not what I would call 'old'.
On page http://code.google.com/p/jallib/ you can find links to this
tutorial and other required and optional meterial.

I guess step 2. above was not correctly performed. It should have
replaced the compiler and all Jallib libraries. Maybe you copied the
contents of Jallib-pack-2.4o-0.8.0 to the wrong directory.

> Anyway I finally found the 4.60 and 4.62 version

Now THAT is really old stuff! Please forget this when you want to work
with Jallib libraries.

Z.K.

unread,
Apr 6, 2012, 2:36:58 PM4/6/12
to jallib
Where exactly do I download the Jal compiler. The 4.6 and 4.6
versions do not contain the entire compiler, that is there is no
executable. All the so called home pages for the JAL compiler seemed
to call for the 2.4 version or I don't know where to look.

On Apr 6, 6:13 am, Sunish Issac <sunish....@gmail.com> wrote:

Z.K.

unread,
Apr 6, 2012, 3:31:07 PM4/6/12
to jallib
Okay, I finally was able to get it working. I downloaded what I
believe is the most current (JALPack_2.4o_0.8_0.9.0.9.exe) though when
it compiles, it still says 2.4, but at least it works now.

Sunish Issac

unread,
Apr 6, 2012, 11:06:46 PM4/6/12
to jal...@googlegroups.com
Yo can download the latest windows jalpack with jaledit from

vasile surducan

unread,
Apr 18, 2012, 7:20:11 AM4/18/12
to jal...@googlegroups.com
Hi Sunish,

I've noticed at installation time there is a difference between the compiler changelog file and the compiler version in the last jalpack. I can't find the last compiler changelog file in the jalpack. This one: http://www.casadeyork.com/jalv2/archive/README.txt
I'm looking in the wrong place?

thx,
Vasile,

BTW, nice picture you have on gmail!

Sunish Issac

unread,
Apr 18, 2012, 9:26:18 AM4/18/12
to jal...@googlegroups.com
Hello Vasile,

On Wed, Apr 18, 2012 at 4:50 PM, vasile surducan <vsur...@gmail.com> wrote:
Hi Sunish,

I've noticed at installation time there is a difference between the compiler changelog file and the compiler version in the last jalpack.

What's the last modified date/time ? I'm not sure if something went wrong with my scripts that assemble the readme files, looks like the changelog  is not present in the jallib distribution of compiler.

Long time since I see a post of Vasile. 

Sunish

vasile surducan

unread,
Apr 18, 2012, 11:29:33 AM4/18/12
to jal...@googlegroups.com
Hi Sunish,
I've attched a printscreen. Compiler is 2.4o, history ends at 2.4l, not bad.
I'm back to Jal after one year of pause. Happily, I forgot everything.
:)
do I see some white hear on your temple? too small picture...
jalpack.PNG

vasile surducan

unread,
Apr 19, 2012, 7:36:47 AM4/19/12
to jal...@googlegroups.com
One more about Jal edit: the file.out is not automatically rewritten after compilation until is previously deleted. Meaning file.out must be deleted after every compilation to get a newer valid file.out.
I remember this problem is very a old one and quite annoying. There is any option for update the file.out automatically ?

thx,
Vasile

Sunish Issac

unread,
Apr 19, 2012, 1:34:26 PM4/19/12
to jal...@googlegroups.com
I checked the current jalpack and the .out file is updated on each compile. I guess, you mean when compile fails, .out still has the results of the last compile.

Sunish

vasile surducan

unread,
Apr 20, 2012, 6:00:42 AM4/20/12
to jal...@googlegroups.com
It has the result of the last compile no mater if fails or not. Please see the attached printscreen. 

Vasile
jaledit error.PNG

ivan.jal33

unread,
Apr 20, 2012, 10:32:47 AM4/20/12
to jallib
on the JAL editor, click: tools-->Environment Options and check
the paths and directories. It may not be compiling the file that you
think it is, or the libraries, etc.
Enjoy:)
ivan.jal33

On Apr 20, 5:00 am, vasile surducan <vsurdu...@gmail.com> wrote:
> It has the result of the last compile no mater if fails or not. Please see
> the attached printscreen.
>
> VasileOn Thu, Apr 19, 2012 at 8:34 PM, Sunish Issac <sunish....@gmail.com> wrote:
> > I checked the current jalpack and the .out file is updated on each
> > compile. I guess, you mean when compile fails, .out still has the results
> > of the last compile.
>
> > Sunish
>
> > On Thu, Apr 19, 2012 at 5:06 PM, vasile surducan <vsurdu...@gmail.com>wrote:
>
> >> One more about Jal edit: the file.out is not automatically rewritten
> >> after compilation until is previously deleted. Meaning file.out must be
> >> deleted after every compilation to get a newer valid file.out.
> >> I remember this problem is very a old one and quite annoying. There is
> >> any option for update the file.out automatically ?
>
> >> thx,
> >> Vasile
>
> >> On Wed, Apr 18, 2012 at 6:29 PM, vasile surducan <vsurdu...@gmail.com>wrote:
>
> >>> Hi Sunish,
> >>> I've attched a printscreen. Compiler is 2.4o, history ends at 2.4l, not
> >>> bad.
> >>> I'm back to Jal after one year of pause. Happily, I forgot everything.
> >>> :)
> >>> do I see some white hear on your temple? too small picture...
>
> >>> On Wed, Apr 18, 2012 at 4:26 PM, Sunish Issac <sunish....@gmail.com>wrote:
>
> >>>> Hello Vasile,
>
> >>>> On Wed, Apr 18, 2012 at 4:50 PM, vasile surducan <vsurdu...@gmail.com>wrote:
>
> >>>>> Hi Sunish,
>
> >>>>> I've noticed at installation time there is a difference between the
> >>>>> compiler changelog file and the compiler version in the last jalpack.
>
> >>>> What's the last modified date/time ? I'm not sure if something went
> >>>> wrong with my scripts that assemble the readme files, looks like the
> >>>> changelog  is not present in the jallib distribution of compiler.
>
> >>>> Long time since I see a post of Vasile.
>
> >>>> Sunish
>
> >>>>  I can't find the last compiler changelog file in the jalpack. This
> >>>>> one:http://www.casadeyork.com/jalv2/archive/README.txt
> >>>>> I'm looking in the wrong place?
>
> >>>>> thx,
> >>>>> Vasile,
>
> >>>>> BTW, nice picture you have on gmail!
>
> >>>>> On Sat, Apr 7, 2012 at 6:06 AM, Sunish Issac <sunish....@gmail.com>wrote:
>
> >>>>>> Yo can download the latest windows jalpack with jaledit from
> >>>>>>http://code.google.com/p/jaledit/downloads/list
>
> >>>>>> Best regards,
> >>>>>> Sunish Issac
>
> >>>>>> On Fri, Apr 6, 2012 at 11:40 PM, Z.K. <blueeag...@gmail.com> wrote:
>
> >>>>>>> I was following a tutorial that I had downloaded and it said:
>
> >>>>>>> Windows Install:
> >>>>>>> 1. Download jalpack (installer executable) from
> >>>>>>>http://jaledit.googlecode.com/files/JALPack_2.4_0.4_0.6.1.0.exe,
> >>>>>>> This will install JALv2 + JalEdit
> >>>>>>> 2. Update your installation (very important) - Download jallib-pack
> >>>>>>> or
> >>>>>>> jallib-pack-bee fromhttp://code.google.com/
>  jaledit error.PNG
> 83KViewDownload

Sunish Issac

unread,
Apr 20, 2012, 11:39:48 AM4/20/12
to jal...@googlegroups.com
Ok found out what's wrong. I was just checking the .out file which is actually getting updated on each compile.
But when the show log file option after compile is enabled, since the file is already open, jaledit does not detect the changed file to reopen the new file. Since I never use the open log file option I never noticed.

BTW why do you need the show log file option ?

Sunish

vasile surducan

unread,
Apr 21, 2012, 2:43:38 AM4/21/12
to jal...@googlegroups.com
Ivan, I had always appreciate Russian humor....
:)

ivan.jal33

unread,
Apr 22, 2012, 4:37:39 PM4/22/12
to jallib
It wasn't actually funny at the time, but I really did have the paths
wrong, and it was compiling code for a different version than I was
making changes to. Actually, kind of embarrasing.
> ...
>
> read more »

vasile surducan

unread,
Apr 23, 2012, 1:41:34 AM4/23/12
to jal...@googlegroups.com
Ok, I had the same problem many times, but that is correctable by choosing the right path.
Right now my issue is caused by Jaledit which can display different things on file.out and compile result windows. 
This happents because the file.out is not overwritten after every compilation.
Closing the file.out after every compilation cure the problem but is somehow annoying.

thx,
Vasile

Sunish Issac

unread,
Apr 23, 2012, 10:02:21 AM4/23/12
to jal...@googlegroups.com
On Mon, Apr 23, 2012 at 11:11 AM, vasile surducan <vsur...@gmail.com> wrote:
Ok, I had the same problem many times, but that is correctable by choosing the right path.
Right now my issue is caused by Jaledit which can display different things on file.out and compile result windows. 

For the time being just disabling show log file after compile should solve the problem as the  relevant output is there in output window.

This happents because the file.out is not overwritten after every compilation.
Closing the file.out after every compilation cure the problem but is somehow annoying.

I know its annoying, I find opening the log file after compilation itself annoying. Yes I'll fix it..

Sunish 
Reply all
Reply to author
Forward
0 new messages