Welcome! Log In Create A New Profile

Advanced

Marlin: Can't change SDRAMPS Pins

Posted by Elk 
Elk
Marlin: Can't change SDRAMPS Pins
August 25, 2015 06:01AM
Hey Guys,

I have a Mendel with ATMega1280 and pololu-electronics (I soldered the boards myself on stripboard - the firmware is an older marlin release that is configured to work like with RAMPS 1.1 but i changed all pin assignments to fit my electronics).
Everything worked fine for years but now I would like to attach a SDRAMPS and since the SDRAMPS-related Pins are already in use for my axis, I tried to use different pins for SDRAMPS.

But even though I changed the pin assignment, my X-Axis blocks as soon as I activate sdsupport… any suggestions?

Following my Pin-Assignment (Works flawlessly without SDSUPPORT turned on…):
#define X_STEP_PIN         51
#define X_DIR_PIN          53
#define X_ENABLE_PIN       49
#define X_MIN_PIN          47
#define X_MAX_PIN          -1   //2

#define Y_STEP_PIN         43
#define Y_DIR_PIN          45
#define Y_ENABLE_PIN       41
#define Y_MIN_PIN          39
#define Y_MAX_PIN          -1    //17

#define Z_STEP_PIN         42
#define Z_DIR_PIN          44
#define Z_ENABLE_PIN       40
#define Z_MIN_PIN          38
#define Z_MAX_PIN          -1    //19

#define E0_STEP_PIN         48
#define E0_DIR_PIN          50
#define E0_ENABLE_PIN       46

this is what i changed in the file «fastio.h»

#if defined (__AVR_ATmega1280__) || defined (__AVR_ATmega2560__)
// UART
#define	RXD			DIO0
#define	TXD			DIO1

// SPI
#define	SCK			DIO32	//was 52
#define	MISO			DIO34	//was 50
#define	MOSI			DIO33	//was 51
#define	SS			DIO31	//was 53

I also changed the assignment of the above mentioned pins for SCK, MISO, MOSI and SS in «pins.h» and in «Sd2PinMap.h» with no result… any ideas?

THANKS for your help!
Re: Marlin: Can't change SDRAMPS Pins
August 25, 2015 06:54AM
AFAIK, you can´t change the pins for SPI. They are fixed in the processor.
You´ll have to rewire the driver pins and reassign them to freely available digital pins.
-Olaf
Elk
Re: Marlin: Can't change SDRAMPS Pins
August 25, 2015 02:27PM
Ugh....

I see... thanx for mentioning!
Will rewire then..
Sorry, only registered users may post in this forum.

Click here to login