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.3k stars 19.25k forks source link

[BUG] TMC2208 UART settings keep reverting on power cycle #16491

Closed EsQueue81 closed 4 years ago

EsQueue81 commented 4 years ago

Bug Description

When printer is turned on via M80 command from any source, my TMC2208 driver settings keeps changing.

My Configurations

Bigtreetech SKR v1.3, Octoprint on Raspberry Pi, TMC 2208 UART stepper drivers on Marlin 2.0.x bugfix (also flashed regular 2.0 with same result)

Steps to Reproduce

  1. Power off Machine
  2. Send M80 command to power on machine
  3. Send M122
  4. msteps are set to 8( print head will move 2x my input distance ignoring any set boundaries)
  5. Send M501 (restore EEPROM settings) or M502
  6. Send M122
  7. msteps are set to 16 and all is well
  8. Send M81 or power down the printer by any means keeping 5v to the board to respond to M80
  9. Send M80
  10. Send M112
  11. esteps are back to 8

Expected behavior: Driver settings should remain after a restart

Actual behavior: I need to run M501 or M502 after every reboot if I need to operate the printer my controls normally. Just outright printing also seems to set the drivers in their correct steps of 16.

Additional Information

EsQueue81 commented 4 years ago

Apparently the TMC need full voltage 12-24 to get settings. Marlin auto sends them everytime M80 (Power supply On) command is sent but due my running 3 power supplies. A 5v 12A and two 12v 75a in series for 24v it has a slight delay. I had to add the line #define PSU_POWERUP_DELAY 1000 under #if ENABLED(PSU_CONTROL) in my configuration.h file to delay the config info on startup. Closing this.

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.