Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
9 months 2 weeks ago #341544 by amanker
Hi @cakeslob nice to see you again.
I understand that. He was explaining that in case of h7xx they are using software spi for tmc and hardware spi for comms. But in case f4xx they are using same for both.
But after comparing both repos, I found that both are using software for spi for tmc and hardware for comms. So that is not the case.

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

More
9 months 2 weeks ago #341546 by 3404gerber
Hi,

Using soft vs hardware SPI was not the point here. You are free to use soft or hardware SPI for the TMC; both repo use software SPI, but I ported the tmc module to a rp2040 using hardware SPI.

The important point was, as cakeslob mentioned, that those two SPI function cannot use the same pins, as once it is a slave (comms) and once a master (tmc). So, if you want to use tmc module on the Octopus pro, you will have to connect the Rpi on a different SPI port, using different pins. Again, I don't have a board but according to the manual, SPI channel 3 is exposed on J74 connector and could be used for comms.  

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

More
9 months 1 week ago #341564 by amanker
Sorry, I was confused in spi. I assumed that both board use same single spi without seeing it's board pin maps. But after seeing SKR3 pin map I found that it's using separate spi for config and comms. But in Octopus it's same for config and comms. Thanks for pointing out.

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

More
9 months 1 week ago #341622 by amanker
Thanks for your tips.
@3040gerber and @cakeslob

Finally I got TMC5160 working on Octopus pro board f446 version.
I have changed the spi to spi2 with new interrupt and uart to uart3. I choosen spi2 because it's on wifi connector on board which is at the edge of board, so there will be much shorter length spi cable required and it has uart3 at same place.
Thanks a lot

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

More
8 months 3 weeks ago #342594 by amanker
I was testing new remora-eth from ben-jacobson repository. With the suggestions from you was able to make it work on SPI3, with TMC5160 drivers on remora-spi.

But now I am testing remora-eth from same repo. Can you help me in this?. I have edited ldscript for octopus pro with ethernet. But I can't ping w5500.

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

More
8 months 3 weeks ago #342637 by 3404gerber
Hi,

I'm happy to help if I can. I'm ot familiar with the STM32 controllers and I don't really understand the ldscript files, but from what I understand you'll need a ldscript and some adjustment in the platformio.ini file. Can you share your platformio.ini file?

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

Time to create page: 0.142 seconds
Powered by Kunena Forum