Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
04 Apr 2025 10:14 - 04 Apr 2025 10:18 #325667 by Krimbles13
Hey,
sorry to bother you with this but i can't get this to work and i'm kinda frustrated.
I can't get out of e-stop and get a bad spi payload = 646174

My hardware:
Raspberry Pi 4B
BTT Octopus Pro v1.1 with stm32f446
TMC2209 Drivers with jumpers in SPI mode

I did the wiring acording to the docs and also the installation.
With cutecom i get the output in the attached file for the octopus xyz.hal.
SPI and UART are activated on the Pi and i already did a rewiring of the whole thing.
I'm tottaly new to LinuxCNC so i would really appreciate your help on this.

Thanks! peter

 

File Attachment:

File Name: debugoutput.txt
File Size:2 KB
Attachments:
Last edit: 04 Apr 2025 10:18 by Krimbles13.

Please Log in or Create an account to join the conversation.

More
04 Apr 2025 18:54 #325704 by cakeslob

TMC2209 Drivers with jumpers in SPI mode


try doing it without the drivers configured in SPI, but they should also probably be configured with UART instead if they are 2209. The Remora Octopus firmware doesnt support SPI drivers anyway. If you are planning to use TMC2209 drivers, they need to be configured in the config.txt file.

how long is the cable that connects the octopus to the rpi? Also what RPi? I dont think you need to have SPI enabled in the RPi software either. Your serial output looks perfect though, but you will need to configure the TMC drives.

Please Log in or Create an account to join the conversation.

More
05 Apr 2025 04:49 #325745 by Krimbles13
My cables are ~3in/7,5cm long and i use a Rpi 4b with the official LinuxCNC image.
Tried it with the jumpers in UART mode and the config from below, still the same error.
It tries to connect to the TMCs but fails according to the debugging.
Maybe my pin names for the rx pins are wrong but i can't find them in the BTT docs, only the CS pins are there.
 

File Attachment:

File Name: config-tmc.txt
File Size:1 KB
.
Attachments:

Please Log in or Create an account to join the conversation.

More
05 Apr 2025 15:16 #325767 by cakeslob
There needs to be motor power on for the TMC drives to configure. the CS pins are the Rx pins, but leave them in uart mode. the TMC spi is on the same channel as the comms SPI so idk what will happen if they interfere or something.
but first step is working out comms
does it connect to linuxcnc yet with the drivers in uart?

Please Log in or Create an account to join the conversation.

Time to create page: 0.134 seconds
Powered by Kunena Forum