stm32f30x-hal icon indicating copy to clipboard operation
stm32f30x-hal copied to clipboard

SPI: Clear error flags when detected

Open austinglaser opened this issue 6 years ago • 3 comments

Closes #13

This implements the first option (automatic clearing errors on detection) discussed in the above issue. It hasn't yet been tested on actual hardware -- I likely won't be able to do so until this weekend.

The biggest stumbling block I see for testing is actually causing the errors. An overrun should be easy to force, and probably a mode fault. I'm not sure how to force a crc error though...

austinglaser avatar Feb 27 '18 20:02 austinglaser

Made an update to how the MODF error is cleared to ensure that the exact sequence of register accesses called out in the reference manual is followed

austinglaser avatar Feb 28 '18 02:02 austinglaser

Any updates on this?

little-arhat avatar Apr 27 '18 21:04 little-arhat

Haven't had a chance to test the changes yet

austinglaser avatar Apr 27 '18 21:04 austinglaser