Welcome! Log In Create A New Profile

Advanced

Error trying to upload Marlin

Posted by niksoley 
Error trying to upload Marlin
October 26, 2016 06:55PM
I have a gen6.d board, and I am trying to upload a newer version of Marlin to it, but I am receiving the following error:
"avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x0e
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x3a
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x48
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x54
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x4a
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x40
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xc2
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x2c
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x68
Problem uploading to board."

The board is working fine for printing, the update aims to enable auto bed leveling.
The Sanguino was installed by Boards Manager.
I have no compilation problem, and Serial Monitor Echo is able to pickup data from the board as follow:
"start
echo:Free Memory:799 PlannerBufferBytes:1168
echo:Using Default settings:
echoconfused smileyteps per unit:
echo: M92 X40.00 Y40.00 Z2078.72 E514.00
echo:Maximum feedrates (mm/s):
echo: M203 X250.00 Y250.00 Z3.00 E25.00
echo:Maximum Acceleration (mm/s2):
echo: M201 X4500 Y4500 Z40 E5000
echo:Acceleration: S=acceleration, T=retract acceleration
echo: M204 S1500.00 T1500.00
echo:Advanced variables: S=Min feedrate (mm/s), T=Min travel feedrate (mm/s), B=minimum segment time (ms), X=maximum xY jerk (mm/s), Z=maximum Z jerk (mm/s)
echo: M205 S0.00 T0.00 B20000 X10.00 Z0.20
echotongue sticking out smileyID settings:
echo: M301 P22.20 I1.25 D99.00
echoconfused smileyD init fail
workDir open failed"


About my specs:
MacOS Sierra 10.12.1;
Gen6.d board;
IDE Arduino 1.6.12 with Board: "Sanguino", Processor: ATmega644P or ATmega644PA (16 MHz), Port: "dev/cu.usbserial-A101OV2J";
Sanguino 1.0.1;
USB Driver: FT232R USB UART;

Tks in adv.

Edited 4 time(s). Last edit at 10/26/2016 07:50PM by niksoley.
Attachments:
open | download - photo 1.jpeg (178.5 KB)
open | download - photo 2.jpeg (278.8 KB)
Re: Error trying to upload Marlin
October 27, 2016 05:13PM
Try a shorter USB cable.


Makerparts.ca
Your Canadian source for V-Slot Extrusion, CNC and 3D Printing Parts and Accessories.
we are proud to be an official Openbuilds distributor.
Re: Error trying to upload Marlin
October 27, 2016 05:34PM
Didn't work, but tks for the idea.
Re: Error trying to upload Marlin
October 27, 2016 08:29PM
This basically is saying can't communicate with boot loader.

could be a few things

1) your board doesn't have a boot loader installed, it is possible to upload firmware without a boot loader and some suppliers use this method, making uploading new firmware impossible without a hardware device known as a avrisp

2) your tiring to upload with the wrong upload setting, baud rate and protocol. This is not the marlin baud rate, its is the baud rate of the boot loader.
reading the setting that where popular at the time when gen 6 was also popular

atmega644p.upload.protocol=stk500
atmega644p.upload.speed=38400

the boards.txt file that comes threw board manager uses

atmega644p.name=Sanguino W/ ATmega644P or ATmega644PA (16 MHz)
atmega644p.upload.protocol=arduino
atmega644p.upload.speed=115200

so find the boards.txt that has these settings and change the baud rate and protocol to the older setting.
restart the ardunio ide and try again

Edited 1 time(s). Last edit at 10/27/2016 10:54PM by Dust.
Re: Error trying to upload Marlin
October 27, 2016 11:31PM
Ah, I had the same issue with this board, I tried to old trick of pressing and holding the reset button until the arduino IDE said it was uploading then I let go. This worked after a couple tries. Another thing I tried was going to an older version of arduino, very old. I think it was build 22 this worked as well?
Re: Error trying to upload Marlin
November 08, 2016 01:44PM
Hi all, few updates:

Tried the trick of pressing reset button without success. sad smiley

I will try edit the board.txt before burning the bootloader.
So, just looked for 644p in my board.txt file, and I was not able to find it. However, as attachment, the option is in the menu, am I doing something wrong?

Follow a copy of my board.txt [pastebin.com]
It is located at Contents/Java/hardware/arduino/avr
Attachments:
open | download - Screen Shot 2016-11-08 at 16.36.48.png (203.9 KB)
Re: Error trying to upload Marlin
November 08, 2016 04:09PM
The Boards Manager like to install stuff in a not obvious directory

On Mac OS X:
/Users/(username)/Library/Arduino15

On Windows:
Arduino IDE 1.6.5r5 and previous:
C:\Users\(username)\AppData\Roaming\Arduino15
Arduino IDE 1.6.6 and later:
C:\Users\(username)\AppData\Local\Arduino15

On Linux:
/home/(username)/.arduino15 (a.k.a. ~/.arduino15)
Re: Error trying to upload Marlin
November 09, 2016 11:20AM
Hi Dust, it worked!!
However the solution was to change only the atmega644p.upload.speed=115200 to 38400, and let protocol=arduino.
Re: Error trying to upload Marlin
November 09, 2016 03:36PM
Its dependent on what boot loader they installed

Happy you have it working.
Re: Error trying to upload Marlin
December 05, 2016 08:04AM
The issue is back...

I received communication error message when uploading a Marlin Sketch, however, it was still able to complete the transfer.
After this, I am not able to communicate with the printer, tried Pronterface, Octoprint and Arduino IDE. It sees the port "dev/cu.usbserial-A101OV2J", but is not able connect, retrieving the following message:
"
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Problem uploading to board. See [www.arduino.cc] for suggestions.
"

Edited 1 time(s). Last edit at 12/05/2016 08:05AM by niksoley.
Sorry, only registered users may post in this forum.

Click here to login