2020-08-11 07:16 PM
the target type is stm32f072, firstly the master transmit data success, slave receive data ok;
should i need to disable spi ,enable BIDIOE in slave. but the slave can't transmit data, how to solve it?
2020-08-11 07:34 PM
what is your SPI slave? bidirectional mode is not supported by all SPI devices. It is a request / response protocol. Normal SPI use simultaneous data transfer on miso and mosi lines.
2020-08-11 07:38 PM
The master always drives the clock. Slave can only wait for the clock and send out data.
The reference manual has a section on how to do this. You're not trying to have the chip be a master, then turn into a slave, are you? That's not how it should work.
2020-08-11 08:31 PM
my spi slave is stm32f031, the connection is master MOSI to slave MISO
2020-08-12 02:37 AM
be aware that slave can not initiate a transfer. bus management and clock generation can be done only from master side. If you want to send data from slave to master, the master should send junk data to initiate transfer
2020-10-20 06:10 PM
thank you for your reply, i 'ill try to send junk data in the master side