cancel
Showing results for 
Search instead for 
Did you mean: 

spi function in stm32l010c6t6 not work

jdo
Associate II

hi! I am using spi code off reference manual because i need make a function for write register and read the register. but with Hal not work well. i am make other function name:

spi.JPG

but, this code not work, i copy of reference manual:

reference manual.JPG

i don´t know how put code in this new forum, excese me.

actually, i use the next code, but not work well:

spi2.JPG

 

 

 

1 REPLY 1
Petr Sladecek
ST Employee

Hello,

I suggest to handle data overflow error flag. At case of SPI slave you can face even data underflow, too, if the software is not fast enough to handle TXE events.

Best regards,

Petr