cancel
Showing results for 
Search instead for 
Did you mean: 

In stm32f407 when i tried to implement SPI communication (data send only) the OVR and RXNE bit is enabled what is the problem? and how to solve that

ABala.6.19
Associate II
 
5 REPLIES 5

If "data send only", simply ignore the OVR and RXNE bits.

JW

I did not code anything for the OVR and RXNE . Also my slave is not received any data from the master ( I used STM as a master and arduino as a salve)

Ozone
Lead

You do not "enable" this bits.

They are just status flags showing you the state of the peripheral. With SPI, a send-only will defiitely have both flags set eventually, because the associated states occur.

ABala.6.19
Associate II

Then what should be the possible error for that because I am a begginear in ST so please help me also I wrote the complete code my self I don not use HAL library or STM cube mx if you required the code for reference i will send you

Separate sentences would be easier to digest and comprehend.

> Then what should be the possible error for that ...

If the communications works, you need nothing to do.

These flags are just set in the process, and do signal states you can safely ignore. These are not "errors".

> ... I wrote the complete code my self I don not use HAL library or STM cube mx ...

So, if you have already consulted the reference manual and the datasheet, read the SPI section again, just to understand it better.