Configure the LAN9252 - Gepetto/DieBieSlaveduino GitHub Wiki

Configure the LAN9252

We are going to follow what is did in the easy configurator tutorial but as our hardware is different some incompatibilities will appear.

Generate config files

The easiest way is to use the easy configurator provided by easycat.
Incompatibilities :

  • You will not able to flash directly the LAN9252 with this software, it is only used to generate ESI files.
  • The default EEPROM size is wrong
  1. On easy configurator Create a new project
  2. Click on create files
  3. By default the eeprom size is set at 4096 but is not comptible with the DieBieSlave device : Open the xml file generated and modify the field ByteSize as follow <ByteSize>2048</ByteSize>

Note that a working config project is given in the examples.

Twincat set up

As explained in the easy configurator tutorial :

  1. Put the .xml ESI file in twincat/...
  2. Open Twincat and create a new projet
  3. On the left click on I/O -> right click on devices and Add New Item -> EtherCAT Master
  4. Right click on new master just created Device1 -> Scan : a new generic slave must be found

Flash and configure the LAN9252 with Twincat

  1. Double click on the ethercat master Device1
  2. A new page appear, click on the tab Online -> right click on the slave device, for example box1 -> choose EEPROM Update
  3. Choose the .xml file previously loaded in the twincat folder.
  4. It is possible you have to scan to reload the device or delete the master to do again the steps 1 to 4.
  5. If all is right the RUN LED should light up, that aim the LAN9252 is in operational mode. Other way : Double click on the ethercat master Device1 -> click on the tab Online, now you can see the new name of your device and his state (OP).

⚠️ **GitHub.com Fallback** ⚠️