Hello, I am trying to get uGFX working on STM32F429-Discovery (with Keil MDK4 and using stdperiph libs), and so far I have managed to get the LCD and the touch panel working - with one problem. As long as i am in the process of calibration (blue screen), everything works fine, as soon as I finish calibration, the device goes into hard fault while switching context (or so it seems).
Attached is a picture of my IDE - the highligthed instruction in disassembly is exactly where it goes bang. I have noticed that while the calibration is running, the program enters into gfxXSwitch() with a "random" value in R6 register but when it gets to this point in the execution, it is reset to 0x0. After the calibration though, R6 retains its value, which i believe causes a jump to a wrong address. EDIT: I have also attached the call stacks before CXT_RESTORE is called and then just before the fault.
Thank you in advance for your help,
Daniel.
before CXT_RESTORE()
after (it gets messed up somehow by having most of its content deleted, if I am understanding it correctly)