Solved
STM32L486: SPI-Clock doubled
Use SPI with MCU above. With
spi_transmit(0x55);and
void spi_transmit(uint8_t tx_data)
{
SPI1->DR= tx_data;
while (!(SPI1->SR & SPI_SR_TXE));
}I have 16 SPI clocks. Init was:
hspi1.Init.DataSize = SPI_DATASIZE_8BIT;Data on MOSI showing on the first 8 clocks, MOSI on remaining 8 clocks is zero.
While using HAL (same init):
pdat= 0x55;
HAL_SPI_Transmit(&hspi1, (const uint8_t *)&pdat, 1, 100);I have, as expected, 8 SPI clocks.
Any Suggestions? Thanks!
