LPC1343 I2C example from LPCOpen, how to use?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC1343 I2C example from LPCOpen, how to use?

1,329 次查看
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 回复

1,106 次查看
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 项奖励
回复