What flags do I need to enable for the SPI DMA to work when we have the SDK?

On the IAR, right click on the S2W project and in the C/C++ compiler category, go to the Pre-processor tab and update the below flags.

Remove flags S2W_FORCE_UART_PORT, S2W_UART_ENABLE 

Add these below Flags to enable the  SPI DMA with  Mode 1

S2W_FORCE_SPI_FS_PORT
S2W_FS_SPI_HI_ENABLE
S2W_SPI_HI_FS_CLK_PLL
S2W_DEFAULT_SPI_PHASE=1
S2W_DEFAULT_SPI_POLARITY=0

Powered by Zendesk