Created Mon, 25 Nov 2013 08:12:53 +0000 by WRainer
Mon, 25 Nov 2013 08:12:53 +0000
I have a code driving a display using Utouch and UTFT library. When compiling and uploading with mpide-0023-windows-20120903 everything is fine, display and touch function work reliable. But when doing compiling and upload with mpide-0023-windows-20130715 I experience problems. There is no error message during compiling and upload with 20130715. It is that the display does not react on touch events right at the beginning of start (the graphics is always shown). Sometimes it starts but after a few touch events it stops also. I got the impression using increased delays in conjunction with serial.print (which I use to submitt data to another system) has improved the situation slightly. But at least it just increases the time until the display stops.
I do not know if 20130715 is supposed to be stable but I noticed this is the download file from the http://chipkit.net/started/install-chipkit-software/ webpage.
I am clueless about this behaviour as I got no error messages from 20130715 I can work on. For now I proceed working with 20120903 but I thought somebody of the chipkit software team maybe interested in this strange finding.
Best regards Rainer
Mon, 25 Nov 2013 10:35:47 +0000
I have never worked with the Utouch screens, so I can't help you from a code perspective I'm afraid.
What I would suggest though is try UECIDE - it uses the very latest core from the chipKIT GIT repository, and might cure the problem. If not, we can use the advanced facilities of UECIDE to find what is causing the problem with the compatibility of that core.
Mon, 25 Nov 2013 20:20:44 +0000
Thank you for your answer I tested UECIDE and this a real good tool! It performs very quick and I like the approach to load what is needed only.
I tested my code with UECIDE and it improved slightly. No failure at start anymore. It works a while. Precisley for a amount of 21 events of certain touch events it works. After this 21 events it performs strange and hard to explain. Funny after each 21 touch events the strange behaviour is always excactly the same.
I also deleted all serial events but this does not change anything.
It seems that a buffer has an overflow which was not the case with mpide-20120903.
Best regards Rainer
Fri, 29 Nov 2013 07:54:33 +0000
I solved the issue. The question is realy not why 20130715 does not work. The question should be why 20120903 has worked!
I made a standard mistake. An array was extended even after declared range was already filled.
By good luck compiled with 20130715 this was not an issue but with 20130715 this mistake has caused interference with other code and caused the described failures.