Skip to main content
Visitor II
August 17, 2023
Question

spi function in stm32l010c6t6 not work

  • August 17, 2023
  • 1 reply
  • 1193 views

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

 

 

 

    This topic has been closed for replies.

    1 reply

    ST Employee
    October 16, 2023

    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