cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any difference between SPI1 and SPI4?

rubenles
Senior

Hi, I am using a stm32h743zi to stablish a connection with a ESP32 via SPI. 

I was using SPI4 at the beginning with one board that i made using these pins:

66 PE13MISO
67 PE14MOSI
65 PE12SCK
68 PE15INT
64 PE11boot cs NSS

Using the pins above my program was working perfectly but...

Now i changed the circuit in a new board and i use other stm32h7 pins connected with the same esp32 pins. So now i am using SPI1 with these pins:

124 PG9MISO
123 PD7MOSI
126 PG11SCK
122 Pd6INT
125 PG10boot cs NSS

And now my program is working bad, sometimes with no connection and other times with connection but sending cutted messages...

 

I set up the SPI and DMA with the same configuration. The only difference is the number of the DMA stream...

 

Anyone know what is going on here? 

 

Thank you!!

12 REPLIES 12

Bootloader pins are not relevant if you're in user code.

Showing your code would help.

If you feel a post has answered your question, please click "Accept as Solution".

Yes..., this is what i think but i tell it just in case :)

I think the problem starts in the dummy data i send, i created a new thread in the forum:

https://community.st.com/t5/stm32cubeide-mcus/dummy-bits-with-spi-and-dma/m-p/716627#M30429