cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to receive data on SPI, when configuring SPI1 as Master and SPI3 as Slave

RJain.1
Associate II

Hi,

I want to interface two SPI peripherals on the same STM32H743 nucleo, am configuring SPI1 as Master and other as Slave and connecting them with each other. Am transmitting in polling mode via SPI1 and receiving in interrupt mode on SPI3. I am receiving only zero in the rx callback. Why it is happening, please help.

Thanks,

1 REPLY 1
S.Ma
Principal

Basic general checklist

Check max spi bitrate, sometime slave is half of master

Check gpio is toggling using scope

Connect slave mosi to gnd and read 0x00, connect to vdd and read 0xFF

Check in debug Mode peripheral registers are programmed properly

I assume spi1 and spi3 use different pins and use 4 wires. If slave nss is high, slave pins are high impedence

When in debug mode, hidd spi register because the debugger will read tyem to display their value and steal the data from sw reading properly when using breakpoints on slave

Good luck!