2025-11-25 1:52 AM - last edited on 2025-11-25 8:57 AM by Andrew Neil
Hello Everyone,
I designed pcb while to use STM32H723VGT6. I used an Ethernet phy called DP83848 to communicate via Ethernet.
I have previously used this Ethernet phy with F4 series processors and communicated via Ethernet without any problems. I am using CubeIDE version 1.18.0. I make the settings from CubeIDE as follows.
I wrote the following into HARDFAULT_HANDLER:
uint32_t cfsr = SCB->CFSR;
uint32_t hfsr = SCB->HFSR;
uint32_t bfar = SCB->BFAR;
uint32_t mmfar = SCB->MMFAR;
and the resulting values are:
cfsr = 0x400,
hfsr = 0x40000000,
bfar = 0,
mmfar = 0
I've tried different combinations for a long time, but I haven't found a solution. Can some one tell me if they have got this combo working (H7 and the DP83848), and if so, could you share some working code, please
Thanks,
Osman
2025-11-25 7:18 AM
Check your driver files.
Probably some HAL ETH stuff changed since you wrote it for F4?
I would compare the PHY's datasheets and compare / identify the important registers, then copy the LAN8742 driver files, rename and edit them according to the DP-thingy.
I would also write some UART debug code to directly read and write the PHY's registers.