Welcome! Log In Create A New Profile

Advanced

Problem with uploading marlin to sanguinololu

Posted by beamsjr 
Problem with uploading marlin to sanguinololu
March 24, 2013 10:08PM
I am having issues with loading the firmware on to my sanguinololu, I just flashed the sanguino bootloader to the 1284p-pu using the arduinoISP method, now when I try uploading marlin I get

java.lang.NullPointerException
	at processing.app.debug.AvrdudeUploader.getProgrammerCommands(AvrdudeUploader.java:226)
	at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:62)
	at processing.app.Sketch.upload(Sketch.java:1671)
	at processing.app.Sketch.exportApplet(Sketch.java:1627)
	at processing.app.Sketch.exportApplet(Sketch.java:1599)
	at processing.app.Editor$DefaultExportAppHandler.run(Editor.java:2416)
	at java.lang.Thread.run(Thread.java:619)

Has anyone seen this before? Thanks!
Re: Problem with uploading marlin to sanguinololu
March 25, 2013 12:52PM
Now all I can get is avrdude: stk500_getsync(): not in sync: resp=0x00

I also tried replacing the FTDI chip to see if that was the problem, loopback test is working fine.

Using Arduino 1.04, cant even send the blink program to it...
Re: Problem with uploading marlin to sanguinololu
March 25, 2013 08:49PM
I burned the 0023 version of the bootloader tonight and tried to flash a sketch in verbose mode, this is the result,

Binary sketch size: 1176 bytes (of a 129024 byte maximum)
C:\Users\3d\Desktop\arduino-0023\hardware/tools/avr/bin/avrdude -CC:\Users\3d\Desktop\arduino-0023\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega1284p -cstk500v1 -P\\.\COM5 -b57600 -D -Uflash:w:C:\Users\3d\AppData\Local\Temp\build6329919361940737036.tmp\Blink.cpp.hex:i

avrdude: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32
Copyright (c) 2000-2005 Brian Dean, [www.bdmicro.com]

System wide configuration file is "C:\Users\3d\Desktop\arduino-0023\hardware/tools/avr/etc/avrdude.conf"

Using Port : \\.\COM5
Using Programmer : stk500v1
Overriding Baud Rate : 57600
avrdude: ser_open(): setting dtr
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: Send: Q [51] [20]
avrdude: Recv:
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

avrdude done. Thank you.
Re: Problem with uploading marlin to sanguinololu
March 25, 2013 10:44PM
Ok, I got it to work with 0023 by replacing resoldering the FTDI chip again. Tried burning the 1.0 f bootloader again with the same results, cant seem to get it to work at all with arduino v 1 or greater. Is there another bootloader that is used for the 1.0? when I got my sanguinololu it worked with 1.04, so I dont understand whi I cant get it to work. Anyway, Ill get it working for now with 0023.

Thanks
Re: Problem with uploading marlin to sanguinololu
April 04, 2013 06:14AM
There is something "wrong" with the 1284p bootloader that comes with arduino, or at least I couldn’t get it to work either.
I’ve seen others having the same issues...

see [dustsreprap.blogspot.co.nz] for how I installed a blank 1284p into my SL and got it working. The stuff you want starts about half way down the post.

If your AVR is setup in arduino you can just flash the boot loader via the IDE, my AVR wasn't setup when I did this.

Edited 2 time(s). Last edit at 04/04/2013 06:20AM by Dust.
Sorry, only registered users may post in this forum.

Click here to login