LPC54606 Debug success while free run error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC54606 Debug success while free run error

797 Views
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 Kudos
Reply
3 Replies

792 Views
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 Kudos
Reply

778 Views
ray_deng1
Contributor III

Thanks, Frank,

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

 

BRs,

Ray

0 Kudos
Reply

769 Views
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 Kudos
Reply