MACH SYSTEMS CANFD-LIN-GW User Manual Download Page 5

CAN FD LIN Gateway - User Manual 

 

 

 

 

MACH SYSTEMS s.r.o.

 

www.machsystems.cz

  

Page 

5

 of 

18

 

 

[email protected]

  

 

 

The on-

board EEPROM memory can store user’s application parameters, and the microSD card 

slot enables the user to load or save large data sets for simulations and data-logging purposes. 

The four digital outputs (PWM capable) and the two analogue/digital inputs allow for both input 

and output triggering. The inputs can read 0-5 V analogue signals, and the outputs offer various output 
stages (push-pull, HSD, LSD) with currents up to 1.5 A enabling to easily control relays, valves, and 
other peripherals. 

2.1

 

Features 

 

Two high-speed CAN channels with CAN FD support 

 

LIN channel 

 

RS-232 port 

 

MicroSD card slot 

 

4 digital outputs 

 

2 analogue/digital inputs 

 

4 status LEDs 

 

32-bit Arm Cortex-M4 MCU 

 

Freely programmable in C/C++ language 

 

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

 

Programming examples available 

 

Firmware upload over USB, CAN, RS-232 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 

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 RS-232 
1 Virtual COM port (USB 2.0 CDC) 

Inputs 

2 Analogue/digital inputs (0-5 V) 

Outputs 

4 Digital outputs (PWM capable) 
DO1: HSD (5 V, max. 0.5 A) 
DO2, DO3: push-pull (5 V, max. 0.5 A) 
DO4: LSD (max. 40 V, 1.5 A) 

Programming 

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

Firmware update 

over USB, CAN, RS-232, or ICSP (ST-LINK) 

Debugging 

ST-LINK SWD (a programming header needed) 

Non-volatile memory 

Internal 16 Kbit EEPROM 
External microSD card slot (a card is not part of delivery) 

LEDs 

3 Dual-color LED 
1 Power LED 

 

 

Summary of Contents for CANFD-LIN-GW

Page 1: ...CAN FD LIN Gateway User Manual CHANGES Date Description Created By Review By 25 1 2021 Initial Release VB KH MM MM ...

Page 2: ...8 4 3 2 Switches 8 4 4 CAN Bus Termination 9 4 5 Inputs and Outputs 9 4 6 USB 9 4 7 Galvanic Isolation 9 5 Usage 10 5 1 Example Project 10 5 2 System Bootloader 10 5 2 1 Bootloader Mode 10 5 2 2 Firmware Download 11 5 3 In Circuit Serial Programming 13 6 Legal Information 15 6 1 Usage Warning 15 6 2 Disposal and Recycling Information 15 6 3 Declaration of Conformity 16 6 4 Patents Copyrights and T...

Page 3: ...Table 3 Connector 2 Pin Assignment 8 Table 4 Switches 8 Table 5 Inputs and Outputs 9 Table 5 Ordering Numbers 18 List of Figures Figure 1 CAN FD LIN Gateway 4 Figure 2 Block Diagram 4 Figure 3 Product Photos 6 Figure 4 Device Overview 7 Figure 5 Power Options 7 Figure 7 CAN Bus Termination 9 Figure 7 J5 ST LINK SWD Connection and Pinout 14 Figure 8 STM32CubeIDE Debugger Configuration 14 ...

Page 4: ...l and a RS 232 port The interface also offers a microSD card slot and multiple digital analogue inputs and outputs which makes it suitable for a broad range of use cases such as protocol conversion network bridging data logging rest bus simulation and external peripheral control and monitoring Firmware can be developed in C C and can be transferred into the device over USB CAN RS 232 or a standard...

Page 5: ...tex M4 MCU Freely programmable in C C language Free of charge IDE and C C compiler Programming examples available Firmware upload over USB CAN RS 232 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 2 CAN HS ISO 11898 2 with CAN FD support ISO 11898 1 2015 CAN 2 0A B ISO CAN FD 1 LIN bus suppo...

Page 6: ...4 is being driven MCU STM32G483 Arm 32 bit Cortex M4 with DSP and FPU 170 MHz 512 KB Flash 128 KB SRAM Transceivers CAN FD MCP2562FD LIN MCP2003B Mechanical Connectors 1 D SUB9M 1 D SUB9F 1 MicroSD slot 1 Micro USB Buttons and switches 2 DIP switches 1 Tactile switch Dimensions L x W x H 108 x 54 x 30 mm Weight 85 g Operating temperature 20 to 70 C Protection IP20 Placement Table adhesive pads inc...

