2024-08-06 05:59 AM
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 PE13 | MISO |
67 PE14 | MOSI |
65 PE12 | SCK |
68 PE15 | INT |
64 PE11 | boot 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 PG9 | MISO |
123 PD7 | MOSI |
126 PG11 | SCK |
122 Pd6 | INT |
125 PG10 | boot 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!!
2024-08-07 05:46 AM
Bootloader pins are not relevant if you're in user code.
Showing your code would help.
2024-08-07 06:00 AM
Yes..., this is what i think but i tell it just in case :)
2024-09-05 01:18 AM
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