[Bug]: LL_SetFlashLatency() sets 2 wait states instead of 4 wait states in VOS0 at 240 MHz HCLK on STM32H74x/H75x (DEV_ID 0x450)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- c
- Ambito
- embedded-iot
Direzione di ricerca
Apri Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_utils.c e individua LL_SetFlashLatency(). Trova dove mancano le definizioni di UTILS_SCALE0_LATENCYx_FREQ per DEV_ID 0x450 e aggiungile seguendo il modello utilizzato per DEV_ID 0x480/0x483. Verifica che la correzione assicuri che 240 MHz HCLK in modalità VOS0 imposta LL_FLASH_LATENCY_4 (4 stati di attesa).
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bug Summary
LL_SetFlashLatency() in stm32h7xx_ll_utils.c has no VOS0 definitions for DEV_ID 0x450 (STM32H74x/H75x) and configures FLASH_ACR with 2 wait states instead of 4 wait states when running at 240 MHz HCLK in VOS0 mode.
Detailed Description
- Problem:
On STM32H742/743/750/753 and STM32H745/747/755/757 (DEV_ID 0x450), LL_SetFlashLatency() in Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_utils.c sets flash wait states via LL_SetFlashLatency(new_hclk_freq).
For DEV_ID 0x450, there are no UTILS_SCALE0_LATENCYx_FREQ definitions in stm32h7xx_ll_utils.c (unlike DEV_ID 0x480/0x483). Because VOS0 reads back as Scale 1 (PWR_D3CR_VOS_0 | PWR_D3CR_VOS_1), LL_SetFlashLatency() executes the Scale 1 branch where UTILS_SCALE1_LATENCY2_FREQ is defined as 240000000U. Consequently, at 240 MHz HCLK (480 MHz Core with HPRE = 2), the function programs LL_FLASH_LATENCY_2 (2 wait states / 3 CPU cycles).
- Reference Manual:
Per RM0433 Rev 8 (Table 17), flash latency in VOS0 requires:
- 140 < HCLK <= 210 MHz: 2 WS (3 CPU cycles)
- 210 < HCLK <= 225 MHz: 3 WS (4 CPU cycles)
- 225 < HCLK <= 240 MHz: 4 WS (5 CPU cycles)
- Reference Issue & Pull Request:
- Zephyr Issue: https://github.com/zephyrproject-rtos/zephyr/issues/120613
- Zephyr hal_stm32 PR: https://github.com/zephyrproject-rtos/hal_stm32/pull/418
Expected Behavior
When LL_SetFlashLatency() is called with HCLK_Frequency = 240000000 (240 MHz) on STM32H7 in VOS0 mode (SYSCFG_PWRCR_ODEN set), it should set FLASH_ACR to LL_FLASH_LATENCY_4 (4 wait states).
Actual Behavior
LL_SetFlashLatency() sets FLASH_ACR to LL_FLASH_LATENCY_2 (2 wait states).
Environment
- Repository: STMicroelectronics/STM32CubeH7 / stm32h7xx-hal-driver - Files: Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_utils.c, Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_utils.h - Affected Devices: STM32H742/743/750/753 (DEV_ID 0x450)
Severity
Normal
- Lingua principale
- C
- Stelle
- 773
- Fork
- 369
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di STMicroelectronics/STM32CubeH7
-
[Bug]: FreeRTOS, Ping requests are not answered after update from 12.1Forse di nuovo libera @ASAHSTM l’ha presa 38 giorni fa e non c’è nessuna pull request aperta. Apertabug eth freertos needs clarification
STMicroelectronics/STM32CubeH7#348 · 3 commenti · 1 assegnatario ·
-
[Bug]: HAL_SD_IRQHandler never reaches its error branch on data error in IT mode (IRQ storm)Forse di nuovo libera @KRASTM l’ha presa 58 giorni fa e non c’è nessuna pull request aperta. Apertabug hal internal bug tracker sd sdmmc
STMicroelectronics/STM32CubeH7#347 · 6 commenti · 1 reazione · 1 assegnatario ·
Tutte le issue di STMicroelectronics/STM32CubeH7
Issue simili
-
Policy query leaks host primary block (BSL_PrimaryBlock_deinit skipped) on two early-exit pathsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
NASA-AMMOS/BSL#355 ·
I maintainer di solito rispondono entro 1 giorno
-
#242 leftovers: dated narrative and shas in the social-features test planForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
EchoTools/nevr-runtime#264 ·
I maintainer di solito rispondono entro 1 giorno
-
area/docdb kind/bug priority/medium status/awaiting-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
yugabyte/yugabyte-db#34873 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
[sqlcipher] update to 4.19.0Apertacategory:port-update
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni