SPI Slave on STM32G030F6 is not working
Hi, This is my first time here to write a post.
I want to implement a system that connnects a STM32H723(master) and four STM32G030F6P6s(slave) via SPI communication. I connected them and I check the SPI signals from STM32H723(NSS, SCK, MOSI). The Signals are fine.
The problem is that any of STM32G030F6P6 doesn't work. More precisely, I don't know how to setup STM32G030 SPI as a slave mode. I tried to find some example code for STM32G030 SPI slave, but I could not find anything.
Do you have any solution? I check the related GPIO Port modes(Altenate Function to NSS, SCK, MOSI, MISO),
and Check the SPI1->CR1, SPI1->CR2, SPI1->SR (0x00000400, 0x00001700, 0x00000002).
This means SPI was enabled, RX FIFO Threshold 8bit/8bit data. TX FIFO Empty).
When I Wrote to SPI1->DR(this means writing to TX FIFO) SPI1->SR changed to 0x00018000.
This means Frame Error in TI mode(which was disabled) and SPI busy.
I don't use any SPI interrupts.
Do you have any idea or good example codes?
