Hello,
I want to use the enet network driver configured as SWITCH in combination with ICSSG in our custom board. So I started to adapt the enet_lwip_icssg example (latest 8.3 SDK public release) and could get it running but i have a few Problems/Questions.
- I used the patch mentioned in this Question. When will be this patch integrated in the SDK?
- our board uses MII/Standard for the eth phys, because of that I had to change the function "sdk/source/networking/enet/core/src/per/icssg.c:Icssg_initCfg()". How can I overwrite this setting from my application without changing the sdk?
- I integrated our ethernet phy (dp83826) according to this instruction, but the step "Declare the variable of type EnetPhy_Drv
as extern in main PHY driver located at <ENET_LLD>/src/phy/enetphy.c
. Also, add it to the gEnetPhyDrvs
array." is no longer up to date. The "gEnetPhyDrvs array"
is now located in the generated files. So what is the correct way of adding a driver without editing the sdk or the generated files manually?
- just for clarification, if the board is running and a port is not connected, I see in an endless repetition this "timeout-reset-configuration-..." pattern. Is this the correct behavior or is my configuration wrong?
EnetPhy_phyTimeout: PHY 0: timeout has occurred
EnetPhy_setNextState: PHY 0: NWAY_WAIT -> FOUND (0 ticks)
GenericPhy_reset: PHY 0: reset
EnetPhy_setNextState: PHY 0: FOUND -> RESET_WAIT (10 ticks)
GenericPhy_isResetComplete: PHY 0: reset is complete
EnetPhy_setNextState: PHY 0: RESET_WAIT -> ENABLE (0 ticks)
EnetPhy_enableState: PHY 0: enable
EnetPhy_enableState: PHY 0: req caps: FD100 HD100 FD10 HD10
EnetPhy_enableState: PHY 0: PHY caps: FD100 HD100 FD10 HD10
EnetPhy_enableState: PHY 0: MAC caps: FD1000 FD100 HD100 FD10 HD10
EnetPhy_enableState: PHY 0: refined caps: FD100 HD100 FD10 HD10
EnetPhy_enableState: PHY 0: PHY is NWAY-capable
EnetPhy_enableState: PHY 0: setup NWAY
EnetPhy_setupNway: PHY 0: NWAY advertising: FD100 HD100 FD10 HD10
EnetPhy_setupNway: PHY 0: config is needed
EnetPhy_setupNway: PHY 0: restart autonegotiation
EnetPhy_setNextState: PHY 0: ENABLE -> NWAY_START (50 ticks)
EnetPhy_setNextState: PHY 0: NWAY_START -> NWAY_WAIT (80 ticks)
Thank you for your time and trouble.
Best regards
Ben