Hi Peter, Thanks for the feedback, so you had it too. I know you are using a PIC18. I am using a PIC16 so that could not be it. When it happens I also get some random characters on the serial port.
Since it might be a serious issue, I will first finish the library and mention in the code not to use the big picture if you use graphics and fonts. The picture with graphics works fine and graphics with fonts too but not graphics fonts and the picture. I think my initial thought about the multiplication may be wrong since there are more multiplications used and when I include a big picture you might get big multiplications. Kind regards, Rob Op donderdag 8 september 2022 om 20:17:03 UTC+2 schreef [email protected]: > Hi Rob > I had the same with a picture and it stoppen when I controller the > hardware. The next time it happende again: Mauve static electricity? > I stopped with your program because I knew you were still working on it. > Greetings > Peter > > > Mijn spreuk: Wees nieuwsgierig maar hou maat. > > Op 8 sep. 2022 om 20:00 heeft [email protected] <[email protected]> het > volgende geschreven: > > 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> > . > <comparison.png> > > -- 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/76780e86-2c80-45ac-bb88-409d42047fc3n%40googlegroups.com.
