cancel
Showing results for 
Search instead for 
Did you mean: 

SPI clock bypass option missing

Steve Melnikoff
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Ghofrane GSOURI
ST Employee

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.

View solution in original post

1 REPLY 1
Ghofrane GSOURI
ST Employee

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.