Really stupid question about configuration.h

So… my Y axis is moving in the wrong direction. I’ve got JST plugs on the wires so would rather not turn the plugs round. I’m trying to edit configuration.h to invert the axis.

It doesn’t appear to be doing anything at all.

What I’m doing:

  • Insert microSD card into PC’s card reader
  • Navigate to F:\marlin\marlin to find Configuration.h
  • Open in Notepad, edit #define INVERT_Y_DIR from false to true
  • Save the file
  • Turn off Lowrider
  • Unplug TFT35 from SKR Pro
  • Insert Micro SD card into SKR Pro
  • Turn on Lowrider. No green light flashes on the board, but given the tiny amount of data to transfer, maybe it doesn’t get the signal long enough?
  • Wait 10s or so, turn off Lowrider
  • Plug TFT35 back in
  • Turn on Lowrider
  • Attempt either to Move or to Home y-axis
  • Y axis moves in the wrong direction again

It doesn’t matter what I do to configuration.h; it doesn’t change the direction of travel for either moving or homing. It seems as if it’s just ignoring the file and not updating it. Can anyone see where I’m going wrong? Is the filename case sensitive? Do I need to drop a new copy of Firmware.bin in the card’s root directory to make the SKR Pro realise it needs to look for updated files? Any thoughts or advice gratefully received!

Tried putting a new copy of firmware.bin in the card’s root. Green lights on the board; still no change in behaviour. It’s absolutely determined to move in the wrong direction.

Ignore me, I am being stupid. (wanders off to figure this PlatformIO thing out)

You could just power down, flip the stepper connector 180 degrees, and power back up

I’d have had to cut and re-solder the stepper wires as the .JST plugs only go into the board one way. I followed the clear instructions on how to install platformio and compile updated firmware and everything’s moving in the right direction now. I think I’ve compiled it with the right X and Y bed size now too.

1 Like

You can use a small tool to depress the JST pins and pull them out of the connector, then reinsert them in the correct order.

Faster and neater than cutting and soldering

Man, I fought with the X-axis pins for ages to get them out of that connector; no dice. Tried everything to unlatch them and eventually gave up and got the iron out. I’d have inverted the X axis in firmware rather than solder it if I’d been smart enough to understand how to recompile sooner.