STM32F4 SPI Busy Issue
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-03-11 8:20 AM
Posted on March 11, 2016 at 17:20
I'm using SPI in bidirectional 8 bit master mode to send 4 bytes to/from my control panel using HAL_SPI_TransmitReceive_IT(). When using SPI_BAUDRATEPRESCALER_256 it works fine, but smaller values cause the module to stop responding and reports BUSY_TX_RX all the time. I can't seem to get the module to restart after this occurs. No error status is present in the ErrorCode register.
Why does this happen and how can I prevent it? Occassionally even with the 256 prescaler if there is high CPU overhead (tons of interrupts due to a problem with USB host code) the module can get stuck like this. Everything else on my system appears to continue working normally.
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
