code troubleshooting - VCSFA-MARS/ThinSat-Program GitHub Wiki

WIP

ARDUINO Error Codes

Problem: error: espcomm_upload_mem failed

Cause: The Arduino IDE cannot upload to the xChip.

Solution 1: Make sure the IP01 (USB Module) switches are in the proper configuration for uploading. The top switch should be on B the bottom switch should be on DCE.

Solution 2: Make sure the correct port is selected under tools.

Solution 3: Try a different USB port.

Solution 4: Restart Arduino IDE.

Solution 5: Restart your computer.

Solution 6: Try a different IP01 xChip that is known to work. If this works, you may have a faulty IP01 xChip.

Solution 7: Try a different CW01 xChip that is known to work. If this works, you may have a faulty CW01 xChip.


Problem: Scrolling Jibberish on Serial monitor

Cause: Baud rate does not match. The machines are communicating at different speeds.

Solution 1: Make the baud rates match, in the Arduino serial monitor.

Solution 2: Make the baud rates match, in the code.

All Labs

something about how the USB switches need to be in the correct position (B and DCE) BEFORE even sticking the USB in the port and uploading. Sometimes, after uploading a new program, you need to remove the xSystem then put it back into the port to get it to run the new code. Also, a lot of times you will upload a program, change it, re-upload, a get a port error. Just press upload again and it should go away

Rebooting the Chips

  1. Put the chip in 'upload mode' (switch B).
  2. Open a serial window.
  3. Close the serial monitor.

Lab 2

Problem: There is gibberish on the Serial Monitor.

Cause 1: The switch was flipped while the program was running.

Cause 2: The baud rate of the serial monitor doesn't match the Serial.begin(); statement. Double check.


Problem: I established a connection properly and there is no data on the serial monitor.

Solution: Check that your baud rate matches.

⚠️ **GitHub.com Fallback** ⚠️