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.16k stars 19.21k forks source link

[BUG] Connecting Octoprint crashes Ender-3 board (bugfix-2.0.x) #14548

Closed sshockley closed 5 years ago

sshockley commented 5 years ago

Description

Marlin 2.0.x-bugfix from Jul 5 crashes on Ender 3 Pro when connecting with Octoprint

Steps to Reproduce

  1. Boot printer normally
  2. Press Connect in Octoprint interface
  3. Ender/Marlin splash screen appears on LCD

Expected behavior: [What you expect to happen] No reboots from connecting a USB device

Actual behavior: [What actually happens]

Additional Information

I upgraded from the stock firmware to try to install a BLtouch clone. I couldn't get 1.1.x-bugfix to work with my sensor, so I tried 2.0.x-bugfix via git. After spending some time trying to get 1.1.x to work, I do like what you're doing with 2.0.x.

At any rate, I'll be glad to get any logs or whatever you may need, I'll just need to know how to get them. I did have to disable the sdcard so the bltouch would fit. Diff of config is attached. Thanks!

Marlin20x.zip

reloxx13 commented 5 years ago

this is how ATMega chips work/sync.

DerAndere1 commented 5 years ago

@sshockley : Please close this issue, if your printer can execute prints after the reset. As relox13 mentioned above, this is not a bug. The Atmega is expected to reset once during establishment of the connection.

sshockley commented 5 years ago

Okay, I didn't realize that. I don't believe the stock firmware did.

thinkyhead commented 5 years ago

I don't believe the stock firmware did.

It's actually a bootloader thing. Marlin has no control over stuff that happens before Marlin starts.

sshockley commented 5 years ago

Thanks for the reply. This is from the bootloader? I think I'm missing something here, or I described the behavior badly. I boot the printer normally; when I press Connect in Octoprint, the printer board reboots. It also reboots if I press Disconnect in Octoprint.

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.