background image

MACH ETH - User Manual 

 

 

 

 

MACH SYSTEMS s.r.o.

 

www.machsystems.cz

  

Page 

12

 of 

20

 

 

[email protected]

  

 

 

 

Figure 9 Ethernet bootloader 

 

5.5

 

How to enter Bootloader 

There are four ways to enter the bootloader: 

A.

 

Programmatically from application 

The user can call 

jumpToBootloader

() function whenever he wants to enter the 

system bootloader. Do not to call the function directly from an interrupt routine. 
It is suggested to enable at least one way to programmatically enter the system 
bootloader. In the example application, there are two bootloaders -> two 
bootloaders addresses. One for the system bootloader second for Ethernet 
bootloader. 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; 
/* Can not wait infinitely here, as the request is 
managed by another task and as this function can be 
called from interrupt, the task would never 
be scheduled! */ 
 

In the other task in infinite loop: 

if (BootloaderRequest == 1) 

jumpToBootloader(SYSTEM_BOOT_ADDR); 

else if (BootloaderRequest == 2) 

jumpToBootloader(HTTP_BOOT_ADDR); 

 

B.

 

By hardware 

To enter the bootloader open the enclosure to access the boot-enable pads located 
on the top layer of the PCB. There are two pads one for the system bootloader 
second for the Ethernet bootloader. The steps for system bootloader:

 

 

Disconnect the USB and the external power supply 

 

Open the enclosure 

Содержание MACH-ETH

Страница 1: ...MACH ETH User Manual CHANGES Date Description Created By Review By 27 2 2023 First release PK MM...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: