LPC54606 Debug success while free run error

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

LPC54606 Debug success while free run error

712 次查看
ray_deng1
Contributor III

Dears,

    I am debugging LPC54606 Flexcomm1, Flexcomm2 for I2C. And it is debug success. It is can not write date to slaver while free run for I2C2(Flexcomm2), all built on SDK2.9,0 , can you help to advice?

 

BRs,

Ray

0 项奖励
回复
3 回复数

707 次查看
frank_m
Senior Contributor III

Check the I2C buses with a scope or a logic analyser. There are good one's with protocol analysers around, too.

Add instrumentation code, and check either via GPIO/scope or serial interface.

Your application might fail earlier then you think, perhaps clock issues or variable initialisations. Debuggers often do some RAM or register initialisation that you might implicitly rely on.

0 项奖励
回复

693 次查看
ray_deng1
Contributor III

Thanks, Frank,

But as you known, I2C1/Flexcom1 works well. Hard to find the root reason.

 

BRs,

Ray

0 项奖励
回复

684 次查看
frank_m
Senior Contributor III

> It is can not write date to slaver while free run for I2C2(Flexcomm2) ...

Than there must be a difference. Perhaps timing ? I would compare scope recordings under both conditions.

Is "free running" a release build ? Debug and release build settings usually differ, especially in debug and optimisation options. Not so well-written code is often breaks at aggressive optimisation levels.

0 项奖励
回复