Welcome! Log In Create A New Profile

Advanced

Melzi upload problem

Posted by Shohart 
Melzi upload problem
June 08, 2015 08:29AM
Hello, folks! sad to say i am a complete noob at arduino.
so here is the deal. i am trying to upload marlin firmware to my melzi board with 1284p atmega chip.
Compilling goes without any error, but when it comes to uploading i got this error:

 java.lang.NullPointerException 
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:59)
at processing.app.Sketch.upload(Sketch.java:1713) 
at processing.app.Sketch.exportApplet(Sketch.java:1624) 
at processing.app.Sketch.exportApplet(Sketch.java:1596) 
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2392)
at java.lang.Thread.run(Unknown Source)

my melzi board is a ebay hybrid, which should handle firmware for 2.0 boards. it has a "sprinter' firmware now, but i need to upload marlin with lcd support.
i use arduino ide 1.5.8 beta. i suupose that something is wrong with my java setup, but i can not understand what is wrong exactly.
thank you.
Re: Melzi upload problem
June 08, 2015 08:42AM
I would try a more stable arduino ide

1.6.4 for eg... a beta is well... beta

NB the way you add Sanguino support is now different in 1.6.4 see install sanguino
Re: Melzi upload problem
June 08, 2015 10:19AM
i got this problem even on other not beta 1.5.x ide... but i will try your advice thank you!
Re: Melzi upload problem
June 08, 2015 11:00AM
Quote
Dust
I would try a more stable arduino ide

1.6.4 for eg... a beta is well... beta

NB the way you add Sanguino support is now different in 1.6.4 see install sanguino

when i use this metod to install sanguino with 1.6.4. ide, my compilling can not complete. it is just hangs on "Compilling....." and this is all.(((
Re: Melzi upload problem
June 10, 2015 01:34AM
it was marlin build, that i were using - was defective somehow.
now i got another errors, after succesful compilation:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x9e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x9e
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=0x2d
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x2a
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x73
i use latest arduino ide now. i doublechecked all the settings - wires, port, board, cable...
still no result.
thank you.
Re: Melzi upload problem
August 09, 2015 02:57AM
Hi.
This is a bug in the autoreset Avrdude> 5.1.
There are two solutions.
1. Press the RESET on the board at this time.
2. file \ arduino-1.6.4 \ hardware \ marlin \ avr \ boards.txt
correct line

sanguino.upload.protocol = stk500
on
sanguino.upload.protocol = arduino
Sorry, only registered users may post in this forum.

Click here to login