Difference between revisions of "EtherCAT Master"

From ERIKA WIKI
Jump to: navigation, search
(Demo)
Line 17: Line 17:
 
<ol>
 
<ol>
 
<li> Download the EtherCAT SOEM library for ERIKA3 from the page [https://github.com/evidence/erika3-SOEM https://github.com/evidence/erika3-SOEM]
 
<li> Download the EtherCAT SOEM library for ERIKA3 from the page [https://github.com/evidence/erika3-SOEM https://github.com/evidence/erika3-SOEM]
<li> Download the bare-metal x86 toolchain available at this link [http://erika-enterprise.com/download/erika3_x86_64_xtools.tar.gz http://erika-enterprise.com/download/erika3_x86_64_xtools.tar.gz], extract the downloaded archive and put the directory containing the binaries in the PATH.
+
<li> Download the bare-metal x86 toolchain available at this link [http://erika-enterprise.com/download/erika3_x86_64_xtools.tar.gz http://erika-enterprise.com/download/erika3_x86_64_xtools.tar.gz], extract the downloaded archive and put the directory containing the binaries in the <code>PATH</code> environment variable.
 
<li> Run the RT-Druid tool
 
<li> Run the RT-Druid tool
 
<li> Create a new project by clicking on <code>New</code> &rarr; <code>RT-Druid v3 Oil and C/C++ Project</code> as shown in the next Figure:
 
<li> Create a new project by clicking on <code>New</code> &rarr; <code>RT-Druid v3 Oil and C/C++ Project</code> as shown in the next Figure:

Revision as of 12:34, 13 February 2019

Introduction

In the context of the I-MECH project, funded by the European Commission under the ECSEL programme, we have ported the SOEM EtherCAT library on ERIKA. Such support will be soon released in the next stable version of the RTOS. This page explains how to setup and run the provided demo.

Requirements

For running the demo, an x86-64 platform with the following characteristics is needed:

  • Supporting hardware-assisted virtualization (i.e. VT-x, VT-D, EPT) and capable of running the Xen hypervisor in HVM mode.
  • With an Intel i210 network interface.

Demo

To run the provided EtherCAT master demo, follow the next steps:

  1. Download the EtherCAT SOEM library for ERIKA3 from the page https://github.com/evidence/erika3-SOEM
  2. Download the bare-metal x86 toolchain available at this link http://erika-enterprise.com/download/erika3_x86_64_xtools.tar.gz, extract the downloaded archive and put the directory containing the binaries in the PATH environment variable.
  3. Run the RT-Druid tool
  4. Create a new project by clicking on NewRT-Druid v3 Oil and C/C++ Project as shown in the next Figure:
    Figure 3: Create a new RT-Druid project.
  5. Name the new project (e.g., mytest) and select the Cross-GCC as shown in the next Figure:
    Figure 4: Naming the new RT-Druid project.
  6. Check the box for using an existing template and select aarch64JailhouseHelloworld OSEK demo on Jailhouseas shown in the next Figure:
    Figure 5: Selecting the Helloworld template.