cancel
Showing results for 
Search instead for 
Did you mean: 

Boards serie U5 Wrong baudrate displayed on STM32cubeIDE for SPI.

josselin
Associate II

Hello,

 

I'm using an U535 and U585 MCU with SPI communication.

I think i encountered a bug in the ioc in STM32CubeIDE.

When i use a prescaler for the SPI bus, the baudrate displayed is 8 times upper than in the reality.

when looking on a oscilloscope for this config :

josselin_2-1716541888087.png

josselin_3-1716541909975.png

I obtain transmission at 1MHz :

 

josselin_5-1716542265117.png

Best regards.

 

 

 

 

3 REPLIES 3
Imen.D
ST Employee

Hello @josselin ,

Please share your ioc file to test and reproduce the scenario that generated this issue.

I need to make sure that you configure the SPI correctly to communicate between two boards.

This article Getting started with SPI - stm32mcu uses SPI examples to demonstrate how to use it.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Hello,

 

I probably have a misinterpretation.
Could you please tell me if when we have an SPI at  8 Mbits/s in an ioc, that mean the frame will be send at a frequency of 8 MHz or only one bit is send a 8 MHz?

In datasheet, when specification define Max frequency for the SPI clock at 3 MHz, does that mean the frame is send at 3MHz or only one bit (and the frame at 24 Mhz) ?

 

I hope i'm clear in my question

 

Thanks per advance.

 

best regards

The clock/bit  rate is given.