Quote:
|
Originally Posted by Astronouth7303
I have been having problems with my code for a while. I perpetually get some kind of program-state error (either the green-orange or just a time out), and I don't know why.
|
I had a similar problem. The code would work fine after a download, but would cause a fault shortly after a reset.
I my case it was due to commenting out the serial initialization but not removing code from the interupt handler that looked at these pins. I suspect the state of the serial pins can float during an FRC reset, then the interupt handler attempts to go somewhere it can't. Either way, including the serial initialization cleared the problem.
Jeff