LPC1343 I2C example from LPCOpen, how to use?

cancel
Showing results for 
Search instead for 
Did you mean: 

LPC1343 I2C example from LPCOpen, how to use?

249 Views
NXP Employee
NXP Employee

Related to the issue I reported few days ago (https://community.nxp.com/thread/494357 ), I'm now trying to run the i2c example code as-it-is

I imported the project in MCUXpresso from the LPCOpen archive for LPC1343, compiled it and flashed it... nothing happends... after launching i see no activity on SCL/SDA pins, I get nothing on the UART output. 

What are the required steps to run this demo?

Labels (4)
0 Kudos
1 Reply

27 Views
NXP TechSupport
NXP TechSupport

Hi Dario,

To enable the UART messages you would need to enable first the debug mode.

In the proyect properties -> C/C++ Build-> Settings ->Preprocessor. Add a new define that says :"DEBUG_ENABLE" with this you will enable the UART commands. Do the same in the lpc_board_nxp_lpcxpresso_1347 project.

pastedImage_1.png

If you want to see it in a terminal console in your PC, connect an USB to serial in the P0_19 and P0_18. With this you will see the DEBUGSTR in the console.

I hope this can hep you.

Best Regards,

Alexis Andalon

0 Kudos