[BUG] STM32 H7 ETH driver copy misses ST fixes from HAL H7 1.11.7 (RX tail pointer barrier, descriptor list re-init)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 66/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- c
- Ambito
- embedded-iot, networking
Direzione di ricerca
Read source/portable/NetworkInterface/STM32/Drivers/H7/stm32h7xx_hal_eth.c and compare ETH_UpdateDescriptor() and the ETH_DMA*DescListInit() functions with ST HAL H7 v1.11.7. Check how NetworkInterface.c reinitializes the driver after HAL_ETH_STATE_ERROR; done means the RX barrier and descriptor state resets match the cited fixes and cannot leave stale buffers to be freed twice.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
source/portable/NetworkInterface/STM32/Drivers/H7/stm32h7xx_hal_eth.c is a
copy of ST's HAL ETH driver. STM32CubeH7 v1.13.1 (HAL H7 v1.11.7, 2026-10-26)
fixes two issues that are still present in the copy, both on the LTS
202604.01 (FreeRTOS-Plus-TCP V4.4.1) and on current main:
-
Barrier before the RX tail pointer write –
ETH_UpdateDescriptor()
uses__DMB()before writingDMACRDTPR. ST replaced it with__DSB()
("Fix intermittent RX packet loss from descriptor/DMA race condition"):
the DMA may observe the new tail pointer before the descriptor writes
have completed. -
Incomplete descriptor list initialisation –
ETH_DMATxDescListInit()
/ETH_DMARxDescListInit()do not resetPacketAddress[],
CurrentPacketAddress,BuffersInUse,releaseIndex, TX
BackupAddr0/1,RxDataLength,pRxLastRxDesc,pRxStart/Endand the
RX timestamp.NetworkInterface.ccallsHAL_ETH_Init()again to
recover fromHAL_ETH_STATE_ERROR; stalePacketAddress[]entries can
then be passed toHAL_ETH_TxFreeCallback()by
HAL_ETH_ReleaseTxPacket(), i.e. a network buffer released twice.
Expected behavior
Same behaviour as ST HAL H7 v1.11.7 (stm32h7xx_hal_eth.c: see the
ETH_UpdateDescriptor() and ETH_DMA*DescListInit() diffs between
v1.11.6 and v1.11.7).
Platform
STM32H743, GCC (GNU Tools for STM32), FreeRTOS-LTS 202604.01,
FREERTOS_PLUS_TCP_NETWORK_IF=STM32, FREERTOS_PLUS_TCP_STM32_IF_DRIVER=H7,
buffer allocation 1.
Additional context
- The RX timestamp context-descriptor fix in the same ST release only
matters with PTP enabled, so it is not included here. - I can open a PR with the change (about 20 lines in the H7 driver only).
Would you prefer this targeted fix or a full re-sync of the driver with
HAL v1.11.7?
- Lingua principale
- C
- Stelle
- 215
- Fork
- 222
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un 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 FreeRTOS/FreeRTOS-Plus-TCP
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 63/100
FreeRTOS/FreeRTOS-Plus-TCP#1395 ·
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
FreeRTOS/FreeRTOS-Plus-TCP#1389 ·
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
FreeRTOS/FreeRTOS-Plus-TCP#1388 ·
-
[BUG] PhyHandling incorrectly lists LAN8742A as having 19 PHYCRForse già presa @StitchLilo626 l’ha presa 41 giorni fa. Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
FreeRTOS/FreeRTOS-Plus-TCP#1361 ·
-
[BUG] DHCPv6 socket-allocation failure crashes with assertions disabled; CBMC stubs hide the pathApertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
FreeRTOS/FreeRTOS-Plus-TCP#1391 ·
Tutte le issue di FreeRTOS/FreeRTOS-Plus-TCP
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
qoretechnologies/qore#8222 ·
I maintainer di solito rispondono entro 1 giorno
-
c easy first-contributor first-contributors good first issue help wanted up-for-grabs
Difficoltà 1/5 1-3 ore Idoneità per principianti 96/100
fork-commit-merge/fork-commit-merge#8696 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
libsdl-org/SDL#16873 ·
I maintainer di solito rispondono entro 1 giorno