Sebastien Lelong wrote:
> There are other *_blink_II.jal test files available, but they never go to
> "sample" map (maybe they should be removed from SVN). The reason is blink
> samples aren't generated from board + test files, but are generated from
> Rob's script. It's preferable to keep this script as the unique source for
> blink samples, and not even release these *_blink_II.jal samples (we may
> really need to remove them).
>
> Now do you think existing samples, for example 18f2450_blink.jal, are
> enough, or do they have to be enriched with some fo your code ?
> (particularly some pragmas ?)
It might be useful to have samples which use a different oscillator type
or frequency than the 'standard' 20MHz HS. Except for some baseline PICs
all my samples use a HS oscillator (all my test boards have a 20 MHz
resonator).
While we are at this subject: Albert, please be somewhat more careful:
the comments in the header of your samples do not always match the
contents of the program (for example: wrong PIC name, your name missing
after 'Adapted_by', date of generation).
Regards, Rob.
--
Rob Hamerling, Vianen, NL (http://www.robh.nl/)
a.f...@chello.nl wrote:
> Rob can you explain what's the guideline when to fill in the adapted
> by, don't see much added value to add the author's name to the adapted
> by line
For this kind of questions the Jallib Style Guide (wiki) should give the
answer. But in this case it is not too explicit.
I see 'adapted-by' as help to find someone to fix a problem if you
cannot fix it yourself, and to give credit to those who helped to
develop a library.
a.f...@chello.nl wrote:
> Hi Rob,
> One of the issues is that the header of the board files are not copied
> into the generated sample files.
> (ect)...
I haven't worked with the board and test files. Maybe Seb can work out
something.
I can see two possible soltutions
1) Include the entire content of the board file into the generated
sample file
2) Keep the board files and generated sample file separated, the only
part in the sample generation process is to generate the a board file
include statement,
in addition the board files have to be copied into the sample
directory
Sunish Issac wrote:
> About the samples having different crystal frequency, I would suggest to use
> the internal oscillator for samples whenever possible. Makes life much
> easier.
I don't see why a circuit which uses the internal oscillator is so
*much* easier than using a resonator.
Maybe your suggestion does not apply to the current blink-an-LED
samples. but I would be happy to build a script to generate blink-an-LED
samples with the internal oscillator (some of the current blink samples
already using it)! But then I need a *method* to set the required
oscillator and configuration bits which covers *all* PICs in the
baseline, midrange and 18F series. Because of the variety of parameters
and differences in defaults settings that won't be easy and a lot of
work. If you could provide a method.....
To make my life somewhat easier I chose the 'HS' oscillator for the
current blink samples, which were primarily meant as test-vehicle for
the device files.