Enabling SPI pins as digital I/O

Basic Information:

Printer Model: re:3D Gigabot 4
MCU / Printerboard: Archimajor (Archim) sam3x8e
Host / SBC: Raspberry Pi 4B
klippy (45).log (203.6 KB)

Describe your issue:

On the Archim boards, pins PA25, PA26, PA27 are reserved on spi0. I’d like to use these pins as standard digital pins. Is there a way to disable/change the pin reservation within the source code or configuration?

It seems that this may not be possible with the Archim board as it appears that spi0 is driving multiple peripherals including the thermocouples.


Anyhow, I modified Klipper to change pins PA25, PA26, PA27 to GPIO and was met with bus conflicts. Here’s the code change if anyone finds it helpful:
Modify SPI pins to GPIO · re3Dev/klipper@2cdb3ba · GitHub

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.