Microchip
直播中

杨悟牛

7年用户 154经验值
私信 关注
[问答]

SPI模式下的LAN9252 Ethercat从机不会进入OP状态

您好,这里有微芯片EVB4-LAN9252-SPI MII RevB和嵌入式PC BECKHOFF CX1100-04 04的EDB4-LAN9252-SPI MII RevB。这个DeMoo板是正确配置的。嵌入式PC与EVB4-LAN9252的端口1(I/OUT)连接。配置数据DATAMICROCHEMB EVB-LAN9252-3PORT.XML被复制到目录C:/Twincat /IO/ECTCAT。我启动SW TWICAT 2,用这个配置的数据芯片EVB-LAN9252-3PORT.XML(& lt;配置数据& gt;800 e0cccc1313f000 0 000 08000和l/CONDATABAST & GT)进行扫描,成功地实现了EVB4-LAN9252的EPROM程序。从端口1(内/外)闪光灯的LED链接/行动,LED运行和LED链接/行动从端口2(出)关闭。然后LAN9252以太猫奴隶在SPI模式下工作,但不会进入OP状态。SW TWICAT中的错误描述为:inFoDATA状态0x2441& Gt;在“init”状态下的从属,初始化错误发生,从信号意外连接,通信端口B. Port B为PORT2(OUT)。我没有发现错误。我希望解决这个问题。

以上来自于百度翻译


      以下为原文

    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 (800E00CC8813f000000000800000) 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)

h1654155275.5627

2018-11-29 17:13:03
您好,当前:这里程序SC(从栈代码V5.11)是从处理器板PIC32 MX795F512L上运行的。PIC32 MX与CHIPLAN9252之间的通信工作正确,VIASPI。RT 0(I/OUT)闪存,LED运行,从端口1(OUT)的LED链路/动作是关闭的。配置:端口0和1连接到内部PHYS A和B。端口2连接到外部MII引脚。POT0(I/OUT)通过EtCCAT.PUT1(OUT)和POT2连接到嵌入式PC BEKKHOFF CX1100-004(用于LA)N9252-AddioBoad没有连接到EXTEN。文件在Twitter 2.0的结构窗口中列出:框1、BOX2和BOX3。BOX1和BOX2有错误的错误。框3在OP模式下正确工作。看到下面的一些图片。我不明白为什么在Twitter 2的结构窗口中存在框1和框2。我找不到这个错误。我怎样才能从结构窗口中移出框1和框2?我希望失去这个问题。端口0和1连接到内部PHS A和B。端口2连接到外部MII PIN。最好涉及GEWWB70。

以上来自于百度翻译


      以下为原文

      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
 
    
 
 
   Attached Image(s)

举报

更多回帖

发帖
×
20
完善资料,
赚取积分