MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.22k stars 19.22k forks source link

Marlin restarts when controlled by PC #4041

Closed adamfilip closed 8 years ago

adamfilip commented 8 years ago

I run a Rambo with Marlin RC6 Bugfix I also use simplify3d as my controller/slicer Windows 10 64bit PC

Often I turn on my printer (Makerfarm i3v 12") and tell it to start to preheat for ABS then after 10 minutes I head into simplify 3d and connect to the rambo. Once it connects. Marlin immediately restarts/reboots and I have to tell it to heat up again from S3D.

The USb cable stays physically connected all the time. I dont recall it doing this with previous versions of Marlin

tiagom62 commented 8 years ago

My (very limited) understanding is that is by design.

When i connect using repetier-host marlin resets. I would guess is so that the firmware and software are at a known state.

Roxy-3D commented 8 years ago

So... I pretty much just use PronterFace. But I see the exact opposite behavior. I can reset the board, I can disconnect and reconnect the serial link. I can do what ever I want and everything stays consistent and behaves as I expect.

But I do not unplug USB cables ever. Just to help us get more information, can you try PronterFace and tell us if you still see the same problems?

thinkyhead commented 8 years ago

When I use the "Connect" function in any host it resets Marlin. It's been this way for as long as I can remember. I do believe this is by design. You should serial connect first, then start heating.

jbrazio commented 8 years ago

Yes, this is the Arduino's hardware auto-reset feature so you can upload "sketches" to the board using the bootloader/IDE combination. This means that some boards may auto-reset when they "see" a serial connection, other will not.. it depends on the board design not on Marlin.

nmaupu commented 4 years ago

You can disable the "autoreset" pretty easily if it's bothering you but you'll need some hardware modifications... https://playground.arduino.cc/Main/DisablingAutoResetOnSerialConnection/

As the chip will not be auto reset, no more firmware upgrades will be possible after that except if you find a way to reset the board somehow.

github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.