I have Open Cortex-M4 Kits Open407V-D. I try to do an application resembling as proposed in this link. At the first part the LCD work correctly. But in the second part I have a problem when I want calibrate the screen touch. When I add the line “TouchPanel_Calibrate();” in my program , the card blocked in the third square of calibration. After many operation ,I look that the problem is related with this line “setCalibrationMatrix( &DisplaySample,&ScreenSample,&matrix );” located in “TouchPanel_Calibrate()” function in xpt2046 library. When I remove this line the card work and he run correctly, but the Touchscreen is not calibrated.