AnsweredAssumed Answered

HAL_SPI_Transmit takes too long

Question asked by e d on May 22, 2017
Latest reply on Sep 12, 2017 by Bobino

Hi guys,


I am working with the STM32L486 using the CubeMX tool and running into some SPI issue that I can't seem to figure out (I am new to ST chipsets btw). Specifically the HAL_SPI_Transmit routine takes to long compared to the fraction of the time the data is transmitted, as can be seen in the scope image below with yellow being the clock, blue being the data and pink the test point PA0_SET I wiggle (code below). The scope shows that the HAL_SPI_Transmit takes up to 11.4uS, which is ridiculous. Any idea how to speed this up close to the time it takes for the data to transmit (around 1.44uS)?





Spi.Status = HAL_SPI_Transmit(&hspi2,(uint8_t *) &DDS_Cmd, sizeof(DDS_Cmd)>>1, 2);