When we make any change to the default source code, compile it, and upload it to the robot, it will not run. The robot controller just hangs, with lights flickering on and off. The upload seems to go properly, with the correct acknowledgement messages etc.
When we upload the unmodified default code, everything works properly (except that the robot complains that it cannot find the camera), so the connection between the computer and robot works just fine.
We are using the latest version of the C18 compiler.
Most problems of this sort that I’ve run into have been due to installation mistakes, diverging from the installation defaults, or reordering/relocating folders. For instance, the MPLAB toolsuite setup.
I had a problem on my home computer, however I re downloaded and installed the compiler at our office where we do or work and it compiles downloads and runs fine I would say do a full un install and then start over, It can’t hurt to try
I have the same problem with my controller.
Simple as declaring a variable messes with the controller. Writing a code works until the controller is reset or powered off. Then the program state gets messed up