generate samples

0 views
Skip to first unread message

Joep Suijs

unread,
Jan 27, 2009, 2:31:24 PM1/27/09
to jal...@googlegroups.com
Hi Seb,
 
I added random.jal and a test file, but did not succeed in generating examples. I can generate a specific one, but all attempts with -a fail. Could you provide me with a command line example?
 
Tnx,
Joep

Sebastien Lelong

unread,
Jan 27, 2009, 3:05:44 PM1/27/09
to jal...@googlegroups.com
Could you provide more error message ?

Now some clues:

 - "jallib -a path/to/sampledir" will automatically generate all samples, and put them in the appropriate place (by_device/<piv>/...)
 
- "jallib -a path/to/sampledir -o path/to/a/dir" will do the same, but will stores all files in the given directory

 - "jallib -a path/to/sampledir -b path/to/boardfile.jal" will auto-generate all samples for a given board (ie. a given PIC). You can also mix -o option


Now, about your test_random.jal file. If I manually try to generate it with:

jallib sample -b sample/test/board/board_16f88_js.jal -t sample/test/jal/test_random.jal -o /tmp/mine/t.jal

it fails  !!!

jal 2.4i (compiled Dec  1 2008)
generating p-code
/tmp/mine/t.jal:94: "tmp_word" not defined
/tmp/mine/t.jal:94: ')' expected (got 'tmp_word')
/tmp/mine/t.jal:94: '=' expected (got ')')
/tmp/mine/t.jal:94: 'end' expected (got ')')
/tmp/mine/t.jal:94: {FOR starts at /tmp/mine/t.jal:91}
/tmp/mine/t.jal:94: 'end' expected (got ')')
/tmp/mine/t.jal:94: {FOREVER starts at /tmp/mine/t.jal:85}
/tmp/mine/t.jal:94: unexpected token: )
8 errors, 0 warnings
Error while compiling file (status=1).
See previous message.



So I'd expect auto-generation would fail too :)
Or maybe you'd need to commit your last, modified version of test_random.jal file, so I can investigate some more.


Cheers,
Seb

2009/1/27 Joep Suijs <jsu...@gmail.com>



--
Sébastien Lelong
http://www.sirloon.net
http://sirbot.org

Joep Suijs

unread,
Jan 27, 2009, 5:26:13 PM1/27/09
to jal...@googlegroups.com
Thank you master!
 
I checked in the right version of test_random.jal
 
Joep

2009/1/27 Sebastien Lelong <sebastie...@gmail.com>
Reply all
Reply to author
Forward
0 new messages