#AUX-2 Pins on SKR E3 Turbo

1 messages · Page 1 of 1 (latest)

tiny fossil
#

Hey all! I am trying to add an external stepper motor to my SKR E3 Turbo (external driver, too), and for that I need 4 digital pins such as the AUX-2's sda2, scl2, sda0, and scl0. However, I can't seem to figure out how to declare them in the firmware without getting a compilation error "was not declared in this scope". Can anyone help me out?

sweet path
#

ehm... exactly same as all other driver pins?

#

show what you do

tiny fossil
#

i have those pin declarations for this function (in motion.cpp)

sweet path
#

SDA/SCL are invalid names

#

must be actual port names

tiny fossil
#

that was my initial thought, but thats what the pinout says

sweet path
#

Px_xx

#

pinout labels are irrelevamt

tiny fossil
#

and on their github, only sda1 and scl1 show up

sweet path
#

look at schematic and datasheet

calm temple
tiny fossil
#

would that mean that those pins are unusable separately

sweet path
#

also C___PIN is invalid

#

valid letters are IJKUVW

tiny fossil
#

oh

sweet path
#

and Z2 etc if it's not 4th+ axis

tiny fossil
#

i found this on the datasheet, does that mean i'd put P0_27 instead of SDA0?

sweet path
#

yep

tiny fossil
#

alright, thanks!

tiny fossil
#

just a follow up question - I put these lines of code in the setup function of MarlinCore.cpp (to test that the motor receives the signals on power on - I previously tested it synchronous with G28 but it didnt work) and its not working. I know the code works as I tested it on an Arduino circuit, but I can't figure out what's going wrong on the printer

sweet path
#

wtf is CS for?

#

overall code is very wrong for marlin