Welcome! Log In Create A New Profile

Advanced

Melzi with latest Arduino IDE?

Posted by spechter 
Melzi with latest Arduino IDE?
February 14, 2017 09:36AM
I am aiming to compile and load new firmware on my factory-flashed Melzi for a Prusa i3 clone.

I believe I need to add support into my Arduino IDE from this location:
[github.com]

Now, I have created the folder (in Mac) ~/Documents/Arduino/hardware/Melzi, and copied the contents from that github folder into there.

But the latest Arduino IDE (V1.8.1) Seems unhappy.
The log window of the IDE says:
Could not find boards.txt in /Users/peter/Documents/Arduino/hardware/Melzi/cores. Is it pre-1.5?
Could not find boards.txt in /Users/peter/Documents/Arduino/hardware/Melzi/variants. Is it pre-1.5?
WARNING: Error loading hardware folder /Users/peter/Documents/Arduino/hardware/Melzi
  No valid hardware definitions found in folder Melzi.

I assume the Melzi definition folder is indeed pre 1.5 format.

Is there a fix for this?
Is it Sanguino compatible? Could I just use this: [github.com]

Or should I just go back to an old IDE?

Next I want to compile the latest Marlin, I suppose. Is that going to be a problem with an old IDE?

Thanks folks. Long, hard journey I am on here. Nothing worthwhile comes for free I suppose!
Re: Melzi with latest Arduino IDE?
February 14, 2017 10:09AM
By the way - I have tried the V1.8.1 IDE with the Sanguino config loaded.
(And all the other settings right, as far as I can tell)

It does something, but I'm not sure what.
- The board LED goes out and the power supply fan stops as soon as I hit upload.

I get the output below in the IDE trace window.
Why is it mentioning stk500 when I have the 'Programmer' set to "AVR ISP"

Arduino: 1.8.1 (Mac OS X), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"

Sketch uses 1084 bytes (0%) of program storage space. Maximum is 130048 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 16375 bytes for local variables. Maximum is 16384 bytes.
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_getsync() attempt 3 of 10: not in sync: resp=0x73
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x74
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x61
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x72
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x74
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x0d
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x0a
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x53
Problem uploading to board.  See [www.arduino.cc] for suggestions.
Re: Melzi with latest Arduino IDE?
February 22, 2017 06:49PM
I have the same problem. I try upload firmware with usbasp to bypass possible problems with drivers but its still not work.
Only thing that work is "blink" sketch uploaded with usbasp.
So I think that it must be fake ftdi chip issue.
I desolder ftdi chip and connect rx,tx,gnd,dtr pins from external usb-rs232 converter (based on ch340 chip) directly to melzi board.
Then i connect external 3,3V power suply according to melzi schematic. (Normaly ft232 give 3,3V on one of pins)
Arduino Ide see board but error presented by @spechter stays the same. This error ocurs as well when I try upload "blink" sketch.
So my conclusion is that Arduino Ide is problem, Sanguino board is no longer compatible with melzi or both.

I work on win10, so i think this is not operation system issue.

Edited 1 time(s). Last edit at 02/22/2017 07:03PM by inz.krzys.
Re: Melzi with latest Arduino IDE?
October 12, 2017 01:45PM
I Had the same error with my chineece clone from Melzi Ardentissimo.
The speed hat to be set to 57600.

Get the arduino board info from [github.com]
and do as per read.me
unzip the sanguino-master to /hardware directory.
in the main path the boards.txt edited to speed 57600,
in the /avr path edit also the boards.txt to speed 57600.

Make sore the url in the Arduino preferencens is removed an also in the liberies.

Compile AND upload passed, however it takes some time.
Succes. smiling smiley

atmega1284p.name=Sanguino W/ ATmega1284 or ATmega1284P (16MHz)

atmega1284p.upload.protocol=stk500v1
atmega1284p.upload.speed=57600
Sorry, only registered users may post in this forum.

Click here to login