GithubHelp home page GithubHelp logo

simpleslave's Introduction

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 [email protected]: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

simpleslave's People

Contributors

cedricq avatar cedricquentin avatar trns1997 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.