Hi Joep,

The boad file I have for 16f648a contains weird line feed chars, namely "\r" 
instead of "\r\n" (or simply "\n"). Replacing "\r" with "\r\n" seems to fix 
the problem.

These line feed differences between win and linux are quite a nightmare, I'm 
not sure I understand everything of it... For me, windows uses "\r\n", linux 
uses "\n", but can also uses "\r\n". I also suspect svn to convert these 
chars according to the platform it's installed.

Any hints appreciated :)

Seb

Le Sunday 30 November 2008 18:44:28 Joep Suijs, vous avez écrit :
> Hi Seb,
>
> I worked on the sample generation today and discovered two minor
> issue's in the python script:
> - the output file param is mandatory on the command line, but unlike
> the test and board file, it is not mentioned or checked.
> - if the first use statement in the test file has no empty line above,
> it is not recognised.
>
> I updated all 11 test files with the use statements and am able to
> generate samples from two board files.
>
> For some reason I can't discover, it does not work with the 16f648a
> board file. The board file seems to be parsed by the script (I don't
> get a message it is not found) but the sections are unknown
> afterwards. Maybe you can have a look?
>
> What I do:
>
> C:\myrobot\jal\projects\jallib_test>python c:\jallib\tools\jallib.py
> sample -b C:\jallib\unvalidated\sample\test\board\board_16f648a_js.jal
> -t
> C:\jallib\unvalidated\sample\test\peripheral\usart\test_serial_hardware.jal
> -o out.jal
> Traceback (most recent call last):
>   File "c:\jallib\tools\jallib.py", line 1234, in <module>
>     callme(action_args)
>   File "c:\jallib\tools\jallib.py", line 927, in do_sample
>     merged = merge_board_testfile(board,test)
>   File "c:\jallib\tools\jallib.py", line 885, in merge_board_testfile
>     new = "".join(board['sections'][m.groups()[-1].strip()])
> KeyError: 'chipdef'
>
>
> Regards,
> Joep
>
> 


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

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