Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32F405/407 DMA is not working (SPI ili9341) #3128

Open
ToRoCu opened this issue Jan 22, 2024 · 3 comments
Open

STM32F405/407 DMA is not working (SPI ili9341) #3128

ToRoCu opened this issue Jan 22, 2024 · 3 comments

Comments

@ToRoCu
Copy link

ToRoCu commented Jan 22, 2024

Hello Bodmer,

I have now tested a few things, without DMA all is working fine but slow.
Tests with the DMA Example --> boing_ball were not successful.
The grid is showing but the ball not.
When i commend out the "initDMA" and rename "pushPixelsDMA" to "pushPixels" so it will show a ball.

I think there are more issues in the board package HAL, i have tryed to replace the HAL with LL Driver Registers but that is more difficult than I thought.

Tested with ili9341 on SPI 1&2
Tested board package 2.6.0 & 2.7.1

Continued to #3072

@Bodmer
Copy link
Owner

Bodmer commented Jan 24, 2024

DMA for the STM32F processors used to work but it appears that a board package update at some point in the past has broken this. Have you tried earlier board packages?

@ToRoCu
Copy link
Author

ToRoCu commented Jan 24, 2024

I have now tested all board packages down to 2.0.0, with the same result that only the grid is displayed in DMA Example --> boing_ball but not the ball.

Is it possible that there is another problem in the lib?

@zenmetsu
Copy link

zenmetsu commented May 31, 2024

possibly related, but I have a nucleo-144 STM32F767ZI and it also fails to display anything when DMA is enabled. I can use #define STM32 just fine and get the optimizations (this doesn't work with my STM32H743ZI2 though). DMA attempts however result in just a black display. The board is still responsive, and serial output shows some questionable claims...

04:34:28.965 -> 1010 fps
04:34:29.059 -> 961 fps
04:34:29.154 -> 1030 fps
04:34:29.247 -> 943 fps
04:34:29.342 -> 1000 fps

I have attempted to downgrade my board support package down to 2.0.0 with the same outcome. It does not appear to be something with the BSP. I am attempting this on SPI1 with an SSD1351 display. I have tried with an ILI9340C (using ILI9341 driver) and ST7789V with the same results; no display when DMA is selected but works if DMA is commented out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment