EVB-LAN9252-HBI+ EtherCAT® Evaluation Board User’s Guide
DS50002333C-page 34
2015-2016 Microchip Technology Inc.
5. To debug the PIC32 SoC, click “Debug Main Project” button.
FIGURE 3-8:
MPLAB IDE DEBUG DEVICE
3.4
PROGRAMMING THE LAN9252 EEPROM
The LAN9252 configures itself to the desired mode (SPI, 6 HBI modes) by reading the
strap settings located in EEPROM. The LAN9252 EEPROM is programmed and vali-
dated via the TwinCAT master tool. The EEPROM can also be programmed using an
external IIC Master, like AARDVARK.
3.4.1
Programming LAN9252 EEPROM using the TwinCAT Master
Tool
The programming procedure using the TwinCAT master tool is as follows:
Note 1:
This example utilizes the TwinCAT tool. Procedures may differ when using
other EtherCAT® master tools.
2:
Ensure the system network properties are configured properly for the Eth-
erCAT® frames, Ethernet cable linking your system, and EtherCAT® slave
board.
1. Load the corresponding ESI file in the directory path "C:\TwinCAT\3.1\Con-
fig\Io\EtherCAT". For this demo, the ESI file for the 16-Bit Multiplexed Sin-
gle-Phase Mode is used.
2. If TwinCAT installed successfully, a TwinCAT icon will be shown in the bot-
tom-right corner of the desktop. After clicking the icon, a pop-up list will display.
Select “TwinCAT XAE (VS 2013)”, as shown in Figure 3-9.
FIGURE 3-9:
TWINCAT SYSTEM MANAGER