Part Number: AM6421
Hi TI Team,
We are porting the AM64x PROFINET IO Device example from the TI EVM to our custom board.
Hardware
- Processor: AM6421
- PHY: DP83822 (MII mode)
- SDK: ind_comms_sdk_am64x_11_00_00_13
Current Status
The following functionality is working correctly:
- PHY detection is successful.
- MAC address is read correctly from EEPROM.(we are writing MAC Address into EEPROM)
- PRU initialization completes successfully.
PN_API_IOD_initStack()returns success.- The device is discovered from the PLC.
- PLC is able to assign the IP address.
- AR Connect indication is received.
The application log is shown below:
The ret in PN_API_IOD_initStack : 0
Using user-defined submodule configuration (not from remanent memory). : 0x00000000before
IOD callback
IOD Start Up
Restore remanent memory indicated.
Restore remanent memory indicated.
Restore remanent memory indicated.
Restore remanent memory indicated.
Restore remanent memory indicated.
Reading the mac addres : the offset is : 64
MAC Address = 70:FF:76:1E:E9:C7
[APP] INFO: Initializing PRU instance ...
APP_pruInit
Reading the mac addres : the offset is : 64
CUST_PHY_DP83822_detect 2000a240
CUST_PHY_DP83822_detect 2000a240
Phy 1 : Disable RGMII mode
Phy 1 : Disable GBit ANEG
Phy 2 : Disable RGMII mode
Phy 2 : Disable GBit ANEG
MAC Address = 70:FF:76:1E:E9:C7
DP83822 detected
Ret Val after PHY_init is 0
DP83822 detected
Ret Val after PHY_init is 0
Module/submodule successfully plugged into slot 0, subslot 1
Module/submodule successfully plugged into slot 0, subslot 2
Module/submodule successfully plugged into slot 0, subslot 3
Module/submodule successfully plugged into slot 0, subslot 4
Module/submodule successfully plugged into slot 1, subslot 1
Module/submodule successfully plugged into slot 1, subslot 2
Module/submodule successfully plugged into slot 1, subslot 3
Restore remanent memory indicated.
IOD Start end :0
Cyclic task
IP address = 192.168.0.2, Subnet mask = 255.255.255.0, Default router = 0.0.0.0
IP address = 0.0.0.0, Subnet mask = 0.0.0.0, Default router = 0.0.0.0
Save remanent memory indicated (2, 0).
IP address = 192.168.0.2, Subnet mask = 255.255.255.0, Default router = 192.168.0.2
The write : 0
Save remanent memory indicated (1, 0).
The write : 0
PN_APP_IOD_cbArConnectInd
Connect_ind: AR = 1, AR type = 1, send clock factor = 32, Reduction ratio (in) = 2, reduction ratio (out) = 2, session key = 1025, ho
Problem
After PN_APP_IOD_cbArConnectInd() is called, no further logs are printed and the application appears to stop progressing.
On the PLC (TIA Portal), after downloading the hardware configuration, the device reports:
- Module exists, faulty
- Error in lower-level component
- Fault LED (SF)
Any suggestions on where to debug next would be greatly appreciated.
Thanks & regards,
Sonu