Why is my "ethercat.xml" configuration file not downloaded ?

Hilscher firmwares usually take .NXD (Hilscher database) files for configuration, which are automatically downloaed during driver startup.

EtherCAT Master firmwares make an exception here and are able to use Beckhoff's XML configuration file, which must be named ethercat.xml.

These XML files are not downloaded per default, so either the configuration must be manually done by the application using xChannelDownload() command and execute a CHANNEL_INIT afterwards,
or patch the driver source by adding another file type being downloaded (see following excerpt):

BeforeAfter
USER_LINUX.c
uint32_t USER_GetConfigurationFileCount(...)
{
...
  if(0 == strncasecmp(szExt, HIL_FILE_EXTENSION_DATABASE, 4))
...
}

int USER_GetConfigurationFile(...)
{
...
  if(0 == strncasecmp(szExt, HIL_FILE_EXTENSION_DATABASE, 4))
...
}
USER_LINUX.c
uint32_t USER_GetConfigurationFileCount(...)
{
...
  if( (0 == strncasecmp(szExt, HIL_FILE_EXTENSION_DATABASE, 4)) ||
      (0 == strncasecmp(szExt, ".xml", 4)) )
...
}

int USER_GetConfigurationFile(...)
{
...
  if( (0 == strncasecmp(szExt, HIL_FILE_EXTENSION_DATABASE, 4)) ||
      (0 == strncasecmp(szExt, ".xml", 4)) )
...
}
netX based Virtual Ethernet Interface