Page 1 of 1
Maybe, I found a small bug in the spi_lld.c
Posted: Fri Apr 18, 2014 7:14 pm
by Alex
In my opinion, procedure "spi_lld_start" must contain calling rccResetSPIx, to clear SPI FIFO of "garbage". At least in my case this action helped me. CPU - STM32F051R6C8
P.S. I use NIL, not ChibiOs, but I think they are similar
Re: Maybe, I found a small bug in the spi_lld.c
Posted: Fri Apr 18, 2014 7:22 pm
by Alex
Additionaly information: SPI driver was used in SLAVE mode = "selfmade"
Re: Maybe, I found a small bug in the spi_lld.c
Posted: Fri Apr 18, 2014 8:36 pm
by Giovanni
Alex, I think this problem is related to the slave mode, in master mode there is no way that the FIFO still contains data (it would be a bug should this happen).
Giovanni
Re: Maybe, I found a small bug in the spi_lld.c
Posted: Sat Jan 09, 2016 3:34 am
by samtatasurya
Alex wrote:Additionaly information: SPI driver was used in SLAVE mode = "selfmade"
Hi Alex,
I'm currently working on SPI which requires me to set up one STM32F0 as SPI Slave mode. Do you mind sharing your working code for the Slave?
Your help is greatly appreciated. Thanks!
- Sam