Skip to main content
sfrwmaker
Associate II
Nov 16, 2022 2:33 PM UTC
Question

HAL_SPI_Transmit_DMA() actually transmitts nothing in Normal and circular modes.

Hello!

Updated to the cubeMX 6.6.1, migrated project to the new MX version. Board is stm32f401CCU6. SPI1 was used as a TFT display port. The TFT graphic library (https://github.com/sfrwmaker/TFT_graphic_library) stopped working in DMA mode. Investigated the issue: created very simple project: filled the 24-bytes buffer with a random color codes and started the HAL_SPI_Transmit_DMA(). No data transfer on the logical analyser (CS, MOSI & SCK pins were changed to zero). Tried to delete all the source and header files generated by cubeMX, regenerated the project.

This topic has been closed for replies.

3 replies

Aymen ABBES
ST Employee
Nov 18, 2022 1:55 PM UTC

Hello @sfrwmaker​,

First of all let me thank you for posting.

Could you please provide the *.ioc or the project you are working on so I be able to investigate the issue.

I assume this question may help you to solve your problem.

sfrwmaker
sfrwmakerAuthor
Associate II
Nov 25, 2022 7:18 PM UTC

Hello!

Sorry for delayed answer, i was out of my computer. Today i have tried to reproduce the issue in my virtual machine. The cubeMX version is 6.6.1, cubeIDE 1.8.0, FW is F4_1.27.1, The project can be found on dropbox, https://www.dropbox.com/s/ks43jmjb9tc56e1/F401_TFT_SPI.zip?dl=0

Unfortunately, this time everything is working properly. I am going to update the cubeMX on my main computer to reproduce the issue. Will update the topic soon.

sfrwmaker
sfrwmakerAuthor
Associate II
Nov 26, 2022 4:14 PM UTC

Sorry one more time. Everything is working smoothy. I have updated the cubeMX on my main computer. Yet, i have forcibly uploaded the F4 firmware archive. No issue detected. Sorry for wrong request.