cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_SPI_Transmit takes too long

e d
Associate II
Posted on May 22, 2017 at 19:51

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 theHAL_SPI_Transmit takes up to 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)?

Thanks,

ED

PA0_SET;

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

PA0_CLEAR;

0690X000006072dQAA.png

#hal_spi_transmit

Note: this post was migrated and contained many threaded conversations, some content may be missing.
10 REPLIES 10
SKALE
Associate II

Hi,

I am getting same problem.

I want to reduce time delay between clock.

Can you please describe your solution..

Thank you.