<div style>hi, </div><div style><br></div><div style><br></div><div style>I am new to ethercat. and got a "TI AM3359 Industrial Communications Engine" board.</div><div style><br></div><div style>I tested in Windows with twincat, refer to <a href="http://www.ti.com/am335x_twincat" target="_blank" style="color:rgb(17,85,204)">http://www.ti.com/am335x_twincat</a>. and it cat turn on the led by I wrote value to RxPDO.</div>
<div style><br></div><div style>I want to use the TI board as slave with the Etherlab master in linux environment. </div><div style><br></div><div style>First step I want to turn on the led of board. </div><div style><br>
</div><div style>I wrote a C Code as attachment to do so, but it don't work. </div><div style><br></div><div style>And Ethercat master shows message below</div><div style><br></div><div style>Jun 13 09:08:26 debian kernel: [ 3115.056686] EtherCAT: Requesting master 0...</div>
<div style>Jun 13 09:08:26 debian kernel: [ 3115.056691] EtherCAT: Successfully requested master 0.</div><div style>Jun 13 09:08:26 debian kernel: [ 3115.056745] EtherCAT 0: Domain0: Logical address 0x00000000, 4 byte, expected working counter 1.</div>
<div style>Jun 13 09:08:26 debian kernel: [ 3115.056749] EtherCAT 0: Datagram domain0-0: Logical offset 0x00000000, 4 byte, type LWR.</div><div style>Jun 13 09:08:26 debian kernel: [ 3115.056818] EtherCAT 0: Master thread exited.</div>
<div style>Jun 13 09:08:26 debian kernel: [ 3115.056824] EtherCAT 0: Starting EtherCAT-OP thread.</div><div style>Jun 13 09:08:26 debian kernel: [ 3115.056941] EtherCAT WARNING 0: 1 datagram UNMATCHED!</div><div style>Jun 13 09:08:26 debian kernel: [ 3115.061796] EtherCAT WARNING 0: No app_time received up to now, but master already active.</div>
<div style>Jun 13 09:08:27 debian kernel: [ 3115.289453] EtherCAT 0: Slave states: OP.</div><div style><br></div><div style><br></div><div style>I don't knwo what the problem is. Is anybody help me?</div><div style><br>
</div><div style><br></div><div style>slaves information as below.</div><div style><br></div><div style>root@debian:/opt/etherlab/bin# sudo ./ethercat slaves -v</div><div style>=== Master 0, Slave 0 ===</div><div style>State: PREOP</div>
<div style>Flag: +</div><div style>Identity:</div><div style> Vendor Id: 0xe000059d</div><div style> Product code: 0x54490001</div><div style> Revision number: 0x00000001</div><div style> Serial number: 0x00000000</div>
<div style>DL information:</div><div style> FMMU bit operation: no</div><div style> Distributed clocks: no</div><div style>Port Type Link Loop Signal NextSlave</div><div style> 0 MII up open yes -</div>
<div style> 1 MII down closed no -</div><div style> 2 N/A down closed no -</div><div style> 3 N/A down closed no -</div><div style>Mailboxes:</div><div style> Bootstrap RX: 0x0000/0, TX: 0x0000/0</div>
<div style> Standard RX: 0x1000/128, TX: 0x1400/128</div><div style> Supported protocols: CoE</div><div style>General:</div><div style> Group: Ti Slave</div><div style> Image name: </div><div style> Order number: TIESC-001</div>
<div style> Device name: TIESC-001</div><div style> CoE details:</div><div style> Enable SDO: yes</div><div style> Enable SDO Info: yes</div><div style> Enable PDO Assign: no</div><div style> Enable PDO Configuration: no</div>
<div style> Enable Upload at startup: no</div><div style> Enable SDO complete access: yes</div><div style> Flags:</div><div style> Enable SafeOp: no</div><div style> Enable notLRW: yes</div><div style> Current consumption: 0 mA</div>
<div style>root@debian:/opt/etherlab/bin# </div><div style><br></div><div style><br></div><div style>root@debian:/opt/etherlab/bin# sudo ./ethercat pdos</div><div style>SM0: PhysAddr 0x1000, DefaultSize 128, ControlRegister 0x26, Enable 1</div>
<div style>SM1: PhysAddr 0x1400, DefaultSize 128, ControlRegister 0x22, Enable 1</div><div style>SM2: PhysAddr 0x1800, DefaultSize 4, ControlRegister 0x64, Enable 1</div><div style> RxPDO 0x1601 "RxPDO-Map"</div>
<div style> PDO entry 0x7010:00, 32 bit, "SubIndex 000"</div><div style>SM3: PhysAddr 0x1c00, DefaultSize 4, ControlRegister 0x20, Enable 1</div><div style> TxPDO 0x1a00 "TxPDO-Map"</div><div style>
PDO entry 0x6000:00, 32 bit, "SubIndex 000"</div><div style>root@debian:/opt/etherlab/bin#</div>