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.

MCU-PLUS-SDK-AM243X: lwip enet icssg custom integration

Part Number: MCU-PLUS-SDK-AM243X

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? 

 

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Thank you for your time and trouble.

Best regards

Ben