Page 7: ...es MicroSD card slot and a reset button Figure 4 Device Overview 4 2 Power The gateway can be powered externally via a DSUB connector or via a micro USB connector LIN bus needs the external power All Ground signals are connected When the external power is connected the power from USB gets internally disconnected by a MOSFET transistor Thus no power will be drawn from USB Figure 5 Power Options ...

Page 8: ...nment CN2 DSUB9F Pin Name Note Front view 1 DO3 5V push pull 2 CAN2_L 3 Gnd 4 RS 232 RxD In 5 Gnd 6 DO4 LSD 7 CAN2_H 8 RS 232 TxD Out 9 AI2 DI2 0 5 V Table 3 Connector 2 Pin Assignment 4 3 2 Switches DIP1 DIP2 and SW1 can be used in a user s application The SW1 button can be pressed by tweezers or a pencil As of HW version 1 4 SW1 can be used to enter the system bootloader see 5 2 HW version prior...

Page 9: ...t 0 5 V DO1 Output HSD Output 5 V max 0 5 A PWM capable DO2 Output Push pull Digital Output 5 V max 0 5 A PWM capable DO3 Output Push pull Digital Output 5 V max 0 5 A PWM capable DO4 Output LSD Output max 40 V 1 5 A PWM capable Table 5 Inputs and Outputs A load connected to a digital output pins DO1 DO3 may draw significant current In case digital outputs are used in a user application it is stro...

Page 10: ...ammatically 5 2 System Bootloader The STM32G4 MCU contains a system bootloader which is pre programmed in ROM during manufacture The system bootloader supports USB and RS 232 it does not support flashing over CAN bus If the possibility to upload a firmware over CAN bus is needed the OpenBLT bootloader described in 3 can be used It should be noted that when the device enters the system bootloader w...

Page 11: ...e enclosure For hardware versions as of v1 4 SW1 switch can be used to enter the system bootloader on power up Disconnect the USB and the external power supply Press and hold SW1 Connect the power supply either USB or external The device will enter the system bootloader Release SW1 Firmware can be flashed as described in 5 2 2 5 2 2 Firmware Download The STM32CubeProgrammer application can be used...

Page 12: ...vely 5 Further the steps are very similar for all the ports In the STM32CubeProgrammer a Click on the refresh arrows button to see available ports b Select the interface USB or UART c Select the correct port d You do not have to change the UART settings provided that the baud rate is lower or equal to 115200 Procedure of connecting to the USB is almost identical e Click connect You will see screen...

Page 13: ...cted 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 used also but the Address of 0x8000000 has to be chosen manually If you want to exit the bootloader you must restart the device 5 3 In Circuit Serial Programming The ST s ST LINK SWD connection can be used for both programming and debugging the code directly on the devic...

Page 14: ...ms cz Figure 7 J5 ST LINK SWD Connection and Pinout An ST LINK v2 or v3 debugger and a TagConnect TC2030 NL header 1 is needed p n TC2030 CTX NL STDC14 Please make sure SWD Interface is selected in STM32CubeIDE project configuration as shown in Figure 8 Figure 8 STM32CubeIDE Debugger Configuration ...

Page 15: ...ENT WITH 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 MODULE DEVICE CIRCUIT OUTPUT OR FUNCTION INHIBIT TURN OFF OR DEACTIVATE NORMAL OPERATION MODIFY THE BEHAVIOR OF A DISTRIBUTED PRODUCT ACTIVATE AN UNINTENDED OPERATION PLACE THE SYSTEM MODULE DE...

Page 16: ...CAN FD LIN Gateway User Manual MACH SYSTEMS s r o www machsystems cz Page 16 of 18 info machsystems cz 6 3 Declaration of Conformity ...

Page 17: ...rademark 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 TagConnect TC2030 IDC NL Online Available https www tag connect com product tc2030 ctx nl stdc14 for use with stm32 processors with stlink v3 2 CAN FD LIN Gateway Github Repository Online Available https github com mach systems CANFD LIN ...

Page 18: ...ystems cz 8 Ordering Information Product Number Description CANFD LIN GW CAN FD LIN Gateway DIN CLIP Clip for mounting on a DIN rail Table 6 Ordering Numbers 9 Contact MACH SYSTEMS s r o www machsystems cz info machsystems cz Czech Republic Company registration 29413893 EU VAT number CZ29413893 ...

Reviews: