background image

MACH ETH - User Manual 

 

 

 

 

MACH SYSTEMS s.r.o.

 

www.machsystems.cz

  

Page 

5

 of 

20

 

 

[email protected]

  

 

 

The device can act as an interface, a gateway, or bridge between all its channels. An analogue 

input and a digital output enable the user to interact with external peripherals.  

There are 

two

 options to use the interface: 

 

A universal “stock firmware” interface for Ethernet

-CAN(/FD), Ethernet-LIN, USB-CAN(/FD), 

USB-LIN with the help of the open communication protocol (see [1]) over Ethernet (both TCP 
and UDP) or USB (VCP). 

 

An interface with a user firmware, allowing the user to write his own application on top of 
the MACH-ETH device.  
Firmware can be developed in C/C++ and can be transferred into the device over USB, ETH or 
a standard ICSP SWD interface, which also offers code debugging. The device is based on a 
STM32H7 Arm Cortex-M7 MCU and comes with a free-of-charge IDE, GNU C/C++ compiler, 
and programming examples. 

 

2.1

 

Features 

 

10/100 Ethernet port 

 

LIN channel 

 

RS-232 port 

 

2 CAN channels with CAN FD support 

 

USB 2.0  

 

Analogue input and digital output  

 

10 status LEDs 

 

4 DIP switches 

 

32-bit Arm Cortex-M7 MCU 

 

Firmware customizable in C/C++ 

 

Free-of-charge C language SDK 

 

Free-of-charge IDE and C/C++ compiler 

 

Firmware upload over USB, ETH or ICSP 

 

On-board 16 Kbit EEPROM 

 

Externally or USB-powered 

 

Table-top use or DIN-rail mount 

3

 

Technical Specification 

Communication and Peripherals 

Channels 

1 Fast Ethernet (10BASE-T / 100BASE-TX, IEEE 802.3u)  
2 CAN-HS (ISO 11898-2) with CAN FD support (ISO 11898-1:2015; 
CAN 2.0A/B, ISO CAN FD)  
1 LIN bus (supports both master and slave; ISO 17987; LIN 2.2a)  
1 USB 2.0 CDC (Virtual COM port) 1 RS-232 

Integration  

Communication protocol for accessing CAN-FD and LIN channels 
over Ethernet (TCP/IP) and USB (VCP) 

User-programming 

Free-of-charge IDE and GNU C/C++ compiler (STM32CubeIDE) 
Programming examples available 

Firmware update 

over Ethernet, USB, or ICSP (ST-LINK) 

Debugging 

ST-LINK SWD (a programming header required) 

 

 

Summary of Contents for MACH-ETH

Page 1: ...MACH ETH User Manual CHANGES Date Description Created By Review By 27 2 2023 First release PK MM...

Page 2: ...4 5 Inputs and Outputs 9 4 6 USB 9 4 7 Galvanic Isolation 9 5 Usage 10 5 1 Supplied firmware 10 5 2 HTTP interface 10 5 3 System Bootloader 11 5 4 Ethernet bootloader 11 5 5 How to enter Bootloader 1...

Page 3: ...Pin Assignment 8 Table 4 User DIP Switches 9 Table 5 Inputs and Outputs 9 Table 6 Ordering Numbers 20 List of Figures Figure 1 MACH ETH Interface 4 Figure 2 MACH ETH Block Diagram 4 Figure 3 MACH ETH...

Page 4: ...rking gateways and bus converters mach eth Figure 1 MACH ETH Interface 2 Introduction The MACH ETH is an automotive network interface that features one Fast Ethernet port two CAN FD channels a LIN cha...

Page 5: ...U C C compiler and programming examples 2 1 Features 10 100 Ethernet port LIN channel RS 232 port 2 CAN channels with CAN FD support USB 2 0 Analogue input and digital output 10 status LEDs 4 DIP swit...

Page 6: ...ector 1 Power LED MCU STM32H7 1 MB Flash 564 KB RAM Transceivers CAN FD MCP2562FD LIN MCP2003B Ethernet KSZ8041 I O 1 Analogue input 0 5 V 1 Digital output 5 V push pull 0 5 A PWM capable Mechanical C...

Page 7: ...s Figure 4 Device Overview 4 2 Power The MACH ETH can be over microUSB X4 or externally via a DSUB connector X5 or a terminal block X3 All Ground signals are connected Note In order to use the LIN cha...

Page 8: ...State Description Off Channel stopped Green On Channel started Green Blinking Activity on TX or RX Red Blinking Slave timeout checksum error bus collision other LIN error Table 3 LIN Channel LED Desc...

Page 9: ...e inputs and one digital outputs PWM capable Signal Direction Function Range Note AI1 Input Analogue Digital Input 0 5 V DO1 Output Push pull Digital Output 5 V max 0 5 A PWM capable Table 7 Inputs an...

Page 10: ...ich allows communication with buses The Ethernet bootloader file must be flashed into the device before MachEth bootloader bin When the MachEth bootloader bin is flashed to the device through the syst...

Page 11: ...bootloader whilst USB is connected the device can then be flashed over USB only If the user wants to flash the device over RS 232 he has to either power the device over external power pins see Option...

Page 12: ...ader An example how is bootloader call taken from source code example Request going to the bootloader and do not do anything else another task will manage this BootloaderRequest pRxPkt Data 0 0 1 2 Ca...

Page 13: ...et cable Short the eth boot pads together a pair of tweezers can be used The device will enter the Ethernet bootloader Release the boot pads Firmware can be flashed as described in 5 4 Close the enclo...

Page 14: ...Programmer The STM32CubeProgrammer application can be used for flashing firmware over the system bootloader The application is available from 3 Steps for uploading a firmware 1 Open STM32CubeProgramme...

Page 15: ...nd Serial view window this is possible only when debugging with connected ST LINK 7 In order to flash a new firmware open an elf file by Open file button and press Download button A hex file can be us...

Page 16: ...igure 10 J5 ST LINK SWD Connection and Pinout An ST LINK v2 or v3 debugger and a TagConnect TC2030 NL header 4 is needed p n TC2030 CTX NL STDC14 Please make sure SWD Interface is selected in STM32Cub...

Page 17: ...TH THIS DEVICE YOU MAY POTENTIALLY CAUSE A CHANGE IN THE OPERATION OF THE SYSTEM MODULE DEVICE CIRCUIT OR OUTPUT TURN ON OR ACTIVATE A MODULE DEVICE CIRCUIT OUTPUT OR FUNCTION TURN OFF OR DEACTIVATE A...

Page 18: ...MACH ETH User Manual MACH SYSTEMS s r o www machsystems cz Page 18 of 20 info machsystems cz 6 3 Declaration of Conformity...

Page 19: ...registered trademark of Arm Limited or its subsidiaries in the US and or elsewhere Kvaser is a registered trademark of Kvaser AB in Sweden and other countries 7 References 1 MACH ETH Communication Pro...

Page 20: ...ETH device DIN BRACKET UNI A universal bracket for mounting any enclosure on a DIN rail MACH ETH NET SDK NET C SDK API DLL for accessing CAN FD and LIN channels over Ethernet TCP IP and USB VCP Table...

Reviews: