Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
8 months 3 weeks ago #342661 by amanker
Thanks a lot.
I am attaching my ldscript which I made based on existing ldscripts included in repository. And attaching my platformio.ini.

File Attachment:

File Name: STM32F446X...L.ld.txt
File Size:4.52 KB

File Attachment:

File Name: platformio.ini
File Size:3.2 KB

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

More
8 months 3 weeks ago #342694 by 3404gerber
Hi, 
So you are using the spi1 pins for the w5500? I think this will be a problem if your config uses tmc5160, as the module uses software spi and configure the pins as standard gpio. 

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

More
8 months 3 weeks ago - 8 months 3 weeks ago #342696 by amanker
Sorry, I was on mobile, not on PC so I wrongly uploaded platformio.ini. 
I am using SPI2 pins as per your previous suggestions and it was working ok in remora-spi with TMC.
So I am using same for ETH version.
I am uploading actual platformio.ini
 

File Attachment:

File Name: platformio...2-09.ini
File Size:3.82 KB


Please look at ldscript, which is I have made with reference to already available ldscripts.
Last edit: 8 months 3 weeks ago by amanker.

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

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

I had a quick look to the platformio.ini and it seems consistent. For the ldscript I'm afraid I'm not the right person to look at it, as I have absolutely no experience with this. Did you already try to reduce SPI speed, as you had issues with SPI communication? I think this line set it to 45MHz in EthComms.cpp:

spiHandle.Init.BaudRatePrescaler        = SPI_BAUDRATEPRESCALER_2; 

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

More
8 months 3 weeks ago - 8 months 3 weeks ago #342725 by amanker
I just made logical changes in ldscript, by looking at 3 scripts in repository. I think you are good in programming so you can make out something by looking at those scripts.
FYI... I am using ben-jacobson repository for remora_stm32f4xx_pio. He has working on nucleo_f446 board.
No spi issue was resolved. Since I was using RPI4, I have to include spi_clk_div=32 as argument to make spi working.
Other issue with tmc was resolved by changing spi to spi2 and assigning new interrupt.
Last edit: 8 months 3 weeks ago by amanker.

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

More
8 months 3 weeks ago #342727 by 3404gerber
I understand that you resolved the SPI issue when the RPi was the SPI master and was talking to the Octopus, but for the Ethernet config the Octopus board is the SPI master talking to the W5500 chip. So I would first try to reduce the SPI speed by changing the line I mentioned before.

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

Time to create page: 0.559 seconds
Powered by Kunena Forum