{"action":"created","issue":{"url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/12005","repository_url":"https://api.github.com/repos/MarlinFirmware/Marlin","labels_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/12005/labels{/name}","comments_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/12005/comments","events_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/12005/events","html_url":"https://github.com/MarlinFirmware/Marlin/issues/12005","id":366811554,"node_id":"MDU6SXNzdWUzNjY4MTE1NTQ=","number":12005,"title":"[2.0.x, 32-bit] Problems initializing TMC2130, microstepping incorrect.","user":{"login":"marcio-ao","id":29129419,"node_id":"MDQ6VXNlcjI5MTI5NDE5","avatar_url":"https://avatars2.githubusercontent.com/u/29129419?v=4","gravatar_id":"","url":"https://api.github.com/users/marcio-ao","html_url":"https://github.com/marcio-ao","followers_url":"https://api.github.com/users/marcio-ao/followers","following_url":"https://api.github.com/users/marcio-ao/following{/other_user}","gists_url":"https://api.github.com/users/marcio-ao/gists{/gist_id}","starred_url":"https://api.github.com/users/marcio-ao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcio-ao/subscriptions","organizations_url":"https://api.github.com/users/marcio-ao/orgs","repos_url":"https://api.github.com/users/marcio-ao/repos","events_url":"https://api.github.com/users/marcio-ao/events{/privacy}","received_events_url":"https://api.github.com/users/marcio-ao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2018-10-04T14:14:52Z","updated_at":"2018-10-05T17:39:48Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"\r\nOur prototype printers that are using Archim boards no longer work after an upgrade to the latest Marlin and the new TMCStepper library. The motors runs very slowly, leading us to believe that microstepping is set incorrectly. Interestingly, our Mini 2 which uses an Einsy board works fine.\r\n\r\nWhen I do a M122, it shows the microstepping to be 256, while in Configuration_adv.h it is set to 16. Here is the output of M122:\r\n```\r\n\r\nok P15 B4\r\n\t\tX\tY\tZ\tE\tE1\r\nEnabled\t\tfalse\tfalse\tfalse\tfalse\tfalse\r\nSet current\t950\t950\t960\t960\t960\r\nRMS current\t923\t923\t923\t923\t923\r\nMAX current\t1301\t1301\t1301\t1301\t1301\r\nRun current\t17/31\t17/31\t17/31\t17/31\t17/31\r\nHold current\t8/31\t8/31\t8/31\t8/31\t8/31\r\nCS actual\t\t0/31\t0/31\t0/31\t0/31\t0/31\r\nPWM scale\t0\t0\t0\t0\t0\r\nvsense\t\t0=.325\t0=.325\t0=.325\t0=.325\t0=.325\r\nstealthChop\tfalse\tfalse\tfalse\tfalse\tfalse\r\nmsteps\t\t256\t256\t256\t256\t256\r\ntstep\t\t0\t0\t0\t0\t0\r\npwm\r\nthreshold\t\t109\t109\t527\t62\t62\r\n[mm/s]\t\t1160.55\t1160.55\t48.01\t485.79\t485.79\r\nOT prewarn\tfalse\tfalse\tfalse\tfalse\tfalse\r\nOT prewarn has\r\nbeen triggered\tfalse\tfalse\tfalse\tfalse\tfalse\r\noff time\t\t0\t0\t0\t0\t0\r\nblank time\t16\t16\t16\t16\t16\r\nhysteresis\r\n-end\t\t-3\t-3\t-3\t-3\t-3\r\n-start\t\t1\t1\t1\t1\t1\r\nStallguard thrs\t6\t5\t0\t0\t0\r\nDRVSTATUS\tX\tY\tZ\tE\tE1\r\nstallguard\t\t\t\t\t\t\r\nsg_result\t\t0\t0\t0\t0\t0\r\nfsactive\t\t\t\t\t\t\r\nstst\t\t\t\t\t\t\r\nolb\t\t\t\t\t\t\r\nola\t\t\t\t\t\t\r\ns2gb\t\t\t\t\t\t\r\ns2ga\t\t\t\t\t\t\r\notpw\t\t\t\t\t\t\r\not\t\t\t\t\t\t\r\nDriver registers:\r\n\tX\t0x00:00:00:00\r\n\tY\t0x00:00:00:00\r\n\tZ\t0x00:00:00:00\r\n\tE\t0x00:00:00:00\r\n\tE1\t0x00:00:00:00\r\n\r\n\r\nok P15 B4\r\n```\r\n\r\nHowever, I am a bit suspicious that SPI configuration is not working, as the output of this command never seems to change."},"comment":{"url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/comments/427443840","html_url":"https://github.com/MarlinFirmware/Marlin/issues/12005#issuecomment-427443840","issue_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/12005","id":427443840,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzQ0Mzg0MA==","user":{"login":"teemuatlut","id":7762686,"node_id":"MDQ6VXNlcjc3NjI2ODY=","avatar_url":"https://avatars1.githubusercontent.com/u/7762686?v=4","gravatar_id":"","url":"https://api.github.com/users/teemuatlut","html_url":"https://github.com/teemuatlut","followers_url":"https://api.github.com/users/teemuatlut/followers","following_url":"https://api.github.com/users/teemuatlut/following{/other_user}","gists_url":"https://api.github.com/users/teemuatlut/gists{/gist_id}","starred_url":"https://api.github.com/users/teemuatlut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teemuatlut/subscriptions","organizations_url":"https://api.github.com/users/teemuatlut/orgs","repos_url":"https://api.github.com/users/teemuatlut/repos","events_url":"https://api.github.com/users/teemuatlut/events{/privacy}","received_events_url":"https://api.github.com/users/teemuatlut/received_events","type":"User","site_admin":false},"created_at":"2018-10-05T17:39:48Z","updated_at":"2018-10-05T17:39:48Z","author_association":"MEMBER","body":"Can you give me the raw M122 output?"}}
{"actor":{"display_login":"teemuatlut"}}