Could you please post your code in text? I would like to test it and I'd like to avoid any issue caused when transcribing it.
By the way, I saw an issue very similar to this one on a thread from a couple of months ago (unfortunately I can't find it) where the issue was not the code at all. The user was developing a script with similar functionalities to this one and he used the Eclipse IDE to upload it. The script always failed at the same point even though the code appeared to be fine. I spent a few hours checking it to see if I could find any issues but I failed. Then I decided to test it myself and to my surprise the code worked perfectly for me. The only difference, I compiled the code directly on my Edison. For unknown reasons uploading the script from Eclipse was causing issues. Could this be what's happening to you? Have you tried to compile your code directly on your Edison?
can u share that code with me??
I Need to verify the code with Mine one??
After a long search I was able to find the thread I mentioned before: https://communities.intel.com/message/390940#390940. You can see that the issue was, strangely, uploading the code from Eclipse.
Nevertheless, I would not suggest you to compare the codes as they are very different, the features they share are the timer interrupts. I would suggest you to try to compile and run the code directly on Edison.
If you don't know how to compile code directly on Linux, please let me know and I'll be more than glad to teach you how to do it.
Also, could please share your code in text? As I mentioned before, I would like to test the code and I’d like to avoid errors when transcribing the code.