:ahh: What does orange-green-orange-green mean for the program state LED?
:ahh: When I download my competition code with printf, I get that. When I download without, I get an infinate loop error. :ahh:
HELP?!?!?
And the default code works
[edit]Iām hitting refresh till i get a response! im frantic! i pnaicing! im not spellchacking! HELP!!! :ahh: [/edit]
Iām getting the same problem too, only for me, it runs without the autonomous code, it gives the code error thing when i load the default IR code, and does the flashy thingie when i put my autonomous code into it (even if i dont ever call it). So dont think youāre the only one.
-Kesich
Iām gonna kill my engineers; lets see if they take 6 weeks to build it next yearā¦
first released an error in the default code where the variables were not initlized at the begening of autonomus mode. check to see if you have the latest version of the default code.
Sorry if this is overly obvious, but make absolutely sure that you have both a Getgata(&rxdata) and a Putdata(&txdata) function call in whatever loop you are executing. If the user doesnāt handle data properly it shuts itself down.
If your code (not data, meaning variables) is over 32k (I think. It might be 64k) in compiled size, you have to use the large memory model. Check the size of the .HEX file. If it is greater than 32k or 64k and you donāt have any large arrays or stuff like that, try the large model.
Try downloading the default code (sorry if you already tried this). It might be that somehow your code is entering an infinite loop/it takes too long to process something and the master processor shuts it down. We had this happen to us do to a hardware component malfunstioning and our code wasnāt built to handle the values it was recieving.
āEDITā
That second error would be indicated by a flashing orange LED, so I donāt think that is it.
After e-mailing IFI about it, it turns out in Kevinās interupt code, I accidently set timer1 to High Priority :yikes:. I would post it here, but Iād rather save it until after regional (maybe just Buck-eye, not West MI). Iāll test it tonight and tell you about it.
What about the other Problem? If I donāt include a #define, printf_lib doesnāt get compiled (My design), and I get a green-orange-green-orange I described in the first post. IFI says they canāt recreate it. Help?
I got the same error and fixed it by following these steps:
1)Press and hold the RESET and PROG buttons at the same time.
2)Release RESET; continue to hold PROG until the āBattery Powerā light becomes a solid green
3)Release PROG
4)Hit Reset
I donāt know if this will help but it fixed the problem for me so i hope that it does for u too. :yikes:
Since nobody else has mentioned it on this thread, we would like to remind you that whenever you get a flashing red Program State LED indicating a code error, you can find out more information by using the Dashboard Viewer.
Make sure your OI and RC are linked via tether or radio, connect your PCās serial port to the DASHBOARD port on your OI, make sure the OI/RC jumper is set to āRCā, and you will see details about the type of error which caused the flashing red LED at the bottom of the Dashboard Viewer window.
This is how we diagnosed Astronouthās problem, and it may also help you, Kesich.
We tried covering ours with Loctite, and it made all our code problems go away. (Actually, it made all the plastic sides of the robot controller go away, and the code would no longer runā¦)
Im having the same problem at the moment with my program ⦠heh , I think I might re-write the whole code, have you tried re-writing your program in the newest version of FR_code ?