Hardware requirements
Micro USB cable
MCIMX7ULP-EVK board
J-Link Debug Probe
5V power supply
Personal Computer
Board settings
No special settings are required.
Please note this application can’t support running with Linux BSP!
Prepare the Demo
Connect 5V power supply and J-Link Debug Probe to the board, switch SW1 to power on the board.
Connect a micro USB cable between the host PC and the J6 USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the example.
Running the demo
When the example runs successfully, you can see the similar information from the terminal as below.
LPI2C example -- Read Accelerometer Value
Found an FXOS8700 on board , the device address is 0x1e .
The accel values:
status_reg = 0xff , x = 101 , y = 48 , z = 2123
status_reg = 0xff , x = 101 , y = 45 , z = 2123
status_reg = 0xff , x = 101 , y = 48 , z = 2129
status_reg = 0xff , x = 102 , y = 50 , z = 2120
status_reg = 0xff , x = 99 , y = 50 , z = 2123
status_reg = 0xff , x = 99 , y = 47 , z = 2127
status_reg = 0xff , x = 99 , y = 49 , z = 2133
status_reg = 0xff , x = 99 , y = 48 , z = 2128
status_reg = 0xff , x = 101 , y = 46 , z = 2129
status_reg = 0xff , x = 100 , y = 47 , z = 2111
End of LPI2C example .