2011-04-08 05:15 AM
SPI not working on STM3210E-EvalBorad
2011-05-17 05:31 AM
Show us the the read process code. I think that maybe you (after sending cmd by spi) dont do dummy read of DR spi buffer,
for ex: check flag in SPI->SR is data sent (0x01 or 0x02 I dont remember) send: SPI->DR = cmd; check flag in SPI->SR is data received (0x01 or 0x02 the same) receive dummy: dummy = SPI->DR; then you do the same, check sr for sent data, send dummy data to force clk on spi pin, check for data received flag in SR and if so, read data from DR. and so on. Maybe thats why uC stops sending even the clock. Check it out ;]2011-05-17 05:31 AM
I could get the read/write to work by reducing the SPI speed to 281KHz. Somehow SPI is not working at speeds in MHz