Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
5 years 2 months ago #219141 by Bari
Just that you are aware so you don't have to reinvent it all: github.com/rene-dev/stmbl

AC Servo Driver for STM32F4

github.com/rene-dev/stmbl/wiki

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

More
5 years 2 months ago #219157 by gtt38
I was working on a STM32MP157, and patching a real time kernel to run linuxcnc. Now its done but still unstable and very slow,maybe 650mhz is not enough to run linuxcnc.
Now i can fully help to port remora on the STM32, i m dowloading the repo right now...

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

More
5 years 2 months ago - 5 years 2 months ago #219213 by Bari
You'll run out of memory if you try to run the full LCNC on an STM32. Not to mention needing to run it headless.

There was someone that got it running about 10 years ago on an ARMv5 or v6 with a few hundred megs of RAM.

code.google.com/archive/p/miniemc2/downloads
 
Last edit: 5 years 2 months ago by Bari.

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

More
5 years 2 months ago - 5 years 2 months ago #219221 by scotta
A quick update. I've just got a test SPI DMA slave running on the STM32 SKR2 board. LinuxCNC comes out of E-stop!

I think I'm going to like the STM32 version of Remora when the port is complete. The SPI comms are now running x4 faster (25Mhz) than on the LPC1768. The SPI actually pre-loads the buffers so we don't need hit the E-stop button twice to get the comms loop back active.

I'm also proposing to alter the SPI checking logic as we can now use the Slave Select line, via EXTI interrupt, to trigger the DMA transfer and packet checking. This will increase the noise tolerance on the SPI even more.

One step closer...
Last edit: 5 years 2 months ago by scotta.

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

More
5 years 2 months ago #219222 by gtt38

You'll run out of memory if you try to run the full LCNC on an STM32. Not to mention needing to run it headless.

There was someone that got it running about 10 years ago on an ARMv5 or v6 with a few hundred megs of RAM.

code.google.com/archive/p/miniemc2/downloads
 
i have 1go on my board but its definitly not coming from the memory. i suspect the CPU/GPU...

So Printf is working now ! lol I m focus on the bootloader of the SKR2, i m trying to change it for a better one. i found this repo :
github.com/akospasztor/stm32-bootloader
it s originally a L4 bootloader but it s easy to port it to F4.
 

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

More
5 years 2 months ago #219231 by gtt38

A quick update. I've just got a test SPI DMA slave running on the STM32 SKR2 board. LinuxCNC comes out of E-stop!

I think I'm going to like the STM32 version of Remora when the port is complete. The SPI comms are now running x4 faster (25Mhz) than on the LPC1768. The SPI actually pre-loads the buffers so we don't need hit the E-stop button twice to get the comms loop back active.

I'm also proposing to alter the SPI checking logic as we can now use the Slave Select line, via EXTI interrupt, to trigger the DMA transfer and packet checking. This will increase the noise tolerance on the SPI even more.

One step closer...
 
Did you update the repo ? 25Mhz is the best news of the day !

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

Time to create page: 0.324 seconds
Powered by Kunena Forum