Skip to content

stm32g431rb: PLL setting result to slow exccution #22243

@baw-serafin

Description

@baw-serafin

Describe the bug
I have a small test program regitering an interrupt, the irq sets a semaphore and wake a Thread who toggles an output. On the 'nucleo_g4rb31' this is slower than on the 'f401re' even though it should have double the CPU-Freq. If I reconfigure the pll manually to 170Mhz the time goes down a lot.

In numbers:

  • f401re 12.4 us
  • g431rb 13.4us
  • g431rb custom pll 5.3us

To Reproduce

  • Build attached example

My PL settings:

CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=170000000
CONFIG_CLOCK_STM32_PLL_SRC_HSI=n
CONFIG_CLOCK_STM32_PLL_SRC_HSE=y
CONFIG_CLOCK_STM32_PLL_M_DIVISOR=6
CONFIG_CLOCK_STM32_PLL_N_MULTIPLIER=85
CONFIG_CLOCK_STM32_PLL_P_DIVISOR=7
CONFIG_CLOCK_STM32_PLL_Q_DIVISOR=2
CONFIG_CLOCK_STM32_PLL_R_DIVISOR=2

Expected behavior
g431 shoudl be fatser than f401

Impact
Slow excecution

Environment (please complete the following information):

  • Debian 10
  • Zehpyrtoolchain
  • v2.1.0

Metadata

Metadata

Assignees

Labels

bugThe issue is a bug, or the PR is fixing a bugplatform: STM32ST Micro STM32priority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions