Flashing Ramps with firmware

New Home Forum Mostly Printed CNC – MPCNC Advice – MPCNC Flashing Ramps with firmware

This topic contains 30 replies, has 5 voices, and was last updated by  Jeffeb3 2 months, 1 week ago.

Viewing 30 posts - 1 through 30 (of 31 total)
  • Author
    Posts
  • #38163

    Martin Brandon
    Participant

    Does the board need power to the green connector when flashing or just the usb connecting?

    I have just

    #38164

    Jeffeb3
    Participant

    The ramps doesn’t need the green power connector (but it doesn’t hurt). I read that the Rambo does.

    #38166

    Barry
    Participant
    Does the board need power to the green connector when flashing or just the usb connecting?

    I have just the usb connectted at the moment and keep getting these error’s

    Arduino: 1.8.3 (Windows 10), Board: “Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)”

    Build options changed, rebuilding all
    Sketch uses 108044 bytes (42%) of program storage space. Maximum is 253952 bytes.
    Global variables use 4651 bytes (56%) of dynamic memory, leaving 3541 bytes for local variables. Maximum is 8192 bytes.
    avrdude: ser_open(): can’t set com-state for “\\.\COM9”
    avrdude: ser_drain(): read error: The handle is invalid.

    avrdude: ser_send(): write error: sorry no info avail
    avrdude: stk500_send(): failed to send command to serial port
    avrdude: ser_recv(): read error: The handle is invalid.

    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: stk500_send(): failed to send command to serial port
    avrdude: ser_recv(): read error: The handle is invalid.

    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: stk500_send(): failed to send command to serial port
    avrdude: ser_recv(): read error: The handle is invalid.

    avrdude: stk500v2_ReceiveMessage(): timeout
    the selected serial port
    does not exist or your board is not connected
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: stk500_send(): failed to send command to serial port
    avrdude: ser_recv(): read error: The handle is invalid.

    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: stk500_send(): failed to send command to serial port
    avrdude: ser_recv(): read error: The handle is invalid.

    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: ser_send(): write error: sorry no info avail
    avrdude: stk500_send(): failed to send command to serial port
    avrdude: ser_recv(): read error: The handle is invalid.

    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_getsync(): timeout communicating with programmer

    This report would have more information with
    “Show verbose output during compilation”
    option enabled in File -> Preferences.

    Pretty sure there’s the problem. Make sure your connection settings are correct. To flash all you need is the usb cable plugged in.

    #38168

    Martin Brandon
    Participant

    What version of the arduino ide is best for flashing the firmware? Ive tried 1.8.1 & 1.8.3 so far.

    Would it be better to try an older version?

    #38169

    Jeffeb3
    Participant

    There’s not that much difference between those versions, and either should work fine.

    You have chosen COM9 from the port menu. Is that the right port? When you disconnect the Arduino, does COM9 go away? When you plug it back it does COM9 show up?

    #38173

    Martin Brandon
    Participant

    When I had it plugged into a usb3 port it came up as com 8, went through and came up with errors.

    When it was plugged into a usb2 port it came up as com 9, went through and x ame up with the same errors.

    #38175

    Jeffeb3
    Participant

    OK, this is a really common problem with beginners and arduinos. Are you sure you’ve installed the drivers? After that, it’s either try a different computer, or try a different arduino.

    #38177

    Martin Brandon
    Participant

    Ok think I may have found the answer, need to change the baud rate in the firmware from 250,000 down to 115,200.

    Going to try this later and see what happens.

    #38252

    Martin Brandon
    Participant

    I’ve gone into the com ports and changed the speed to 115200, have done the same in the config h sketch in the firmware. I’ve gone back to arduino ide version 1.16.3 and i still get the following errors right at the end?

    #38253

    Martin Brandon
    Participant

    This is so ridiculous !

    #38255

    Martin Brandon
    Participant

    Have changed com port,usb lead, baud rate etc.

    Now i get at the end

    Problem uploading to board??

    Help required please

    #38256

    Jakob A
    Participant

    Try pulling the arduino off the ramps board and connect only USB.

    #38266

    Martin Brandon
    Participant

    Have tried that Jacob doesn’t make any difference

    #38275

    Ryan
    Keymaster

    You can not change the buadrate without changing the firmware. The first error was common and just the wrong port, the second error looks like you opened the wrong file or something.

    You could very well have a bad arduino, or COM port issues (not common in newer machins), at this point it is hard to tell. Nothing is indicating it has ever worked.

    #38279

    Martin Brandon
    Participant

    Ryan,
    Just to clarify are you saying to leave the baud rate in the firmware at 250000, even though my usb2 ports wont go above 128000 max.

    Is it a bad mega 2560 in that case? I have a replacement coming tomorrow, in order to try again. I so need to be able to get my mpcnc as a printer up and running.

    In your opinion are ramps setups a bit unreliable?

    #38280

    Ryan
    Keymaster

    I have never heard of a windows machine with buadrate issues, but if that’s what it takes you have to edit the firmware to match. Or if you do get it to flash and you still will not be able to communicate with it.

    Also where are you getting these boards from?
    Some are poor quality using chips require funky drivers and usually they say or link it in the description. At the same time yes there are serious quality issues that is why mine cost so much, tons of them have issue I have to build and test each one with every single port we use because there are tons of problems. I switched to the minirambo for this reason. I even have a post selling bad boards for parts for $1 because I have soooo many of them.

    #38281

    Martin Brandon
    Participant

    I bought it as a complete kit from ebay.co.uk. the screen seems ok and lights up. As far as I know the ramps part is fine although I havent connected up any motors etc because I cant get the firmware to install to the mega.

    #38283

    Ryan
    Keymaster

    There is no way to know until you run it all. Sometimes the screen won;t read files, the motors will only move one way, endstops are permanently triggered, mosfet stuck on, so many stupid little things, I am not trying to scare you but until it moves and you make a test drawing you are not out of the woods.

    Have a look at amazon for the description to some of the ramps kits, you will see a bunch need a special driver, you might want to try that.

    #38286

    Jakob A
    Participant

    The baud rate setting in windows does not matter. Maybe try flashing the basic arduino blink example 🙂

    Another think that could be wrong is another program is hogging the com port. I think repetier-server does this (not sure it was repetier) and Simplify3D also likes to do it (if you have it running only).

    All the error logs you have posted in here so far looks to me like the com port is either not working, or something else is using it.

    #38309

    Martin Brandon
    Participant

    anyone know what the com port settings should be?

    #38311

    Jeffeb3
    Participant
    The baud rate setting in windows does not matter. Maybe try flashing the basic arduino blink example 🙂

    +1.

    anyone know what the com port settings should be?

    I haven’t used windows in a long time, but basically, it’s going to be the port that disappears when you disconnect the board, and reappears when you reconnect it. I would try the USB2 ports only.

    The blink example will reduce a lot of your unknowns. Although none of the software you are trying to flash should have anything to do with the problem it’s saying you’re having.

    Googling a little, this error:

    “can’t set com-state for “\\.\COM9””

    Looks like it might be caused by something else on the machine trying to read the COM port. Do you have any other funny software that might have the COM port open? It might also be that COM9 is the wrong port, and that there’s something else (like something on the motherboard) that is using that port for its own stuff.

    Lastly, don’t get too frustrated. This isn’t magic, it’s just logic, and we don’t have all the info. There’s a really simple problem here (and it could be that the arduino is just broken).

    #38314

    Martin Brandon
    Participant

    which programmer should we be using in the arduino ide?

    #38315

    Martin Brandon
    Participant

    there is an error that comes up as the first error line.

    something about can’t set com-state for the com port

    #38317

    Martin Brandon
    Participant

    just noticed on the mega 2560 in the middle there is like a six pin connector next to the reset switch.is this supposed to have any jumpers on it?

    #38319

    Ryan
    Keymaster

    Nope no jumpers besides under the drivers.

    #38321

    Barry
    Participant

    Click the folder icon on the taskbar.
    Right click on This PC, click Manage.
    Click Device Manager.
    Click the arrow beside Ports.
    What port number says Arduino Mega 2560?

    Attachments:
    #38324

    Martin Brandon
    Participant

    Barry,

    It shows up as ramps ( com 9 ) which is the correct port it’s connected to.

    #38369

    Martin Brandon
    Participant

    UPDATE:

    All is fixed, firmware now flashed to mega2560. ramps shield connected and screen lights up and shows everything.

    Now all i’ve got to do later today is connect motor’s etc to the ramps and test it out.

    Hopefully put a movement video on here later today.

    #38370

    Jakob A
    Participant

    What was the problem ? 🙂

    #38372

    Martin Brandon
    Participant

    something to do with drivers

Viewing 30 posts - 1 through 30 (of 31 total)

You must be logged in to reply to this topic.