Hi Seb!

A problem I had with jalv24p should be solved now, but it may still be buggy? 


Address calculation was wrong, if inline functions were used, so

var byte counter
var byte array [20]
...
array[counter*3]=10

Here, the value 10 might be written anywhere, even way outside the array. (on 
pic18 cores, as on smaller cores this might not be an inline function.)

var byte counter_3
counter_3=counter*3
array[counter_3]=10

This is a workaround and always wrote to the right address.

Greets,

Kiste






>________________________________
> Von: Sebastien Lelong <[email protected]>
>An: "[email protected]" <[email protected]> 
>Gesendet: 10:27 Samstag, 1.Juni 2013
>Betreff: [jallib] jalv24q and arrays, feedback ?
> 
>
>
>Hi guys,
>
>
>I'm testing last jalv24q with a library dev, and I observe very strange 
>behavior with arrays. One array, a buffer, is defined in the lib, is filled 
>though procedure calls, then read back on user program. Value can "sometimes" 
>be different (read properly in the lib, not in program). Weird. When I track 
>down, values are coherent through all the program, but there were no reason, 
>really, that they would be different between what's in the lib and what's in 
>the program. I used serial to debug and print values.
>
>
>Obviously I can't identify this accurately, I guess this is just a bug in my 
>lib and/or program, still, very strange, I was wondering if someone had the 
>same kind of things, doubting about this ? Erratic behavior, how weird...
>
>
>Cheers,
>Seb
>
>
>-- 
>Sébastien Lelong
>
>
-- 
>You received this message because you are subscribed to the Google Groups 
>"jallib" group.
>To unsubscribe from this group and stop receiving emails from it, send an 
>email to [email protected].
>To post to this group, send email to [email protected].
>Visit this group at http://groups.google.com/group/jallib?hl=en.
>For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jallib?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to