Quantcast
Channel: Reprap Forum - Sanguino(lolu)
Viewing all articles
Browse latest Browse all 1033

Re: Sanguinololu Rev 1.3a - how to load firmware

$
0
0
hate to tell you thing all you needed was new steps/mm so M92 Z### in the start.gcode or save in eeprom... and direction just needs you to turn the stepper plug around 180 degrees or swap two wires in the plug

if you enable eeprom then you can update most things via gcode and then save with m500 you only need to get your thermisters and endstops working in firmware,
even if eeprom is disabled you can just add gcode to your slicer start file to set almost everything.


With the avrisp you now have full control over the chip. This is good and bad. (the bad being fuses)
Installing a new boot loader should fix your uploading over serial issue. NB Installing bootloader in ardunio ide will also change the fuses (setting) of the chip. You probably want to back these up first (google avrdude command line) Its just 3 or 4 bytes that set configuration data.

in that boards.txt file is
sanguino.bootloader.tool=arduino:avrdude
sanguino.bootloader.low_fuses=0xFF
sanguino.bootloader.high_fuses=0xDE
sanguino.bootloader.extended_fuses=0xFD
sanguino.bootloader.unlock_bits=0x3F
sanguino.bootloader.lock_bits=0x0F

but this is for a generic board not specific to your controller.
In particular you need to ensure that jtag is off, as these pins a redefined and reused as endstops..

NB if you get the fuses totaly wrong, you can stuff accessing the chip, by setting wrong clock divisor etc, so it gets the baud rates wrong.

what would do is, display the current fuses with avrdude
plug the values into [www.engbedded.com] (select atmega1284p)
see what is set, perhaps post it here...
now find out what the above boards.txt sets
make sure JTAG Interface Enabled is off. and the oscillator setting as the same (boot size will change)

Viewing all articles
Browse latest Browse all 1033

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>