|
Re: Code suddenly fails to initialize
[quote=miketwalker]Suddenly my code will not initialize, after downloading the code (which successfully compiles without any problems) the LEDs all stay the same (blinking orange ligh ton program state, solid orange on rc mode, and red solid on OI code error)
We had the same problem...going through our code..(starting with the default code and building back up), we found that commenting out the "Serial_Driver_Initialize();" in user_initialization() worked. Don't know why. but it worked!
/* Add any other initialization code here. */
Initialize_Serial_Comms();
Initialize_Encoders();
Initialize_Gyro();
robot_init();
Putdata(&txdata); /* DO NOT CHANGE! */
// Serial_Driver_Initialize();
printf("%s\n", strptr); /* Optional - Print initialization message. */
User_Proc_Is_Ready(); /* DO NOT CHANGE! - last line of User_Initialization */
}
Jon Team236
|