Hot!LAN9252 Ethercat Slave in SPI Mode: will not enter OP state.

Author
GeWoBl70
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2008/09/17 08:51:38
  • Location: 0
  • Status: offline
2017/12/19 02:27:19 (permalink)
0

LAN9252 Ethercat Slave in SPI Mode: will not enter OP state.

Hello,
here I have the demoboard EVB4-LAN9252-SPI-MII REVB from Microchip and the embedded PC Beckhoff CX1100-0004. This demoboard is correctly configurated. The embedded PC is connected with the PORT 1 (IN/OUT) of EVB4-LAN9252. The config data Microchip EVB-LAN9252-3PORT.xml is copied to the directory c:/Twincat/io/Ethercat. I start the SW Twincat 2.0 , scan the device and program the EEPROM of the demoboard EVB4-LAN9252 directly with this config-data Microchip EVB-LAN9252-3PORT.xml (<ConfigData>800E00CC8813f000000000800000</ConfigData>) The EEPROM-programming is sucessfully. The LED LINK/ACT from PORT 1(IN/OUT) flashs, the LED RUN and LED LINK/ACT from PORT 2(OUT) are off. Then the LAN9252 Ethercat Slave works in SPI Mode, but will not enter OP state. The error in the SW Twincat describes: InfoData State 0x2841 -> Slave in 'INIT' state, Initialization error occured, Slave signals unexpected link, Communication port B. Port B is PORT2(OUT). I don't find the mistake. I hope to solve  this problem.  

 

#1

1 Reply Related Threads

    GeWoBl70
    New Member
    • Total Posts : 2
    • Reward points : 0
    • Joined: 2008/09/17 08:51:38
    • Location: 0
    • Status: offline
    Re: LAN9252 Ethercat Slave in SPI Mode: will not enter OP state. 2018/01/08 05:44:19 (permalink)
    0
      Hello,
    current: here the program SSC (slave stack code v5.11) is running on the processor PIC32MX795F512L from the demoboard. The communication between the PIC32MX and the chip LAN9252 works correctly via SPI.
    After the EEPROM-programming and device-sanning with Twincat2.0 was sucessfully.
    LED LINK/ACT from PORT 0(IN/OUT) flashs, the LED RUN is ON, and LED LINK/ACT from PORT 1(OUT) is OFF.
    Configation: Ports 0 and 1 are connected to internal PHYs A and B. Port 2 is connected to the external MII pins.
    PORT0(IN/OUT) is connected to the embedded PC BECKHOFF CX1100-0004 via ethercat.
    PORT1(OUT) and PORT2 (for LAN9252-ADD-ON board) are not connected to extern.
     
    The files was listed in the structur window from Twincat2.0: Box 1, Box2 and Box3. Box 1 and Box 2 have error INIT INIT_ERR. Box 3 works correctly in OP mode. See some pictures below.
     
    I don't understand why do exist Box 1 and box 2 in the structur window from twincat 2.0?  I can not find this mistake.
    How can I remove Box 1 and Box 2 from the strucktur window?
    I hope to lose this problem. 
     
    Ports 0 and 1 are connected
    to internal PHYs A and B. Port 2 is connected to
    the external MII pins.
    best regards
    GeWoBl70
     
        
     
     
    post edited by GeWoBl70 - 2018/01/10 08:52:17

    Attached Image(s)

    #2
    Jump to:
    © 2018 APG vNext Trial Version 4.5