After applying the above configuration, with the MCU side configured to RGMII, I sent FF:FF:FF:FF:FF:FF broadcast packets from the MCU to Switch Port 4. Unfortunately, the SJA1105 does not appear to be receiving the MAC data frames. How should I troubleshoot this data link issue from both software and hardware perspectives? For example:
Hello @__shiyi ,
There are zeros on rows 98 and 99 in your file. I would expect this:
"MAC_FLT[0]": 0xFFFFFF0000FF,
"MAC_FLT[1]": 0xFFFFFF0000FF,
ad 1. Please check Initial device configuration flag register (address 01h) if your configuration has been accepted by the switch. Reading of register value follows UM11040 chapter 3 SPI Interface.
ad 2. TDL can be set up by registers CFG_PAD_MIIx_ID.
ad 3. You may check high level diagnostic registers described in UM11040, chapter 6.1.1.8 Ethernet port status.
BTW, check your ACU and CGU settings - AH1704 chapter 6. Interface Configuration.
Please refer to UM11040 Software user manual for SJA1105P, SJA1105Q, SJA1105R, SJA1105S and AH1704 SJA1105PQRS Application Hints for detailed description of registers and for application examples. Both documents are available in Documentation section on the page SJA1105PQRS | Automotive Ethernet Switches | NXP Semiconductors and requires log in. Updated AH1704 rev 1.4 requires access to Secure Files.
Best regards,
Pavel