-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stm32h7xx_hal_eth.c bug report #302
Comments
In version 1.12.1 I set it as DISABLE, but Ethernet still doesn't work in the program that worked with 1.11.1. |
Hello @Gorden1970, Thank you for your report. However, referring to the reference manual, when bit 5 is set, broadcast packets are disabled, which means that the BroadcastFilter is enabled. Therefore, the correct code is from version 1.12.0 and 1.12.1:
This ensures that when the BroadcastFilter is enabled, bit 5 is set to 1 to block broadcast packets. Conversely, when the BroadcastFilter is disabled, bit 5 is set to 0 to allow all broadcast packets to pass. With Regards, |
I agree with this and think what you said is right, but the drivers currently provided by Keil MDK are as follows Driver_ETH_MAC.h ETH_MAC_STM32.c This will cause existing projects to not function properly on V1.12.1. I can only modify to DISABLE during transition. And thank you for your reply |
Hello @Gorden1970, This issue is related to the driver provided by Keil MDK. On our side, the correct code is from versions 1.12.0 and 1.12.1. You can report the issue on this forum: https://github.com/Open-CMSIS-Pack/CMSIS-Driver_STM32/blob/main/Drivers/ETH_MAC_STM32.c Thank you. |
Hello @Gorden1970, Please allow me to close this ticket. With Regards, |
STM32H7 HAL Library version 1.12.0 and 1.12.1 stm32h7xx_hal_eth.c line number 2503 content is as follows
((uint32_t)((pFilterConfig->BroadcastFilter == ENABLE) ? 1U : 0U) << 5) |
STM32H7 HAL Library version 1.11.0 and 1.11.1 stm32h7xx_hal_eth.c line number 2503 content is as follows
((uint32_t)((pFilterConfig->BroadcastFilter == DISABLE) ? 1U : 0U) << 5) |
STM32H7 HAL Library version 1.12.0 and 1.12.1 will cause ETH to be unusable, I check file RM0399 description
Bit 5 DBF: Disable Broadcast Packets
When this bit is set, the AFM module blocks all incoming broadcast packets. In addition, it
overrides all other filter settings.
When this bit is reset, the AFM module passes all received broadcast packets.
The text was updated successfully, but these errors were encountered: