Welcome! Log In Create A New Profile

Advanced

Marlin on Arduino Uno

Posted by calogerom 
Marlin on Arduino Uno
June 25, 2015 09:23AM
Hello everybody! spinning smiley sticking its tongue out
I have a big problem with serial comunication. If I upload a modified version of Marlin on Arduino Mega, serial comunication work correctly. But if I upload the same one on Arduino Uno, the microcontroller doesn't respond correctly: I can only see the first response and after the serial tx crashes. Why?
In the attachment there is the modified version of Marlin. This version is much lighter than the original (under 32kB ).

Edited 1 time(s). Last edit at 06/25/2015 09:25AM by calogerom.
Attachments:
open | download - Marlin.zip (59.7 KB)
Re: Marlin on Arduino Uno
June 25, 2015 12:57PM
It's probably running out of RAM. The Uno has only 2Kb, the Mega has 8Kb AFAIR.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Marlin on Arduino Uno
June 25, 2015 02:04PM
Are serial commands stored in RAM?
Re: Marlin on Arduino Uno
June 25, 2015 02:17PM
Quote
calogerom
Are serial commands stored in RAM?

Effectively, yes. In particular, there is a queue of pending moves, so that the printer can do lookahead. I don;t know whether you can reduce the RAM requirement enough by making the queue shorter. You might be better off using a more lightweight firmware such as Teacup.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Sorry, only registered users may post in this forum.

Click here to login