NXP i.MX8M User Manual

NXP Semiconductors Document identifier: IEC60730BIMX8MXEUG
User's Guide Rev. 0, 12/2020
i.MX8M Safety Example
NXP Semiconductors

Contents

Chapter 1 IEC60730B Safety library example user's guide...................................3
Chapter 2 Hardware settings................................................................................. 4
Chapter 3 File structure......................................................................................... 7
Chapter 4 Example application.............................................................................. 9
Chapter 5 Running example................................................................................ 14
Chapter 6 IEC60730B tests................................................................................. 15
i.MX8M Safety Example, Rev. 0, 12/2020
User's Guide 2 / 18
NXP Semiconductors
Chapter 1 IEC60730B Safety library example user's guide
For easier development of the IEC60730B application, the library also provides the example code. This example is distributed through the MCUXpresso SDK website. This example user's guide describes how to set the hardware correctly and how to use the example code with the IEC60730B Safety library.
The library user's guide is the main documentation for IEC60730B. It is also part this package and accessible at
www.nxp.com/IEC60730.
i.MX8M Safety Example, Rev. 0, 12/2020
User's Guide 3 / 18
NXP Semiconductors
Chapter 2 Hardware settings
This chapter describes how to set up the hardware of the evaulation board. The MCU peripherals' setup is described later on.
The IEC60730B library example for the I.MX8mx family supports the following development boards:
• EVKmimx8mm
• EVKmimx8mn
To run the IEC60730B example application, it is neccessary to make some hardware settings. For the default configuration of your development board, see the corresponding board's user manual at www.nxp.com.

2.1 EVK-MIMX8MM (Mini)

The hardware requirements are as follows:
• i.MX8M Mini development board (EVK-MIMX8MM)
• J-Link debug probe
• USB-C cable (12-V power supply)
• USB-C cable (download to ROM memory)
• Micro USB cable (debug print)
The hardware settings are as follows:
1. Connect the 12-V power supply (J302 USB port) and the J-Link debug probe to the board and switch SW101 to power on the board.
2. Connect a USB-C cable between the host PC and the J301 USB port (this port allows to download to the ROM memory).
3. If a debug print is needed, connect a micro USB cable between the host PC and the J901 USB port on the target board. Then open the serial terminal with the following settings:
• 115200 baud rate
• 8 data bits
• No parity
• One stop bit
• No flow control
4. Set the SW1101 switch to value "01110010" and SW1102 to value "00101010" to boot from the eMMC.
See www.nxp.com/imx8mminievk for more information.
i.MX8M Safety Example, Rev. 0, 12/2020
User's Guide 4 / 18
NXP Semiconductors
Figure 1. Hardware connection of EVK-MIMX8MM

2.2 EVK-MIMX8MN (Nano)

The hardware requirements are as follows:
Hardware settings
• i.MX8M Nano development board (EVK-MIMX8MN)
• J-Link debug probe
• USB-C cable (12-V power supply)
• USB-C cable (download to ROM memory)
• Micro USB cable (debug print)
The hardware settings are as follows:
1. Connect the 12-V power supply (J302 USB port) and the J-Link debug probe to the board and switch SW101 to power on the board.
2. Connect a USB-C cable between the host PC and the J301 USB port (this port allows downloading to the ROM memory).
3. If a debug print is needed, connect a micro USB cable between the host PC and the J901 USB port on the target board. Then open a serial terminal with the following settings:
• 115200 baud rate
• 8 data bits
• No parity
• One stop bit
• No flow control
4. Set switch SW1101 to "0100" to boot from the eMMC.
See www.nxp.com/ imx8mnanoevk for more information.
i.MX8M Safety Example, Rev. 0, 12/2020
User's Guide 5 / 18
NXP Semiconductors
Figure 2. Hardware connection of EVK-MIMX8MN
Hardware settings
i.MX8M Safety Example, Rev. 0, 12/2020
User's Guide 6 / 18
Loading...
+ 12 hidden pages