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

[Stupid (?) question or BUG] Sensorless homing sensitivity settings #13990

Closed Patag closed 5 years ago

Patag commented 5 years ago

Bonjour à tous, Sorry in advance if you consider this as a “support” question but I don’t feel it is. I'm trying to set-up a printer SKRv1.3-based with sensorless homing feature, using TMC5160 on X and Y axis. As far as I've understood, the menu “Configuration/Advanced settings/TMC drivers/Sensorless homing” is intended to set Stallguard sensitivity, thus homing bump sensitivity. Right ? But X and Y values are always set to 0 after initilisation (Power on or Reset) while M122 command shows default values defined in Marlin. Moreover, every change made from LCD panel are correctly taken into account, still confirmed by M122. Did I miss something in configuration process ? In the end, sensorless homing in working fine (only tested on X only yet) with values defined in config_adv.h, but it’s very confusing behavior. Thanks for your brilliant opinions about that. Michel

teemuatlut commented 5 years ago

The boot process should initiate the LCD variables accordingly but it's possible it isn't working correctly with TMC5160 (or others). It's also possible that since TMC5160 support is still so new, not all bugs have been fixed. You can try saving EEPROM with M500 and see if the LCD is properly initiated after that. It's possible the issue only presents itself the first time you've enabled TMC5160 in config.

thisiskeithb commented 5 years ago

I am also running an SKR 1.3 with genuine 5160 Watterott drivers in SPI/sensorless homing mode on an Ender-3 with the bugfix-2.0.x commit (940ff8e) from yesterday and the a613bca commit from 5/10/19.

If I revert back to the 15357af commit from 5/3/19, the values are populated in the TMC drivers menu.

Sensorless homing works fine and running M122 , returns the correct values from EEPROM for all three of these commits. Running M500 does not change anything.

Configs: Ender-3 - SKR 1.3 - Marlin-bugfix-2.0.x - 940ff8e - 5-11-19.zip

ghost commented 5 years ago

If this is connected to the TMC2208 problem then that problem was caused by changes to Marlin in this commit ..

https://github.com/MarlinFirmware/Marlin/tree/15357af67ceb74b14606eba9fbb75d20914f8909

I see they changed the main boot-up order of things in there @teemuatlut if that means anything ?

The TMC2208 problem has been present ever since.

thisiskeithb commented 5 years ago

This should be fixed with PR https://github.com/MarlinFirmware/Marlin/pull/14008 thanks to @marcio-ao.

Patag commented 5 years ago

Fix in progress in #14008. I close

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.