2020-07-21 11:02 PM
I want to send
uint32_t spiData1 = 0x48240000;
using HAL_SPI_Transmit func but I'm unable to send this data.
How can I do the following thing.
2020-07-22 05:51 AM
Include your STM32 chip number in your post.
In general, you send it as 4 separate bytes using any of the HAL_SPI_Transmit functions.
HAL_SPI_Transmit(&hspi1, (uint8_t *) &spiData1, 4, 0xFFFF);
2020-07-22 09:13 AM
newer spi ips have 32bit fifo so the 16 bit data register will accept 2 x 16 bit writes as fast as you can. go under the hal hood to see what it does.