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] ¿Configuration? TMC2130 conflicts with SD Card on RAMPS 1.4 #25968

Closed Amachete closed 1 year ago

Amachete commented 1 year ago

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

TMC Drivers conflict with SD Card on RAMPS 1.4.

I had TMC2130 and SDCARD, working together, without any problem.

I have just updated the firmware and the SDCARD stopped working and TMC2130 aswell.

When unplug the cable for SPI for the TMC drivers, marlin recognices the SDCARD and is able to read it.

Bug Timeline

I do not know, It´s been a while without updating.

Expected behavior

TMC2130 and SD card work together without issues.

Actual behavior

3D PRINTER is unable to work.

Steps to Reproduce

No response

Version of Marlin Firmware

latest

Printer model

P3STEEL

Electronics

RAMPS-MEGA

Add-ons

No response

Bed Leveling

None

Your Slicer

None

Host Software

None

Don't forget to include

Additional information & file uploads

Marlin2.0_conf_2023.zip

M43.txt

It looks similar to:

[BUG] MKS Robin E3D v1.1 + TMC2130 SPI conflicts with SD Card SPI #22755

ellensp commented 1 year ago

You don't actually give any details on how its wired

Current config looks like it is meant to be for a hardware spi on sdcard, but software spi on tmc2130's

but for eg the BTT ramps 1.6+ has hardware spi to all devices

what method are you using?

ellensp commented 1 year ago

If you are young software spi for your tmc's you need to enable #define TMC_USE_SW_SPI

Amachete commented 1 year ago

Hello.

I use the same SPI pins (port) as the SD, I will include a Picture.

I have just seen the change that has messed up my set up..

The old RAMPS configuration you use the default SPI configuration, or use a SW-SPI PINS

AS from BUGFIX-2.0X:

pins_RAMPS.h

// // TMC software SPI //

if ENABLED(TMC_USE_SW_SPI)

ifndef TMC_SW_MOSI

#define TMC_SW_MOSI                       66

endif

ifndef TMC_SW_MISO

#define TMC_SW_MISO                       44

endif

ifndef TMC_SW_SCK

#define TMC_SW_SCK                        64

endif

endif

On the new pins_RAMPS.h

The default pins are:

// // TMC software SPI //

ifndef TMC_SPI_MOSI

define TMC_SPI_MOSI 66

endif

ifndef TMC_SPI_MISO

define TMC_SPI_MISO 44

endif

ifndef TMC_SPI_SCK

define TMC_SPI_SCK 64

endif

So you have to write your SPI-pins...on the configuration.h

TO use the default SPI as the SD.

/**

So It ´s fixed for me,

Thank you for your time.

SPI_WIRING

Just in case someone asks, there is an small pcb board with square holes, for the heatsinks in order to cool dawn the steppers, theres is also a fan o top. The pcb board works as a bus of wire....sort of

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