Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
17 Jun 2025 08:51 #330381 by Dylan144GT
Hello,

Forgive me, but I am a bit new here. I have been trying to setup an RPi 4 with an Octopus 1.1 (STM32F446) and I am hitting a bit of a brick wall with trying to get a hello world going with a setup of just 3 stepper motors on a bench.

Can you please point me to a good tutorial for help please, both for understanding the basics of LinuxCNC and then how to get Remora up and running for this setup? I have installed the Flexi-Pi RPi image, that is up and running. I have flashed the Remora firmware to the STM32 using the ST CubeProgrammer utility. I have loaded the example configto LinuxCNC and I can "open" it. But then a whole lot is blanked out and I can't seem to get any response from it. I have a feeling that I missing the step where I load components and I am not sure how to do this.

Any input would be greatly appreciated.

Thanks,

Dylan

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

More
17 Jun 2025 20:25 #330414 by scotta
Hi Dylan,

Have a look through the docs, they should point you in the right direction.

remora-docs.readthedocs.io/en/latest/index.html

You will need to flash the original firmware back onto the board as the Remora firmware will be loaded off the SD card with the original bootloader.

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

More
21 Jun 2025 16:45 #330646 by cakeslob
hmm. gonna need to add a something about bootloader to the board specific docs pages.

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

More
30 Jun 2025 10:10 #331029 by Ac1dburn
Hey, sorry if this isn't the spot to ask for help with this issue. 

So I've decided to try to build a new controller for my CNC converted lathe. Did some searching around and found remora. I already had an SKR 1.4 Turbo sitting in a closet from an old Voron machine. As far as I remember, I was running Klipper on it, but didn't mess with the bootloader or anything. 
So far I have:
grabbed the firmware.bin from the "github.com/scottalford75/Remora/tree/mai.../FirmwareBin/LPC1769"
placed it on a freshly flashed FAT32 4GB SD card.
placed my extremely minimal config.txt on the SD  card as well
inserted into my SKR 1.4 Turbo and powered it for 10-20 seconds, cut power.
removed the SD card and inserted it into my card read on my windows machine and confirmed the firmware.bin did in fact change to firmware.cur
ejected the SD card, re-inserted it into the SKR 1.4 Turbo.
Powered on my raspberry pi 4 running the: LinuxCNC 2.9.4 Raspberry Pi 4 OS based on Debian Bookworm Raspberry Pi 4 Uspace compatible with Mesa Ethernet and SPI interface boards. Img. from the linuxcnc downloads page.
SPI enabled in the /boot/firmware/config.txt on the raspberry pi 4
SPI and Serial Debugging wired and configured in the SKR 1.4 Turbo config.txt
Hal file for my config is setup minimally to only include two axis's and the rest of the standard Remora hal related stuff. (I may have missed something but I followed the remora documentation as best I could)
Everything "seemed" okay at first, with the SKR not powered, I could launch my probe basic lathe config, but couldn't take it out of e-stop (expected as the hal file has a remora e-stop function that prevents this without an active SPI link)
Boot the SKR up, and launch my probe basic lathe config and I am able to take the machine out of e-stop. 
However, this is where I hit a dead end. I went to add my limit switches, I configured my hal file to reflect what was in my SKR's config.txt for those data bits and I was hit with "remora.input.00" does not exist and the obviously probe basic lathe doesn't launch. 
I double checked my config.txt to make sure I didn't having any duplicated data bits etc. etc. etc. 
That's when I "tried" to watch the serial debug in terminal by adding the serial debug section into my SKR's config.txt. 
booted the pi 4, ran: screen /dev/serial0 115200 in terminal, started watching the window, powered the SKR up and it showed some things, however, not what I was expecting. It sets up some pins for the limits, but they aren't what I had in my config.txt... not based on the data bits I had selected. I also tried a variation of different data bits etc. and still couldn't get it to load the correct ones. I ended up just updating the hal file to reflect what it DID assign those pins to and probe basic lathe did launch at that point. So I triggered the input pins for both limits on the SKR while monitoring halshow and it's not showing a trigger. I also don't even think my serial debug screen is displaying correctly. I've tried re-flashing the SD card, double checked I was using the correct firmware.bin for my board. triple check my SPI wiring, replaced with shorter wiring, etc. I'm really stumped. I was going to try flashing the default SKR 1.4 turbo firmware and try re-flashing after that, but I was having trouble finding a pre-built firmware.bin to flash and I'm terrible at building from source. Any help with getting this running correctly would be really appreciated. I've spent the last 4 days or so struggling to figure it out on my own. I've attached a copy of my current hal file (it's rough/ not complete yet but it launches)
a copy of my config.txt that is in the root directory of the SKR SD card, and a screenshot of what my serial debug monitoring is showing in screen. 
(note: I left the pins for the x and z limit in my hal setup to whatever it created for them based on the serial debug screen because that's what allowed me to launch)

thanks again in advance.


 
Attachments:

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

More
30 Jun 2025 20:28 #331047 by scotta
The LPC1768 is legacy and I suspect that you have installed the current version of the remora component for LinuxCNC. The data packet was updated since the LPC1768 development stopped.

Try this component
github.com/scottalford75/Remora/tree/mai...NC/Components/Remora

You're very close by the looks.

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

More
30 Jun 2025 20:35 #331048 by Ac1dburn
Thank you for the reply scotta,
I'm assuming you meant to say LPC1769
As I'm not using an LPC1768 on the turbo. I'll take a look at what you sent and report back

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

More
30 Jun 2025 22:05 #331051 by Ac1dburn
removed all the remora components/ modules from the Pi. halcompile only the remora_lpc.c module from the directory you showed after I re-cloned it onto the Pi (This is what I had already had installed, I basically re-installed/ compiled it)
tried to boot and watch the serial debug and it did the same thing as before.

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

More
01 Jul 2025 01:04 #331053 by cakeslob
i think we forgot to update the component for the 00.input,

change your inputs to 0.input or 1.input. also the inputs dont go up to 27
The following user(s) said Thank You: Ac1dburn

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

More
01 Jul 2025 02:09 #331055 by Ac1dburn
That was it. removed the 0's before the single digit numbers in the hal and it launched as expected. Awesome. Thank you. also, limit switches are triggering as expected now in halshow.

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

Time to create page: 0.200 seconds
Powered by Kunena Forum