I want to start the only received interrupt for the SPI in STM32L053, but when i enable it it will call the ISR before transmitting aything.
can anyone have suggestion for that??
is your SPI set to slave ?
did you try to clear the receive buffer ?
did you check the reference manual ? find how to clear the interrupt flag.
each n every things i have checked, but when i call the
dirctly it is call the
it's like calling an interrupt without transmit a data.
in SPI terms, when you transmit, you receive as well.
you must clear the receive buffer
and there may be some error flags that need clearing too.
what page are you reading in the reference manual ?
Its your job to check the flags that need clearing.
sorry to inform you that as per our last conversation i already told you that...each thnig i've done.
N about the flags yes i'vr did it!!!
how did you clear the receive buffer ?
what page in the reference manual are you on ?
i refer the reference manual, registers of the SPI.
Retrieving data ...