|
Re: AAAUUUGGGHHH!!! RC NOT RUNNING!!!
We started getting a similar error. We then spent 3 hours removing parts of our code until we got all the way down to an empty main function with no interrupts. Then we rebuilt main using only the necessary functions to establish communication between the master and the user. Then we readded all our previous code, and it worked. Then we compared the version that worked with the version that didn't work.
Apparently, if you put a printf in your code anywhere before you call Initialize_Serial_Comms(), your program will enter a state where the program state led is flashing red/green and not even turning the robot off and back on will fix it. And it doesn't do it the first time you run the code. It only enters that state once you download the code then reset the robot, and once it enters that state it never leaves until you redownload code (not even the special prog/reset button routine fixes it).
|