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.28k stars 19.24k forks source link

[2.0.x] TMC2130 RADDS DUE and Octoprint - no connection to USB serial ports #9382

Closed Industrial-Spiderman closed 6 years ago

Industrial-Spiderman commented 6 years ago

Bug Report

I see RADDS solutions on the internet, but those are all non TMC2130. Hence I gather there is still an issue with this specific combination. I would appreciate a fix or in case I am just misguided a hint how I can get this combination up and running.

Conf files.zip

teemuatlut commented 6 years ago

Please post the actual error message.

Industrial-Spiderman commented 6 years ago

Hello Teemualut,

here the error message with 2.1.1 TMC2130Stepper

D:\My Documents\My Arduino Projects\libraries\TMC2130Stepper\src\source\TMC2130Stepper.cpp: In member function 'void TMC2130Stepper::send2130(uint8_t, uint32_t*)':
D:\My Documents\My Arduino Projects\libraries\TMC2130Stepper\src\source\TMC2130Stepper.cpp:97:67: error: invalid conversion from 'int' to 'BitOrder' [-fpermissive]
SPI.beginTransaction(SPISettings(16000000/8, MSBFIRST, SPI_MODE3));
In file included from D:\My Documents\My Arduino projects\libraries\TMC2130Stepper\src\source\TMC2130Stepper.cpp:3:0:

C:\Users\hans-_000\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\libraries\SPI\src/SPI.h:48:2: error:   initializing argument 2 of 'SPISettings::SPISettings(uint32_t, BitOrder, uint8_t)' [-fpermissive] 
SPISettings(uint32_t clock, BitOrder bitOrder, uint8_t dataMode) {
exit status 1
Error compiling for board Arduino Due (Programming Port).
teemuatlut commented 6 years ago

This has been fixed already but I haven't pushed the changes yet. I'll make sure it's in the next release of the library.

Industrial-Spiderman commented 6 years ago

Thanks.

Any idea when that will be. I sort of cannot get the Due, RADSS, TMC2130 to by any means, so I would really appreciate....

teemuatlut commented 6 years ago

v2.1.4 released. Should fix the compile issue.

Industrial-Spiderman commented 6 years ago

Hello,

I can confirm that with MK4duo and Marlin 2.0.x the compiler error has been removed.

Industrial-Spiderman commented 6 years ago

Hello,

So the motors are turning. I have still the issue that the homing does not go properly and the motors seem to be running rough. I will do some checking on my pins as well as the homing functions in the config files. Will come back in case I cannot identify an answer.

Industrial-Spiderman commented 6 years ago

All adjustments done and runs fine. Thanks for the fast update

wbarber69 commented 6 years ago

I have a similar issue with marlin 1.1.8 where i get usb timeout errors when trying to connect to an mks gen L board with 2130 spi

thinkyhead commented 6 years ago

@wbarber69 — Please test with the latest bugfix-1.1.x (and/or bugfix-2.0.x) branch to see where it stands. If you still see the bad behavior we should investigate further.

wbarber69 commented 6 years ago

10-4, I’ll give it a go. I’ve now got simplify3d directly connected and printing ;( once it’s finished I’ll get my laptop back and give it a try. They are extremely quiet. I’m very impressed. It was a little weird having to invert all my axes. I wasn’t expecting that.

Sent from my iPhone

On Mar 3, 2018, at 7:53 PM, Scott Lahteine notifications@github.com<mailto:notifications@github.com> wrote:

@wbarber69https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwbarber69&data=02%7C01%7C%7Cf4323ab8b767462008ce08d58172c8d6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636557252345698338&sdata=sMq0kx5WvcwMdz4MlFsM%2FWuLEVr8Gvf9JEGL0j1i9b0%3D&reserved=0 — Please test with the latest bugfix-1.1.x (and/or bugfix-2.0.x) branch to see where it stands. If you still see the bad behavior we should investigate further.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMarlinFirmware%2FMarlin%2Fissues%2F9382%23issuecomment-370195157&data=02%7C01%7C%7Cf4323ab8b767462008ce08d58172c8d6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636557252345698338&sdata=1xegbnd8333peCtzaZvC75AX7EH54%2FKX7ihHuHDK45Y%3D&reserved=0, or mute the threadhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAB7M2lOFL7JfBhSBzSBtXWBbRqBe59fsks5ta0kxgaJpZM4Rv2gN&data=02%7C01%7C%7Cf4323ab8b767462008ce08d58172c8d6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636557252345698338&sdata=mqqXI%2BPFGcHDACYxQBxQbGYvZY7BBuYCJHV%2Bub%2BtVWA%3D&reserved=0.

thinkyhead commented 6 years ago

As an alternative to inverting the axes, you can also just reverse the plug. It may be that the plugs on TMC drivers are flipped compared to common pololus.

wbarber69 commented 6 years ago

My plugs are keyed but yeah I get you

Sent from my iPhone

On Mar 3, 2018, at 8:13 PM, Scott Lahteine notifications@github.com<mailto:notifications@github.com> wrote:

As an alternative to inverting the axes, you can also just reverse the plug. It may be that the plugs on TMC drivers are flipped compared to common pololus.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMarlinFirmware%2FMarlin%2Fissues%2F9382%23issuecomment-370195953&data=02%7C01%7C%7C73c69f1e3b1d4872fd4e08d581758421%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636557264074901987&sdata=ECGYJWFslfJHKIpFFruKush%2ByYM73FfVbRjExMuYarU%3D&reserved=0, or mute the threadhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAB7M2gRhfafo_ue9EPul97bVYwC6TJcMks5ta03GgaJpZM4Rv2gN&data=02%7C01%7C%7C73c69f1e3b1d4872fd4e08d581758421%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636557264074901987&sdata=vtKjiQWdFXl6tWdZOAgbfUMKY07eQlMIEt7XCb6u3Fk%3D&reserved=0.

wbarber69 commented 6 years ago

Sorry, last question... will using the software spi be a good idea?

Sent from my iPhone

On Mar 3, 2018, at 8:13 PM, Scott Lahteine notifications@github.com<mailto:notifications@github.com> wrote:

As an alternative to inverting the axes, you can also just reverse the plug. It may be that the plugs on TMC drivers are flipped compared to common pololus.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMarlinFirmware%2FMarlin%2Fissues%2F9382%23issuecomment-370195953&data=02%7C01%7C%7C73c69f1e3b1d4872fd4e08d581758421%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636557264074901987&sdata=ECGYJWFslfJHKIpFFruKush%2ByYM73FfVbRjExMuYarU%3D&reserved=0, or mute the threadhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAB7M2gRhfafo_ue9EPul97bVYwC6TJcMks5ta03GgaJpZM4Rv2gN&data=02%7C01%7C%7C73c69f1e3b1d4872fd4e08d581758421%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636557264074901987&sdata=vtKjiQWdFXl6tWdZOAgbfUMKY07eQlMIEt7XCb6u3Fk%3D&reserved=0.

thinkyhead commented 6 years ago

Yes, I definitely think it is the superior option.

github-actions[bot] commented 3 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.