Hardware requirements
Mini/Micro USB cable
LPCXpresso55s69 boards
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
=============== Note: MCUXpresso IDE project default debug console is semihost
Connect a micro USB cable between the PC host and the LPC-Link USB port (P6) on the board.
Open a serial terminal on PC for JLink serial device with these 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 demo.
Running the demo
When the example runs successfully, you can see the similar information from the terminal as below.
I2C example – Read Accelerometer Value Found an MMA8652 on board , the device address is 0x1d . The accel values: status_reg = 0xff , x = -192 , y = 188 , z = 2152 status_reg = 0xff , x = -168 , y = 192 , z = 2160 status_reg = 0xff , x = -180 , y = 152 , z = 2144 status_reg = 0xff , x = -200 , y = 132 , z = 2064 status_reg = 0xff , x = -192 , y = 108 , z = 2196 status_reg = 0xff , x = -232 , y = 136 , z = 2092 status_reg = 0xff , x = -260 , y = 192 , z = 1992 status_reg = 0xff , x = -240 , y = 304 , z = 1968 status_reg = 0xff , x = -208 , y = 336 , z = 1976 status_reg = 0xff , x = -208 , y = 296 , z = 1900
End of I2C example .