- Hardware & Machines
- Computers and Hardware
- Remora - Rpi Software Stepping Using External Microcontroller via SPI
Remora - Rpi Software Stepping Using External Microcontroller via SPI
- AlessandroEmm
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 0
17 Feb 2026 18:30 #343101
by AlessandroEmm
Replied by AlessandroEmm on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Hey there
After having successfully used a NVEM flashed Remora via Ethernet for a while, I want to use an old 3d printer board (SKR E3 Mini v2.0) via SPI for my Plasma. It took me a while but eventually i got it to respond correctly via UART, and am currently sitting at
Starting the SERVO thread
Registering interrupt for interrupt number = 28
power on Timer 2
## Entering IDLE state
Problem is that I struggle to make any communication via SPI. I think I triple checked every wire. As the SKR Mini Configuration in the repo seems to be for a version 1.2 of the board i modified the pins both in the firmware and config.txt, taking care of not using anything that may conflict with other function. But so far no nothing.
Is there any way to approach debug/test anything further to narrow down why the comms doesn't seem to work?
Thanks a lot,
Alessandro
After having successfully used a NVEM flashed Remora via Ethernet for a while, I want to use an old 3d printer board (SKR E3 Mini v2.0) via SPI for my Plasma. It took me a while but eventually i got it to respond correctly via UART, and am currently sitting at
Starting the SERVO thread
Registering interrupt for interrupt number = 28
power on Timer 2
## Entering IDLE state
Problem is that I struggle to make any communication via SPI. I think I triple checked every wire. As the SKR Mini Configuration in the repo seems to be for a version 1.2 of the board i modified the pins both in the firmware and config.txt, taking care of not using anything that may conflict with other function. But so far no nothing.
Is there any way to approach debug/test anything further to narrow down why the comms doesn't seem to work?
Thanks a lot,
Alessandro
Please Log in or Create an account to join the conversation.
- amanker
- Offline
- Premium Member
-
Less
More
- Posts: 117
- Thank you received: 2
17 Feb 2026 18:49 #343104
by amanker
Replied by amanker on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
You should post complete serial console output. It will make diagnosis easier.
You should start LinuxCNC from terminal. And terminal window what msg you get when you press estop button in lcnc gui. Is it spi_payload = 0 or something else?
Did you compiled and installed remora-spi lcnc component from same repository?
You should start LinuxCNC from terminal. And terminal window what msg you get when you press estop button in lcnc gui. Is it spi_payload = 0 or something else?
Did you compiled and installed remora-spi lcnc component from same repository?
Please Log in or Create an account to join the conversation.
- AlessandroEmm
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 0
17 Feb 2026 19:20 - 17 Feb 2026 19:48 #343109
by AlessandroEmm
Replied by AlessandroEmm on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Not really sure whats going on now as I run into segfaults. I havent changed a thing on linuxcnc side, i just changed the config.txt on the SD Card
line 977: 2610 Segmentation fault $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
Before that I haven't seen anything in the terminal or anywhere, thats why I'm a bit puzzled. Yes I compiled it from main branch, using OS6 Version for the Firmware and likewise for the hal component.
Is there a way to just test it with the halcmd? I tried loading the remora component, but struggle beyond. Show pins shows no active session.
Both the debug file and the regular logfile are basically empty with no specifics concerning the error.
Thanks!
line 977: 2610 Segmentation fault $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
Before that I haven't seen anything in the terminal or anywhere, thats why I'm a bit puzzled. Yes I compiled it from main branch, using OS6 Version for the Firmware and likewise for the hal component.
Is there a way to just test it with the halcmd? I tried loading the remora component, but struggle beyond. Show pins shows no active session.
Both the debug file and the regular logfile are basically empty with no specifics concerning the error.
Thanks!
Last edit: 17 Feb 2026 19:48 by AlessandroEmm.
Please Log in or Create an account to join the conversation.
- AlessandroEmm
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 0
17 Feb 2026 20:13 #343113
by AlessandroEmm
Replied by AlessandroEmm on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
So in the meanwhile, without working UI I tried to test comms with halcmd.
Does
4 bit IN TRUE remora.SPI-enable
4 bit IN TRUE remora.SPI-reset
4 bit OUT TRUE remora.SPI-status
actually mean there was some comms? UART doesnt show anything though.
Does
4 bit IN TRUE remora.SPI-enable
4 bit IN TRUE remora.SPI-reset
4 bit OUT TRUE remora.SPI-status
actually mean there was some comms? UART doesnt show anything though.
Please Log in or Create an account to join the conversation.
- amanker
- Offline
- Premium Member
-
Less
More
- Posts: 117
- Thank you received: 2
18 Feb 2026 04:45 #343132
by amanker
Replied by amanker on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
It seems remora is working ok. There must be issue with GUI. Try using axis gui first. UART just shows startup msgs on remora.
Please Log in or Create an account to join the conversation.
- AlessandroEmm
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 0
18 Feb 2026 20:21 - 19 Feb 2026 06:11 #343162
by AlessandroEmm
Replied by AlessandroEmm on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
So Axis starts, and remora.SPI-status is true too. Resetting the MCU actually throws SPI Errors. I think that looks fine. Unfortunately I can't toggle the emergency switch.
I looked at the PRU-reset pin and its on FALSE. is that how it should be? Am I missing something obvious?
I'm just using the standard HAL configuration from the doc:
Thanks, Alessandro
I looked at the PRU-reset pin and its on FALSE. is that how it should be? Am I missing something obvious?
I'm just using the standard HAL configuration from the doc:
net user-enable-out <= iocontrol.0.user-enable-out => remora.SPI-enable
net user-request-enable <= iocontrol.0.user-request-enable => remora.SPI-reset
net remora-status <= remora.SPI-status => iocontrol.0.emc-enable-inThanks, Alessandro
Last edit: 19 Feb 2026 06:11 by AlessandroEmm.
Please Log in or Create an account to join the conversation.
- AlessandroEmm
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 0
19 Feb 2026 08:20 - 19 Feb 2026 11:59 #343188
by AlessandroEmm
Replied by AlessandroEmm on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
I made some progress, SPI wasnt likely working properly before, as I had chosen PB9 for the pru-reset. Turns out PB9's timer is already occupied so no PWM. I change to PB15 which is usable for PWM and now i'm getting a
When trying to unlock the e-Stop.
Bad SPI payload = c8c2e8c2
Bad SPI payload = c8c2e8c2When trying to unlock the e-Stop.
Last edit: 19 Feb 2026 11:59 by AlessandroEmm.
Please Log in or Create an account to join the conversation.
- AlessandroEmm
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 0
19 Feb 2026 13:36 #343193
by AlessandroEmm
Replied by AlessandroEmm on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
I just realised I still had SPI_clk_div set to 16, after setting it back to 32 or 64, the errors are gone, but i'm at square one again, no error on e-stop deactivate.
Please Log in or Create an account to join the conversation.
- cakeslob
- Offline
- Platinum Member
-
Less
More
- Posts: 925
- Thank you received: 277
20 Feb 2026 01:07 #343208
by cakeslob
Replied by cakeslob on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
the fact that you get a bad spi payload is good, keep it at 32 probably
This may sound forward of me, but how long is your cable?
This may sound forward of me, but how long is your cable?
Please Log in or Create an account to join the conversation.
- AlessandroEmm
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 0
20 Feb 2026 16:57 - 21 Feb 2026 10:31 #343228
by AlessandroEmm
Replied by AlessandroEmm on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Last edit: 21 Feb 2026 10:31 by AlessandroEmm.
Please Log in or Create an account to join the conversation.
- Hardware & Machines
- Computers and Hardware
- Remora - Rpi Software Stepping Using External Microcontroller via SPI
Time to create page: 0.144 seconds