cancel
Showing results for 
Search instead for 
Did you mean: 

The DMA impact of SPI on ETH in STM32H7

ketlen
Associate

Hi All.

In STM32H743, if ICache is enabled and DCache is turned off, SPI frequently uses DMA to transfer data(SPI transmission interval is within 10ms), and ETH may experience transmission lag; If ICache and DCache are turned off, there is no problem with ETH transmission. Through testing, it was found that the Ethernet took more than 1 second to complete the transmission process, with Ethernet typically completing the transmission in around 10 microseconds. From the manual, it was found that ETH's DMA is a dedicated DMA and should not be affected by DMA1 and DMA2. Why?

The time consumption of using pin testing is to set the pin to low level after sending, and to high level after sending is completed.

ketlen_0-1707031085989.pngketlen_1-1707031103584.png

The abnormal waveform captured by the oscilloscope is as follows:

ketlen_2-1707031243860.png

The low level of the pin indicates the time taken from sending to completion of sending.

Thanks so much for helping out

0 REPLIES 0