- This topic has 2 replies, 2 voices, and was last updated 8 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forums › Mastering STM32 book support forum › SPI with DMA
I have SPI (polling mode) working well but am trying to get it working with DMA. I am using software to set the NSS (chip select). Obviously, I set it low and then call HAL_SPI_Transmit_DMA(). My question is where is the best place to set NSS back high? (In polling mode, I just set it high after calling HAL_SPI_Transmit()). Would you set it in the Calback (HAL_SPI_TxCpltCallback()) or somewhere else?
Really finding your book helpful – thanks for writing it and for your time considering my question
Steven
Well, it depends on how your code is organized but the callback is likely the right place to set the NSS high.
Thanks for your help!