Skip to main content
Steve Melnikoff
Senior
July 15, 2025
Solved

SPI clock bypass option missing

  • July 15, 2025
  • 1 reply
  • 338 views

In the SPI options for STM32H7S3, the "Prescaler (for Baud Rate)" drop-down box has various values from 2 to 256, but the option to bypass the prescaler is missing.

To be clear, I'm referring to the BPASS bit in register SPI_CFG1:

SteveMelnikoff_0-1752585327678.png

To get around this, I add a few lines to the generated code:

 hspi1.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_BYPASS;
 if (HAL_SPI_Init(&hspi1) != HAL_OK)
 {
 Error_Handler();
 }

This works. But to avoid people having to do this in the future, could you add the bypass option to Cube instead?

Thank you.

Best answer by Ghofrane GSOURI

Hello @Steve Melnikoff 

Your contribution is greatly appreciated.

The issue has been reported to the development team under internal ticket number 214129.

 

THX

Ghofrane

1 reply

Ghofrane GSOURI
Ghofrane GSOURIBest answer
Technical Moderator
July 15, 2025

Hello @Steve Melnikoff 

Your contribution is greatly appreciated.

The issue has been reported to the development team under internal ticket number 214129.

 

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.