Hi Rob, if you look after each compilation to software stack and hardware
stack numbers perhaps you may see important differences between numbers
when code is ok and not. I've seen something similar near HW stack fill,
but this is dificult to debug. It looks like a jump elswere that it
shuld...I guess interrupts are disabled in your test code.

On Fri 9 Sep 2022, 8:13 PM Rob CJ <[email protected] wrote:

> Hi Vasile,
>
> It sometimes goes into reset but sometimes it just hangs.It is
> unpredictable so I assume that it runs somewhere out of a range that it
> should not.
>
> How could I check the stack length?
>
> Thanks.
>
> Kind regards,
>
> Rob
>
> ------------------------------
> *Van:* [email protected] <[email protected]> namens vsurducan
> <[email protected]>
> *Verzonden:* vrijdag 9 september 2022 07:03
> *Aan:* [email protected] <[email protected]>
> *Onderwerp:* Re: [jallib] Code does no longer work when program size
> increases using mutiplication?
>
> Rob, can you check also the stack length when pic goes in loop reset?
>
> On Thu 8 Sep 2022, 9:00 PM [email protected] <[email protected] wrote:
>
> Hi all,
>
> I have the following strange problem. I am working on the ILI9341 library
> and the graphics was staring to work but I could not manage to write text
> to the screen. When I tried that the PIC went haywire and sometimes came
> into some kind of constant reset state.
>
> By accident I discovered that it had to do with the size of the program.
> In the program I include a picture. When I do that the program size changes
> from 5k to 21k bytes.
>
> If I do not include the picture, printing text goes OK but when including
> the picture the PIC goes haywire again. If I leave out the printing of text
> and include only the graphics with the picture then all is well.
>
> When I look at the assembly, there is a piece of code used for printing
> fonts (using pixels) that uses multiplication. If I look at that piece of
> code in the asm file the code for multiplication is different. In the
> attached screenshot you see the code that goes wrong on the left and the
> code that goes right on the right.
>
> Has anybody experience this kind of problem before so having problems with
> a large program in combination with multiplication (I may draw the wrong
> conclusion here).
>
> Any suggestions?
>
> Hopefully it is not a compiler issue :-(
>
> Thanks
>
> Kind regards,
>
> Rob
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/jallib/8b0c12cf-3c70-4da6-80f3-1d30264eef9en%40googlegroups.com
> <https://groups.google.com/d/msgid/jallib/8b0c12cf-3c70-4da6-80f3-1d30264eef9en%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "jallib" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jallib/sx0p79J2U-A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jallib/CAM%2Bj4qseDr7%2BTah7FDfmX8%2B6p7GuT%3DxKpAPCfDTA1J7r4EpXAw%40mail.gmail.com
> <https://groups.google.com/d/msgid/jallib/CAM%2Bj4qseDr7%2BTah7FDfmX8%2B6p7GuT%3DxKpAPCfDTA1J7r4EpXAw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/jallib/GVXP195MB16370E83D82914789B895CE5E6439%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM
> <https://groups.google.com/d/msgid/jallib/GVXP195MB16370E83D82914789B895CE5E6439%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/CAM%2Bj4qsmMr%3D%3DGFDq46Rrz1AfNotbnkN7AxTcy%3DmwDty-eHyNMQ%40mail.gmail.com.

Reply via email to