CN / EN
CN / EN

Ask a New Question

Design Support

If you need one-on-one support for confidential technical issues with your project, please click on "Contact Us" below.

how to use SPI dma GR551x

eag****com

2024-11-01 21:32

I am using GR5515 for MCU and GH3026 for Health sensor.

Via SPI, two chips communicate each other.

SPI DMA communication doesn't work well.

In spi sync mode, it works well. So I am sure that SPI init is correct.


The commented code is spi dma part. What is my mistake? I think there is some problem in dma.

Thanks

0 Favorites

0 Likes

2 Answers

zhongchengzhi

Goodix Employee
2024-11-02 10:03

Hi,

1. have you inited the DMA ? app_spi_dma_init. you can refer gr55xx_spi_flash.c

2. What's the app_spi_dma_receive_async return value?

0 Comments

0 Likes

0 Favorites

Your comment

eag****com

2024-11-02 14:52

1. Of course, I inited the DMA.

2. I'll check

0 Comments

0 Likes

0 Favorites

Your comment

You can answer questions after logging in, please or register

Your Voice Matters
Contact Sales

Scan to follow

Open WeChat, use "Scan" to follow.