2025-02-23 08:19 AM
Hi all
I am using the stm32h743 device when using spi 6 to transmit data the clocks
are 4, 5, 6 randomly instead of 8 bits
when configuring spi2 the processor function perfectly.
on this device I have already used
connection: SPI1, SPI5, ethernet, uart4.uart7,uart8, usart1,usart2,usart3
middleware and software package: freertos, LWIP
Timers: Timer1
System core: DMA, GPIO,NVIC, RCC, SYS
CubeMx Version 6.13
CubeIDE 1.16.0
Repository: 1.12.0
Thank you for you answer
2025-02-23 08:56 AM
Show the contents of the SPI6 registers at the time of the error. Logic analyzer trace showing the issue would be good as well.
2025-02-23 10:15 AM
Make sure to clear and populate the SPI Initialization / Instance structure completely.
By default auto/local variables will contain stack junk unless explicitly cleared, and random things can happen.
{
SPI_HandleTypeDef SpiHandle = {0};
...