Configure the LAN9252 - Gepetto/DieBieSlaveduino GitHub Wiki
We are going to follow what is did in the easy configurator tutorial but as our hardware is different some incompatibilities will appear.
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
- On easy configurator Create a new project
- Click on
create files
- 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.
As explained in the easy configurator tutorial :
- Put the .xml ESI file in
twincat/...
- Open Twincat and create a new projet
- On the left click on
I/O
-> right click ondevices
andAdd New Item
->EtherCAT Master
- Right click on new master just created
Device1
->Scan
: a new generic slave must be found
- Double click on the ethercat master
Device1
- A new page appear, click on the tab
Online
-> right click on the slave device, for examplebox1
-> chooseEEPROM Update
- Choose the
.xml
file previously loaded in the twincat folder. - It is possible you have to scan to reload the device or delete the master to do again the steps 1 to 4.
- 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 tabOnline
, now you can see the new name of your device and his state (OP).