I have a resistive touch screen that I'm using with an XMEGA A1U Xplained pro. I've ported some of the functions out of an Adafruit TFTLCD Arduino library and so far everything there is working fine. Now I've started to implement μGUI in the hope that I'll be able to make a nice fancy GUI, and so far so good, however if I try to use the 12x16 font size or above, my LCD initialization code stops working. In particular it is the readID function from the Adafruit library that stops working, in that it returns the wrong number (0xFFFFFFFF to be exact, rather than the expected 0x990000). My first thought was that uGUI was using too much memory, however according to AS7 the application only uses 6.5% of the available RAM (and 14% of the program memory FWIW) so it would appear I'm way under the limit... However, upon observing my ID variable when debugging (the variable which appears wrong when using the larger font) which is a uint32_t, the memory location is reported to be 0x4053, which according to the datasheet is outside of the internal SRAM limit of 0x3FFF. When I use a smaller font the memory location is 0x2E53.
Has anyone else ever experienced anything like this? I'm wondering if I'm simply using too much RAM, even though AS7 says I'm only using a tiny 6.5%...
Does anyone have any ideas? Short of scraping the touchscreen and handling the UI on a PC ha!
PS I haven't posted any of my code as of yet as I figured I'd get the ball rolling first to see if there's a simple gotcha I'm missing, however we can go down that road if needs be.