Skip to content

trns1997/simpleSlave

Repository files navigation

Simple_SOES_Slave - EtherCAT

Requirements

  1. GNU ARM Embedded tool-chain: link
  2. J-Link: link

Build Project

  1. The first thing is to tell the build system which arm-gcc you want to use. To do that makefile expects the environment variable ARM_GCC_BIN_FOLDER to be set.
export ARM_GCC_BIN_FOLDER="$PATH_TO_ARM_GCC_TOOLCHAIN/gcc-arm-none-eabi-10.3-2021.10/bin"

Note that you can add the previous export to your ~/.bashrc so that you don't have to repeat the export each time you open a new terminal.

  1. Clone Simple Slave Project
$ git clone git@github.com:trns1997/simpleSlave.git
$ cd $PATH_TO_SIMPLE_SLAVE_PROJECT
  1. Build Binaries
$ ./build.sh -h
Usage: ./build.sh mcu product board
OR
Usage: ./build.sh unit
Supported mcus:
  - XMC4800_F144x2048
Supported products:
  - ankle
  - blinker
  - fallsafe
Supported boards:
  - ankle
  - relax

Example if you wish to build product blinker on the board xmc4800 relax kit which has mcu XMC4800_F144x2048:

./build.sh XMC4800_F144x2048 blinker relax

Deploy Binaries

$ ./deploy.sh -h
Usage: ./deploy.sh target product board
Supported targets:
  - XMC4800-2048
Supported products:
  - ankle
  - blinker
  - fallsafe
Supported boards:
  - ankle
  - relax

Example if you wish to deploy product blinker on the board xmc4800 relax kit which has target XMC4800-2048:

./deploy.sh XMC4800-2048 blinker relax

Debugging

Debugger using Visual Studio Code
1. Download Visual Studio Code: [link](https://code.visualstudio.com/)
2. Visual Studio Code Plugins:
  • C/C++ for Visual Studio Code:link
  • Cortex-Debug:link
  • C/C++ Intellisense: link optional

3. Running the debugger
  • In Visual Studio Code, open this project : File -> Open folder
  • Plug in the XMC board with USB connection.
  • Press F5 to run debugger
Debugger using Eclipse
1. Install Eclipse Embedded CDT https://projects.eclipse.org/projects/iot.embed-cdt
2. Install Jlink, GCC ARM, OpenOCD
3. Setup in the project options the MCU tools: ![image](https://user-images.githubusercontent.com/32091677/155189890-06e1cdce-28ce-4441-87dc-e178081a358d.png)

image

image


4. Setup in the project options the build options: ![image](https://user-images.githubusercontent.com/32091677/155190323-6eb39fa0-5082-4808-8fc9-bac357f5d7be.png)

image


5. Setup the debug configuration: ![image](https://user-images.githubusercontent.com/32091677/155190736-10b3bfe0-a981-49ec-9660-5dd344130051.png)

image

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages