PSOC 6 SPI DMA

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
mrsinger
Level 1
Level 1
First solution authored 5 sign-ins First reply posted

I'm doing an DMA  read/write to SPI.  The TX completes fine, but the RX gives me an bus error CY_DMA_INTR_CAUSE_SRC_BUS_ERROR.   But the source is the SPI RX Fifo and the source is set to not increment.

What would cause this error?

 

 

0 Likes
1 Solution
Hari
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi @mrsinger 

 

Please make sure that the FIFO pointer that is configured as the source address is correct. You can take a look at the SPI DMA code example present in GitHub - https://github.com/Infineon/mtb-example-psoc6-spi-master-dma

For the Rx source, the configuration must be no increment. Also, please ensure that the data transfer width is configured correctly. 

 

Best regards, 
Hari

View solution in original post

0 Likes
1 Reply
Hari
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi @mrsinger 

 

Please make sure that the FIFO pointer that is configured as the source address is correct. You can take a look at the SPI DMA code example present in GitHub - https://github.com/Infineon/mtb-example-psoc6-spi-master-dma

For the Rx source, the configuration must be no increment. Also, please ensure that the data transfer width is configured correctly. 

 

Best regards, 
Hari

0 Likes