Tried "USB Serial" sample and is not working right for 18F2550. It not echoes the right char all the time... for most of the time, is ok but some times it trows a train of three or four weird chars (on linux with gtkterm - just keep pressed a button and you will see the behavior), not matter which speed you set. I had to revert to my trusty 2.4n and 0.6 package and now is working as expected.
Vasi
--
You received this message because you are subscribed to the Google Groups "jallib" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jallib/-/rZccDCTWC1EJ.
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.
I tried last night the last SVN (downloaded yesterday) with the last stable compiler, 2.4o. That is the culprit.
Vasi
--
You received this message because you are subscribed to the Google Groups "jallib" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jallib/-/OQUhSnILa9IJ.
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.
Didn't tried that combination. Used the SVN with the last compiler, thinking that the jallib use some features from the new compiler...
--
You received this message because you are subscribed to the Google Groups "jallib" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jallib/-/WCiIUqTooxcJ.
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.
--
You received this message because you are subscribed to the Google Groups "jallib" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jallib/-/R1AazQXJMfQJ.
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.
More info.
I just copied the old USB libraries over the last SVN and the issue is the same.
I removed entirely the last SVN and used my old package. Is working as expected. So I suppose the error come from some additional libraries used by USB libraries....
--
You received this message because you are subscribed to the Google Groups "jallib" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jallib/-/1EBHDKSIAVYJ.
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.
The problem is at device file, 18f2550 !?
I used the USB files form SVN and along with some other libraries but kept the compiler (2.4n) and the device file from 0.6.0 (I had to add only a constant required by the USB libs modified by Seb). Everything worked as expected.
Then I used the new 18f2550 device and the issue surfaced again.
--
You received this message because you are subscribed to the Google Groups "jallib" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jallib/-/7tH9-2k2AUQJ.
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.
Hi Seb,
That is not enough. The issue is still there.
--
You received this message because you are subscribed to the Google Groups "jallib" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jallib/-/s_izv_MUxRQJ.
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.
On 07/24/11 04:44 pm, Sebastien Lelong wrote:
> OK, I can see one important change by diff'ing both version, about
> "pragma data"
There may be another important difference: pragma fuse_def CPUDIV has
changed. The value P2 has a different meaning!
In JALPACK06:
P2 = 0x0 -- [osc1/osc2 src: /1][96mhz pll src: /2]
In JALPACK07:
P2 = 0x8 -- [primary oscillator src: /2][96 mhz pll src: /3]
So when you copy the sample program without changing this pragma it
might explain the garbage chars (but I would expect more severe problems!).
BTW: The difference in the pragma fuse_def (and other differences) is a
result of differences in MPLAB versions (and not actually testing all
samples with every new set of device files and libraries).
Regards, Rob.
--
R. Hamerling, Netherlands --- http://www.robh.nl
On 07/26/11 06:54 am, mattschinkel wrote:
> Another suggestion is to change the blink sample (or have another) to
> use the correct settings for USB so it is easy to copy/paste good
> settings.
I'll think about adding a separate set of blink samples for PICs with
USB. These sample will use PLL and the appropriate fuse settings. Thanks
for the suggestion.
> --
> 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.
>
>
--
Vasi
On 07/26/11 06:58 am, mattschinkel wrote:
>> The problem is caused by a wrong fuse_dev CPUDIV setting. Somewhere between
>> jalpack 0.6 and 0.7 the meaning of the keywords of this fuse_def has
>> changed.
>
> Never mind... I just read the other topic/issue. I guess microchip
> does change these things? :(
For general understanding: I often curse Microchip for changing things
in MPLAB from version to version because of the consequences for my
interpretation of the MPLAB .dev files. And it is not always ovbious if
the change is a correction of a previous error or a simple improvement
(esp. in the case of description fields).
For the fuse_def definiton in the Jallib device files the dev2jal script
has to interpret a description (which is frequently a whole sentence!)
in the MPLAB .dev file and 'translate' it to a single keyword. This is a
tricky operation! Even a tiny change of the description (and Microchip
changes these descriptions often) may invalidate my interpretation. What
makes it even more tricky is that frequently the descriptions of the
same fuse are different for different groups of PICs.
Most of the time I catch these changes, certainly when there are few.
But when there are many - even tiny - changes I may overlook one (or
more). I think this was the case with CPUDIV.
Since some time I copy the original description of fuse settings in
MPLAB as comment in the Jallib device files. This is not meant as
replacement for the datasheet, but only as reminder for those who really
read the datasheet. My main purpose was however to help me (us) with
catching errors.
On 07/26/11 06:54 am, mattschinkel wrote:
> Another suggestion is to change the blink sample (or have another) to
> use the correct settings for USB so it is easy to copy/paste good
> settings.
I've just added about 40 samples for PICs with USB, using a 20 MHz
crystal and PLL to get CPU freq of 48 MHz, thus using PLLDIV 5, and
CPUDIV P1 (with a comment). Hopefully this helps.
I have tested one sample with an 18F2550, but have not added these
samples to TORELEASE.
On 07/26/11 08:35 pm, funlw65(Vasi) wrote:
> Thank you for samples, but why
> USBPLL = OSC and not F48MHZ ?
For this blink sample it won't matter since USB is not used. But when
you take it as base for an application which uses USB then it better be
F48MHZ. I'll change it!