LPC1343 I2C example from LPCOpen, how to use?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC1343 I2C example from LPCOpen, how to use?

960件の閲覧回数
nxp87999
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?

ラベル(4)
0 件の賞賛
返信
1 返信

737件の閲覧回数
Alexis_A
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 件の賞賛
返信