- Hardware & Machines
- Computers and Hardware
- Remora - Rpi Software Stepping Using External Microcontroller via SPI
Remora - Rpi Software Stepping Using External Microcontroller via SPI
- cakeslob
- Offline
- Platinum Member
-
Less
More
- Posts: 867
- Thank you received: 254
27 Apr 2025 19:55 #327181
by cakeslob
Replied by cakeslob on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Thanks for all the hard work Scott. The PIO install went really smooth, all I needed to do was update my ststm32 lib and it compiled no problem. Next steps for me is doing a H723 port, and figure out how this new repo works. Regarding hardware abstraction, (as always) I have notes on that based on the PIO stuff I did with Drew on the W5500 ethernet branch.
Hmmm call it something like Remora Motion Controller or something? ReMot? ReMOC? RemoraCNC?
Hmmm call it something like Remora Motion Controller or something? ReMot? ReMOC? RemoraCNC?
Please Log in or Create an account to join the conversation.
- scotta
-
- Offline
- Platinum Member
-
Less
More
- Posts: 911
- Thank you received: 473
28 Apr 2025 05:21 #327203
by scotta
Replied by scotta on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Thanks Cakeslob, which board is the H723 being used? This will be a good test to see if we can get PlatformIO working happy with multiple targets. The code will need #ifdef's and compiler defines for each board to select the code changes needed for each H7 variant.
Please Log in or Create an account to join the conversation.
- cakeslob
- Offline
- Platinum Member
-
Less
More
- Posts: 867
- Thank you received: 254
29 Apr 2025 18:49 #327309
by cakeslob
Replied by cakeslob on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Ill be honest here Scott, they all do, and they dont use the H437 anymore. I didnt wanna discourage you, but it should be straight forward after the h723.
github.com/cakeslob/Remora-STM32H7xx-PIO/tree/h723
here is my WIP abstraction for multi targets from last night. Still havent copied over the SPI channel stuff just working on the clocks right now. Need to figure out abstraction for UART and CS pin also
Check the pile of shit I sent, I think theres another H7 something there you can test. Theres basically only 4 main profiles and everything else is just pin changes
H743 - 25mhz clock
H743 - 8mhz clock
H723 - 25mhz
H73 - 8mhz clock
github.com/cakeslob/Remora-STM32H7xx-PIO/tree/h723
here is my WIP abstraction for multi targets from last night. Still havent copied over the SPI channel stuff just working on the clocks right now. Need to figure out abstraction for UART and CS pin also
Check the pile of shit I sent, I think theres another H7 something there you can test. Theres basically only 4 main profiles and everything else is just pin changes
H743 - 25mhz clock
H743 - 8mhz clock
H723 - 25mhz
H73 - 8mhz clock
Please Log in or Create an account to join the conversation.
- scotta
-
- Offline
- Platinum Member
-
Less
More
- Posts: 911
- Thank you received: 473
29 Apr 2025 21:12 #327315
by scotta
Replied by scotta on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
Nice work! Using PIO board variants might be the way to go. That's how Marlin has managed it and it's so much like how Mbed uses custom targets. They use some custom python scripts to make the magic work.
Please Log in or Create an account to join the conversation.
- cakeslob
- Offline
- Platinum Member
-
Less
More
- Posts: 867
- Thank you received: 254
29 Apr 2025 21:58 #327318
by cakeslob
Replied by cakeslob on topic Remora - Rpi Software Stepping Using External Microcontroller via SPI
i dont know much about marlin or how to use the pythonscripts, but with the W5500 branch from Drew, we have been copying grblhal, which has proven to be a good model. You can select build environment in the PIO extension and it will syntax highlight based on the build environment, or just build all of them. For the F4 branch, we didnt even need to make PIO board variants because most generic ones were included. Since there arent even that many options(clock, spi channel, etc), Drew threw them all out there for me at the beginning and I just had to add some defs and configure some stuff. Have a look at our other repo, I have been mashing this + grblhal into your new thing, and to try and work.
github.com/cakeslob/Remora-STM32F4xx-W55.../f429/platformio.ini
So far on the W5500 one, he had a bunch of SPI DMA options already included ( SPI1, SPI1-ALT, SPI2, etc), the common clock configs and I just mashed some defs and boards. I dont have it very clean but I was able to support all the other remora boards pretty easy.
github.com/cakeslob/Remora-STM32F4xx-W55.../f429/platformio.ini
So far on the W5500 one, he had a bunch of SPI DMA options already included ( SPI1, SPI1-ALT, SPI2, etc), the common clock configs and I just mashed some defs and boards. I dont have it very clean but I was able to support all the other remora boards pretty easy.
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.087 seconds