Disclaimer: This is only for Windows XP. It worked for me and may not work for you. I’m a complete novice, so use at your own risk. That said, this procedure completely fixed the “avrdude: stk500_disable(): protocol error, expect=0×14, resp=0×51″ errors I was getting in the Arduino environment.
- Download and install the Arduino IDE
- Download the Sanguino patch
- Apply the Sanguino patch to the Ardunio IDE (Directions copied from this page)
- Copy “\sanguino-software-1.x\cores\sanguino” to “\arduino-0017\hardware\cores\sanguino“
- Copy “\sanguino-software-1.x\bootloaders\atmega644p” to “\arduino-0017\hardware\bootloaders\atmega644p“
- Copy all the folders in “\sanguino-software-1.x\libraries\” to “\arduino-0017\hardware\libraries\” overwriting the existing libraries.
- Open the Arduino file located at “\arduino-0012\hardware\boards.txt” and append the text from “\sanguino-software-1.x\boards.txt“
- Edit the “\reprap-gen3-firmware-1.6\ArduinoSlaveExtruder\ThermistorTable.cpp” file so that it reflects the new table information for the 1mm thermistor. (New table data courtesy of Jet)
- Copy the entire contents of “\reprap-gen3-firmware-1.6\libraries\” into “\arduino-0017\hardware\libraries\”
- Run the Arduino IDE
- Tools -> Board -> “Arduino Diecimila, Duemilanove, or Nano w/ ATmega168“
- Open “\reprap-gen3-firmware-1.6\ArduinoSlaveExtruder\ArduinoSlaveExtruder.pde“
- Sketch -> Verify/ Compile
- Wait for “Done compiling.“
- Hold down the reset button on your extruder board.
- Click “Upload“
- Wait for 3 seconds after you’ve clicked “Upload” and then let go of the reset button.
Congratulations!
A huge thank you to Jet and Rick Pollack for walking me through this procedure step by step.
[...] that I reflash the extruder firmware. After several failed attempts, I finally figured out how to flash my extruder firmware from the Arduino environment by holding down the extruder reset button. This got rid of the payload error message as well as the avrdude errors and let me reflash the [...]
Very nice info! I still have to do the 1mm thermistor update for my Cupcake. I will definitely use these instructions to get the job done.