This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
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
Hi Ben,
When will be this patch integrated in the SDK
It will be part of SDK release 8.5, planned by mid of December 2022.
How can I overwrite this setting from my application without changing the sdk
From SDK 8.3 onwards, You can update this config from application using EnetApp_updateIcssgInitCfg function located examples\networking\lwip\enet_lwip_icssg\test_enet_icssg.c
So what is the correct way of adding a driver without editing the sdk or the generated files manually?
Please follow https://software-dl.ti.com/mcu-plus-sdk/esd/AM243X/latest/exports/docs/api_guide_am243x/enet_migration_guide_top.html#CustomBoardSupport for adding phy driver to your custom board. Also for integrating your dp83826 phy please use this: https://software-dl.ti.com/mcu-plus-sdk/esd/AM243X/latest/exports/docs/api_guide_am243x/enet_migration_guide_top.html#ExternalPhyManagement
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?
Please try with above suggestion, and let me know if it works for you and if you still see these prints.
BR
Nilabh A.
Hi Nilabh,
thank you for your fast response.
The "Custom Board" option is excatly what i needed. I implemented the changes but still see this prints (with
#if (_DEBUG_ == 1)
BR
Nilabh A.