Skip to main content
Associate II
May 24, 2024
Question

Boards serie U5 Wrong baudrate displayed on STM32cubeIDE for SPI.

  • May 24, 2024
  • 1 reply
  • 4211 views

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.

 

 

 

 

1 reply

Technical Moderator
May 28, 2024

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.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
josselinAuthor
Associate II
May 29, 2024

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

Uwe Bonnes
Chief
May 29, 2024

The clock/bit  rate is given.