ESX.4cl-ag: Programming of the controller with C
Description
The course explains the hardware functions of the ESX.4cl-ag controller and the programming with C including the STW-specific software, compiler and tools.
The course is intended for developers, who will program own applications for the ESX.4cl-ag.
Objectives
The participant
- Knows hard- and software requirements for programming the ESX.4cl-ag
- Knows the STW technical documentation and is able to use it for target-oriented research
- Is able to program own applications with C and the STW software package
- Knows the debugger solution
- Is able to upload software on the ESX.4cl-ag, change parameters and monitor the controller
Prerequisites
Basic knowledge of programming electronic controllers.
Programming skills in the programming language "C".
Course Content
- Introduction to the hardware of the ESX.4cl-ag
- Starter Kit
- Mainboard, supplies, main switch, GND concept, pin assignment,
- Multicore architecture
- Inputs / Outputs
- Coprocessor iMX 6
- Ethernet interface, Ethernet switch, CAN-bus, RS232, LIN
- Software development environment
- Installation of the software
- Setup of the software
- Compiler
- Functions of the STW-API
- Communication interfaces
- CAN bus: Initialize, read and process data of the CAN-objects
- Application layer: SAE J1939 and CANopen
- Ethernet: Programming with the LwIP library
- STW-Tools
- Introduction to openSYDE
- Code generation, template, openSYDE library
- Flashing, parametrizing, monitoring, visualizing
- Data administration on laptop and controller
- Debugger
- Introduction of the hardware solution
- Demonstration of the Lauterbach hardware debugger
- Programming exercises