Welcome! Log In Create A New Profile

Advanced

Errors flashing Prusa MK3 3.2.1 to Ultimachine Einsy

Posted by ferdaze 
Errors flashing Prusa MK3 3.2.1 to Ultimachine Einsy
June 02, 2018 02:21PM
I built a clone of a Prusa MK3 and bought 2 Einsy Rambo from Ultimachine but when I try to load Prusa firmware to them I always receive errors. The errors happen on both new Einsy boards. I have tried Windows and OSX. Downloaded file many different times on many different computers same result. I have downloaded source of the 3.2.1 and also get the same result. I can load Marlin 1.1.8 and 2.0.x with NO errors and it runs great. Any ideas???

Here is the output from the Firmware updater v2:

avrdude.exe: AVR device initialized and ready to accept instructions Reading
##################################################
100% 0.01s avrdude.exe: Device signature = 0x1e9801 (probably m2560) avrdude.exe: reading input file "./fw.hex" avrdude.exe: input file ./fw.hex auto detected as Intel Hex avrdude.exe: writing flash (249582 bytes): Writing
##################################################
100% 43.19s avrdude.exe: 249582 bytes of flash written avrdude.exe: verifying flash memory against ./fw.hex: avrdude.exe: load data flash data from input file ./fw.hex: avrdude.exe: input file ./fw.hex auto detected as Intel Hex avrdude.exe: input file ./fw.hex contains 249582 bytes avrdude.exe: reading on-chip flash data: Reading
##################################################
100% 31.84s avrdude.exe: verifying ... avrdude.exe: verification error, first mismatch at byte 0x3c000 0x30 != 0x79 avrdude.exe: verification error; content mismatch avrdude.exe done. Thank you.
Re: Errors flashing Prusa MK3 3.2.1 to Ultimachine Einsy
June 03, 2018 12:11AM
Image look a little large

It says It wants to upload 249582 which is 249.582K
The board has 256k but 8k is used by the standard arduino 2560 bootloader leaving only 248k to use

Confirm the size of your bootloader by looking at the flag settings and a flag calculator (using avrdude and [eleccelerator.com])

Now I did notice that on Prusa github has his own bootloader [github.com]
I suspect he made a smaller bootloader. One of the comments is "APP_END moved from 0x3c000 to 0x3e000" which would give you the extra space required.

Sadly I'm not lucky enough to have an Einsy or a MK3 to confirm this...

Edited 1 time(s). Last edit at 06/03/2018 12:13AM by Dust.
Re: Errors flashing Prusa MK3 3.2.1 to Ultimachine Einsy
June 03, 2018 10:59PM
Looks like that's it. When I verify it with Arduino it shows "Sketch uses 248452 bytes (96%) of program storage space. Maximum is 258048 bytes.". Thank you sooo much!!!

So now I need to update to the bootloader to use Prusa. Any good guides on doing that using an UNO?
Re: Errors flashing Prusa MK3 3.2.1 to Ultimachine Einsy
June 04, 2018 12:26AM
The basics are covered here... [learn.sparkfun.com] or [www.arduino.cc]


what I cant see any where are the correct fuse vales for prusa bootloader... you might have to play there or It may be the same... wont know till you try uploading after installing stk500boot.hex

What you should see is a display on the 2004 lcd from the bootloader, as thats something he has added.

Edited 1 time(s). Last edit at 06/04/2018 12:33AM by Dust.
Re: Errors flashing Prusa MK3 3.2.1 to Ultimachine Einsy
June 04, 2018 10:59AM
I'm not sure which pins to use on the Einsy board. It only has a ICSP 32u2 connector so need to find the correct pins elsewhere. Anyone know?
Re: Errors flashing Prusa MK3 3.2.1 to Ultimachine Einsy
June 04, 2018 05:49PM
[github.com]



Says It on J19



Edited 1 time(s). Last edit at 06/04/2018 05:54PM by Dust.
Re: Errors flashing Prusa MK3 3.2.1 to Ultimachine Einsy
June 04, 2018 08:47PM
I think this is how the connections go. What do you think?
Attachments:
open | download - Einsy slave off UNO master.png (489.4 KB)
Re: Errors flashing Prusa MK3 3.2.1 to Ultimachine Einsy
June 04, 2018 09:30PM
Looks ok. not sure why you went for reset on Ext P2 vs reset on J19
Re: Errors flashing Prusa MK3 3.2.1 to Ultimachine Einsy
June 05, 2018 12:41AM
Because of logic level of Raspberry PI is 3.3v, the RESET pin is also inverted so you can't use it with a standard AVR programmer that expects nRESET. The only thing I'm wondering is 5v vs 3.3v on the UNO source pin.
Re: Errors flashing Prusa MK3 3.2.1 to Ultimachine Einsy
June 05, 2018 12:49AM
Uno is 5v (unless you have a 8mhz clone running 3.3) , mega is 5v...
Re: Errors flashing Prusa MK3 3.2.1 to Ultimachine Einsy
June 05, 2018 04:57PM
It worked!!! Thanks for the support!!!
Re: Errors flashing Prusa MK3 3.2.1 to Ultimachine Einsy
June 05, 2018 11:45PM
Yay!
Re: Errors flashing Prusa MK3 3.2.1 to Ultimachine Einsy
June 28, 2018 04:49PM
Any chance of a step by step guide on how you did it ferdaze. I am trying to do the same and struggling. Your wiring diagram so far has been really helpful.
Sorry, only registered users may post in this forum.

Click here to login