Skip to main content
Associate II
March 18, 2025
Question

STM32L432KBU6TR SPI 16 bit mode issue

  • March 18, 2025
  • 3 replies
  • 574 views

STM32L432KBU6 L432 chip, spi3, 16bit mode, 20M baud rate, spi output sclk is 16 cycles when it is powered on again after working for a period of time. Sometimes 15 cycles, sometimes 17 cycles, sometimes 16 cycles are output again. This will help confirm the reason, See the following documents for specific applications, thanks a lot. 

 

This topic has been closed for replies.

3 replies

PingleiAuthor
Associate II
March 18, 2025

Pinglei_0-1742281869895.png

 

mƎALLEm
ST Technical Moderator
March 18, 2025

Hello @Pinglei ,

First, "STM32L432KBU6TR" as title doesn't mean anything. You need to put a title that gives a raw idea of the subject while keeping it as short as possible. I've edited it to be "STM32L432KBU6TR SPI 16 bit mode issue".

Second, the issue is not clear.

Please review the tips on posting.

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
TDK
March 18, 2025

Since DR is a 16-bit register, you should be using 16-bit access which is what LL_SPI_TransmitData16 does.

Regardless, I'm surprised that you get this behavior and can't see an obvious cause in the reference manual or errata sheet, which is what I'd expect if DR only supports 16-bit access. On the F4, DR certainly supports 32-bit access. Could be missing something.

"If you feel a post has answered your question, please click ""Accept as Solution""."