Flash Firmware issue

Hello,

Really hoping someone can help me out here, Im pulling my hair out!

I’ve just upgraded my original mpcnc to the primo and added dual end stops. All good until I tried to flash the firmware.

I’ve tried both Arduino IDE and Platform io.

The error comes up in arduino as:

“An error occurred while uploading the sketch”
above that it says:

     System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

     Using Port                    : COM1
     Using Programmer              : wiring
     Overriding Baud Rate          : 115200

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

avrdude done. Thank you.

Ive installed the U8glib.

Really not sure what to try now. Any suggestions very welcome.

Also a separate question. Now I’m using all the stepper drivers should there be power to both sides of the boards power connectors?

Make certain that you’re specifying the right USB connection, and that you don’t have another program connected to the USB device. I’d forget to disconnect in Repetier Host and get that error when trying to flash firmware.

It looks like it was successful in compiling, and it can even open the serial port, but can’t talk to the microcontroller.

Is this a rambo? They need 12V power to be flashed, not just the USB.

Thanks for the tip. Im fairly sure nothing else was open but ill be sure to check tomorrow.

Thanks for the reply. Its ramps arduino 2560/ramps 1.4

I tried with power on and just power over USB.

It definitely tried to flash or did something as now the lcd is just blue and I can’t do anything with it!

Pay attention to the log in arduino, the ReceiveMessage timout means it is not working. Maybe the screen is not plugged in the right way.

I would try to disconnect everything from the mega and try again.

I’ll give it another go tomorrow. I had noticed in device manager that there was no driver assigned to it. Should it have a driver installed?

Maybe in windows 7?

Hmm. Ye I wasn’t sure of it would in Windows 10. It shows as an unrecognised device though. Is there a way to flash from the sd card?

Not with an arduino mega.

Appreciate the replies. What fixed the issue was manually installing drivers as com port in device manager using ‘add legacy hardware’. After this the firmware flashed fine.

Now I have another issue. The stepper connected to E1 (Y2) now seems to move much further than 1mm when I use the LCD controller to test movement. All other steppers working as they should.

Check the jumpers under the driver and if that doesn’t work, swap the driver.

1 Like

Thanks Jeff. Didnt know to check these. There are non under that driver! I assume all three are needed as per other drivers. I dont seem to have any spare from anything. I dont supose you know what size they are?

2.54 I think. Just ordered some. Thanks for your help

1 Like

Yep. IIRC, without those jumpers it will drive 32x faster! In a pinch, you could also just solder the two pins together, but that’s a little bit like wedging in a coin because you haven’t got any spare fuses.