Other Parts Discussed in Thread: TMDSIDK437X, TMDSICE3359, AM3359, SYSBIOS
Im currently trying to set up AM335x as a master and AM437x as a slave over ethercat network.
I just followed all the instructions as provided in the document in setting up HW and SW:
5.1 Hardware The following list shows the hardware required to support this design. • TMDSICE3359 (AM335x ICE V2 board) – Select the CPSW using jumpers J18 and J19 between pin 1 and 2 – Select pin 1 and 2 shorted on J5 for booting • EtherCAT Slave device (TMDSIDK437x) NOTE: This TI Design was tested using the TMDSIDK437x as the EtherCAT slave. • PC with terminal connection (for example, Tera Term through USB) • Windows® PC with minimum 2GB RAM 5.2 Software The following list shows the software required to support this design. • Acontis EC-Master V2.9 for SYS/BIOS • AM335x SYS/BIOS Industrial SDK v1.1.0.8 NOTE: After installing Industrial SDK, add or change IA_SDK_HOME in the PC Environment Variables to point to the SDK root directory. • Code Composer Studio™ 6.1.3 Compiler v5.1 or higher • SYS/BIOS 6.41.04.54 • XDC v3.30.06.67 or higher • Serial console terminal application (for example, TeraTerm, minicom, and HyperTerminal) If using the AM437x IDK as a slave, download Industrial SDK 2.1.0.1 pre-build binaries
However, when I load the program, EcMasterDemo.out, and do Resume, Im getting this error:
TI Industrial SDK Version - IASDK 1.1.0.8
Device name : AM3359
Chip Revision : AM335x ES1.2 [PG2.1]
SYS/BIOS EcMaster Sample application running on ICE V2
Full command line: -auxclk 2000 -v 2 -t 10000 -perf -cpsw 1 1 1 m custom am33XX 1 1 0
001152 : Run demo now with cycle time 2000 usec
001152 : Using AuxClock
001152 : ==========================
001152 : Initialize EtherCAT Master
001152 : ==========================
001152 : EC-Master V2.9.0.06 (Protected) for SYSBIOS Copyright acontis technologies GmbH @ 2016
001153 : CPSW INF: Port 1, Prio 1, Flags [Polling] [Master], Phy 1, PhyInterface 32, MAC 68:c9:0b:1c:33:75
001153 : CPSW INF: CPSW3G found. CPSW INF: HW-Id: 0x0019, RTL: 0, Major: 1, Minor: 0xc
001155 : CPSW ERR: mdio ACK missing
001155 : CPSW INF: mdio reg 2 read error
001155 : CPSW ERR: PHY initialization failed
001227 : Unlicensed version, stop sending ethernet frames after 60 minutes!
001229 : Ethernet cable not connected
001238 : ecatScanBus() Error 0x9811002d in McSm state 'SB_DONE' for requested state 'SB_DONE'
001238 : Cannot scan bus: ERROR: Ethernet link cable disconnected (0x9811002d)
001238 : EtherCAT network adapter MAC: 68-C9-0B-1C-33-75
001238 : =====================
001238 : Start EtherCAT Master
001238 : =====================
001268 : ecatSetMasterStateEx() Error 0x9811002d in McSm state 'START' for requested state 'START'
001268 : Scan bus mismatch for the first slave on the bus! BUS VendorId: ---- (0x0); ProductCode: Unknown (0x0).
001268 : CFG/BUS VendorId: ---- (0xe000059d) / ---- (0x0); ProductCode: Unknown (0x54490002) / Unknown (0x0)
001268 : Scan bus mismatch for the first slave on the bus! BUS VendorId: ---- (0x0); ProductCode: Unknown (0x0).
001268 : CFG/BUS VendorId: ---- (0xe000059d) / ---- (0x0); ProductCode: Unknown (0x54490002) / Unknown (0x0)
001268 : Scan bus mismatch for the first slave on the bus! BUS VendorId: ---- (0x0); ProductCode: Unknown (0x0).
001268 : CFG/BUS VendorId: ---- (0xe000059d) / ---- (0x0); ProductCode: Unknown (0x54490002) / Unknown (0x0)
001268 : Cannot start set master state to INIT (Result = ERROR: Ethernet link cable disconnected (0x9811002d))
001268 : ========================
001268 : Shutdown EtherCAT Master
001268 : ========================
001356 : ecatSetMasterStateEx() Error 0x9811002d in McSm state 'START' for requested state 'START'
001356 : Cannot stop EtherCAT-Master! ERROR: Ethernet link cable disconnected (0x9811002d)
001374 : ================================================================
001374 : PerfMsmt 'JOB_ProcessAllRxFrames' (avg/max) [usec]: 0.8/ 11.3
001374 : PerfMsmt 'JOB_SendAllCycFrames ' (avg/max) [usec]: 1.1/ 46.3
001374 : PerfMsmt 'JOB_MasterTimer ' (avg/max) [usec]: 2.4/ 97.7
001374 : PerfMsmt 'JOB_SendAcycFrames ' (avg/max) [usec]: 0.4/ 5.0
001374 : PerfMsmt 'Cycle Time ' (avg/max) [usec]: 1156.4/2007.5
001374 : PerfMsmt 'myAppWorkPd ' (avg/max) [usec]: 0.5/ 4.8
001671 : CPSW INF: Disable running RX-DMA
001671 : CPSW INF: RX+TX DMA disabled. Delay 500
001672 : EcMasterDemo stop.
Can someone help what exactly is this error. I used the right jumper settings(Shorting Pin 1&2 to select CPSW of master) and NOR boot(Pin 1&2 shorted).
When I use Twincat3 as master, im able to control the LEDs of both am335x and am437x. but using ECMaster Demo application, im not eble to establish the communication. Kindly help.
