Hi,
Must admit it's a very strange problem... I'd highly appreciate any help... ideas... probably a compiler issue...
Got an STM32f103RB board with a 2.8' LCD, decided to give uGFX a try, just created an account here few days ago.
I will not say it started working right away, took some time to figure out it's actually an ILI9328 (with who knows which revision), took the Chineese code and rewrote the gdisp_lld_init, as well as the board commands, and voila everything worked like charm!
I started drawing boxes and circles, everything working great, but when I wanted to display some text, so many strange things started to happen.
Current situation is this:
gdispDrawChar(100, 100, 'A', font, GFX_RED); // This works, but even this is buggy based on content of the program...
gdispDrawString(120, 200, bPtr, font1, GFX_RED); // This doesn't work (sometimes Hardfault, sometimes it goes through, but doesn't display anything)
When I started debugging, only thing I can say is that's it's highly indeterministic, and what looks like that's happening is that GDISP memory is being corrupted during program execution.
From the days of PIC programming, I would be having similar issues, but controlled things like this with careful compiler settings, static declarations, etc.
I plan to get to know gcc more in depth, but would like to start playing around as soon as possible, any idea would be greatly appreciated!
Thanks!