Hello everyone!
Now I am using 2 ports in the SJA1105, MII4 to connect to the MCU, MII1 to connect to the PHY chip, the port is set to RGMII, and the speed is 1Gbps. At present, both SPI and MDIO have been successfully debugged. I initialized the five ports of the switch through the NXP official library, and the static configuration is valid, and after testing, the TXC and RXC pins, as well as the PHY chip, are clocked at 125MHZ.
If I only need to forward MCU packets through the switch, what else do I need to set up? My static config l comes from the simplePQRS.py in the NXP official tools. No modifications were made.
大家好!
请教一个问题,我现在SJA1105使用了2个端口,MII4连接MCU,MII1连接PHY芯片,端口设置为RGMII,速率为1Gbps。当前SPI与MDIO均已调试成功,我通过NXP官方的库初始化了交换机的五个端口,且静态配置有效,经过测试,TXC与RXC管脚,以及PHY芯片的时钟均为125MHZ.。
如果我只需要将MCU的报文通过交换机成功转发出去,我还需要设置什么呢?我的静态配置l来自于NXP官方工具里的simplePQRS.py。没有做任何修改。
Hello @KUN1996 ,
I assume, that you use any of SJA1105PQRS and you load the generated hex to the switch via SPI.
For basic traffic, you need only L2 Forwarding table. There is also necessary configure CGU, and sometimes ACU.
Please check chapter 6.1.10 of AH1704 SJA1105PQRS Application Hints (sign in is required) how to configure CGU for 1G RGMII. CGU configuration table can be added to the python script (please check CGU in file tables_sja1105pqrs.py) - the CGU will be part of the hex file. Alternatively, you can configure CGU by writing dedicated registers via SPI.
Best regards,
Pavel