Welcome! Log In Create A New Profile

Advanced

RAMPS 1.4 - Error during uploading Firmware

Posted by druss 
RAMPS 1.4 - Error during uploading Firmware
September 03, 2013 12:52PM
Hi,
I recently received a RAMPS 1.4 KIT from ebay. It's a Chinese Sainsmart kit.

The first thing I do after I opened the box was to mount the RAMPS on the Arduino 2560 rev3. After :
- I plugged the USB cable on the Arduino 2560
- I plugged it on my computer and install the driver (from arduino-0023 drivers file)
- in the Arduino 0023 software, I chose the Arduino Mega 2560 board and the good Serial Port (COM4)
- I oppened the Marlin.pde, change the configuration file (board #33)
- I launched the upload


The upload start and everything seems ok until the end of the upload and I have this message :

Binary sketch size: 48746 bytes (of a 258048 byte maximum)
avrdude: verification error, first mismatch at byte 0x1128
0xb1 != 0x31
avrdude: verification error; content mismatch



I don't have always the same bytes listed in the error message, it's strange..
I tried to remove the RAMPS for test only with the Arduino 2560, but it's the same problem.

Could you help me please ?

Regards,
Druss
Sorry if my english isn't very good...
Re: RAMPS 1.4 - Error during uploading Firmware
September 04, 2013 08:50AM
Arduino 0023 + latest version of Marlin :
Binary sketch size: 48746 bytes (of a 258048 byte maximum)
avrdude: verification error, first mismatch at byte 0x1128
0xb1 != 0x31
avrdude: verification error; content mismatch


Arduino 1.0 + latest version of Marlin : I dont know why there is an other bytes number....
Binary sketch size: 49164 bytes (of a 258048 byte maximum)
avrdude: verification error, first mismatch at byte 0x1128
0xe1 != 0x61
avrdude: verification error; content mismatch


I contacted the seller and he send me his version of Marlin (and some PDF which are the wiki..).
Arduino 1.0 + chinese version of Marlin :
Binary sketch size: 96714 bytes (of a 258048 byte maximum)
avrdude: verification error, first mismatch at byte 0x0928
0x76 != 0x36
avrdude: verification error; content mismatch
Re: RAMPS 1.4 - Error during uploading Firmware
September 04, 2013 08:52AM
I tried to upload the test code from the seller :

#define X_STEP_PIN         54
#define X_DIR_PIN          55
#define X_ENABLE_PIN       38

#define Y_STEP_PIN         60
#define Y_DIR_PIN          61
#define Y_ENABLE_PIN       56

#define Z_STEP_PIN         46
#define Z_DIR_PIN          48
#define Z_ENABLE_PIN       62

#define E0_STEP_PIN         26
#define E0_DIR_PIN          28
#define E0_ENABLE_PIN       24

#define E1_STEP_PIN         36
#define E1_DIR_PIN          34
#define E1_ENABLE_PIN       30


void setup() {
  pinMode(X_STEP_PIN, OUTPUT);
  pinMode(X_DIR_PIN, OUTPUT);
  pinMode(X_ENABLE_PIN, OUTPUT);
  
  pinMode(Y_STEP_PIN, OUTPUT);
  pinMode(Y_DIR_PIN, OUTPUT);
  pinMode(Y_ENABLE_PIN, OUTPUT);
  
  pinMode(Z_STEP_PIN, OUTPUT);
  pinMode(Z_DIR_PIN, OUTPUT);
  pinMode(Z_ENABLE_PIN, OUTPUT);
  
  pinMode(E0_STEP_PIN, OUTPUT);
  pinMode(E0_DIR_PIN, OUTPUT);
  pinMode(E0_ENABLE_PIN, OUTPUT);
  
  pinMode(E1_STEP_PIN, OUTPUT);
  pinMode(E1_DIR_PIN, OUTPUT);
  pinMode(E1_ENABLE_PIN, OUTPUT);
  

}

void step(int stepperPin, int steps, int dirPin, boolean dir){
  digitalWrite(dirPin,dir);
  delay(50);
  for(int i=0;iEdited 2 time(s). Last edit at 09/04/2013 08:57AM by druss.
Re: RAMPS 1.4 - Error during uploading Firmware
September 04, 2013 09:15PM
There's no reason why 0023 should not be used.
Have you set the motherboard to 33 in the firmware? and have you set the baud rate to 115200 in the firmware and in Pronterface?


_______________________________________
Waitaki 3D Printer
Re: RAMPS 1.4 - Error during uploading Firmware
September 04, 2013 10:15PM
Quote
3DStu
I really wondered that whether your 2560 is in good condition or damaged.I suggest you to have any other program to test the mega board.(Use the software of arduino 1.0)

Confirm that you have install the driver correctly.

In the arduino software,Choose the Arduino Mega 2560 board and the right Serial Port .I do not know whether it is COM4,because different board has different Serial Port,you can check it out.
I tried Arduino software on 3 different OS (7, XP & Linux). Always the same problem.
The driver is correctly installed and the COM4 is the good one.

Quote
waitaki
There's no reason why 0023 should not be used.
Have you set the motherboard to 33 in the firmware? and have you set the baud rate to 115200 in the firmware and in Pronterface?
Agreed with the 0023 version.
Yes for the motherboard, and I tried 115200 (instead of 250000).


As I said, even a little program like the blink LED example from Arduino didn't work.
Bootloader problem ??
Re: RAMPS 1.4 - Error during uploading Firmware
September 04, 2013 11:48PM
Quote
3DStu
Have you Confirmed that your mega board is not broken ?
I confirm nothing. I don't know how to test it. But the Blink LED test doesn't work, so...
But for now I'm waiting for a solution from the seller (or from here of course).
Re: RAMPS 1.4 - Error during uploading Firmware
September 05, 2013 03:17AM
Quote
3DStu
I am not the seller of sainsmart.com. But I could be your friend.
[forums.reprap.org]
Thanks for your help.
I bought my ramps kit from the ebay seller trade_spotting, so i'm in communication with them too.

I tried all that you wrote in your post, but it doesn't work.
Re: RAMPS 1.4 - Error during uploading Firmware
September 05, 2013 01:12PM
Good news everyone !



I tried the Fade example from Arduino 0023. I changed pin9 to pin13 for use the "L" LED of the board :
/*
 Fade
 
 This example shows how to fade an LED on pin 9
 using the analogWrite() function.
 
 This example code is in the public domain.
 
 */
int brightness = 0;    // how bright the LED is
int fadeAmount = 5;    // how many points to fade the LED by

void setup()  { 
  // declare pin 9 to be an output:
  pinMode(13, OUTPUT);
} 

void loop()  { 
  // set the brightness of pin 9:
  analogWrite(13, brightness);    

  // change the brightness for next time through the loop:
  brightness = brightness + fadeAmount;

  // reverse the direction of the fading at the ends of the fade: 
  if (brightness == 0 || brightness == 255) {
    fadeAmount = -fadeAmount ; 
  }     
  // wait for 30 milliseconds to see the dimming effect    
  delay(30);                            
}

Again, I had the same kind of error message :
Binary sketch size: 2068 bytes (of a 258048 byte maximum)
avrdude: verification error, first mismatch at byte 0x022c
0xd9 != 0x99
avrdude: verification error; content mismatch


But the "L" LED is fading now !? WTF ?
I don't know if it's normal (having a verification error and it finally works.... ??)...

Edited 1 time(s). Last edit at 09/05/2013 01:12PM by druss.
Sorry, only registered users may post in this forum.

Click here to login