Programming instructions
Reference
Project Lead The Way
©
and Carnegie Mellon Robotics Academy
©
/ For use with VEX
®
Robotics Systems
Troubleshooting ROBOTC with Cortex • 6
Troubleshooting ROBOTC with Cortex
• Restartyourcomputer
• OpenROBOTC
• StartwiththeCortexTurnedOFF
• ConnecttheCortextothecomputeroverUSB
• TurntheCortexOn
• RetrydownloadingtheMasterCPUFirmware
8.AdditionalSteps
• TrydownloadingtheMasterCPUFirmwareusinganothercomputer,withthesameCortex.
• TrydownloadingtheMasterCPUFirmwareusingthesamecomputer,withadifferentCortex.
• TryusingadifferentUSBA-to-Acable.
9.Slowdownthermwaredownloadbyinsertingdelays.
• GotoWindow>Menulevel>andselectSuperUser
• GotoView>Preferences>DetailedPreferences...
• GototheVEXCortexTab
• -Theboxnextto“DelayBetweenHIDWrite”allowsyoutospecifyanumberof
millisecondstoinsertasdelays.
• Adda5milliseconddelay
• RetrydownloadingtheROBOTCFirmware
• Continuetoaddshortdelaysupuntil100milliseconds.
• RetrydownloadingtheMasterCPUrmwareuntilsuccess.
10.TrythedownloadusingtheVEXnetFirmwareUpgradeUtility,suppliedbyVEXRobotics.
• DownloadtheVEXnetFirmwareUpgradeUltility,availablehere:
• http://www.vexforum.com/wiki/index.php/Software_Downloads
• Unziptheutilityandinstructions
• Followtheinstructionsincludedwiththeutilitytoupdatethermware
Problem: Program will not Compile
1.Ifyou’reusingNaturalLanguagefunctions,makesureyou’reintheNaturalLanguageplatformtype.
• GotoRobot>PlatformType
• SelecttheNaturalLanguageoption
• GotoRobot>CompileProgramtorecompileyourcode
2.IsthecorrectPlatformTypeSelected?
• VerifythatthecorrectplatformtypeisselectedunderRobot>PlatformType
• Retrydownloadingtheprogram
3.Checkyourcodeformistakes.
• Areyoumissinganycurlybraces?
• Areyoumissinganysemicolons?
• Areanyofyourcommandsorvariablesimproperlycapitalized?
• Doanyofyourcommandsorvariablescontaintypos?
• GotoRobot>CompileProgramtorecompileyourcode
Go to Reference Links