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
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.
Thanks, Frank,
But as you known, I2C1/Flexcom1 works well. Hard to find the root reason.
BRs,
Ray
> 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.