Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
1 year 6 months ago #327309 by cakeslob
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

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

More
1 year 6 months ago #327315 by scotta
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.

More
1 year 6 months ago #327318 by cakeslob
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.

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

More
1 year 5 months ago #328095 by amanker
Eagerly waiting for tmc5160 support on stm32f4 board

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

More
1 year 5 months ago #328120 by cakeslob
hey scott, ive been playing with it for the last 2 weeks. I dont have much to show, but i think the environment switching is working kinda. im testing with a nucleoh743, from the debug it seems to be working but serial is messed, it seems i dont know how to do a define or something,

github.com/cakeslob/Remora-STM32H7xx-PIO...43/Src/main.cpp#L116
The following user(s) said Thank You: tommylight

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

More
1 year 5 months ago - 1 year 5 months ago #328609 by cakeslob
hey Scott, my homies and i have the environment switching working, but we did a messy job to support a different board we were testing
github.com/cakeslob/Remora-STM32H7xx-PIO/tree/h723
Last edit: 1 year 5 months ago by cakeslob.

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

Time to create page: 0.273 seconds
Powered by Kunena Forum