WRONG GENERATION OF STM32F4xx_HAL_CONF.H

Created at 2024-05-17 14:35:48

RT-THREAD BUG

Despite the board.h has the correct settings:

#define BSP_USING_ETH
#ifdef BSP_USING_ETH
#define PHY_USING_LAN8720A
// #define PHY_USING_DM9161CEP 
// #define PHY_USING_DP83848C 
#endif

the stm32f4xxhal_conf.h contains wrong parameters generated for the last driver in the list, in section 4.

they must be

PHY_SR                          ((uint16_t)0x001FU)  
PHY_SPEED_STATUS                ((uint16_t)0x0004U)
PHY_DUPLEX_STATUS               ((uint16_t)0x0010U) 

更多

Follower
0
Views
1.4k
1 Answer
Margueriaulding
Margueriaulding 4小时前

I really appreciate articles that are simple yet comprehensive. The content is easy to read and understand, allowing readers to absorb information quickly. papa's scooperia

Write Your Answer

Log in to publish your answer,Click here to log in.

Create
Post

Share