flextimer register write only works when single stepping

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

flextimer register write only works when single stepping

689 Views
momo12
Contributor III

Hi

In my code I wrote this:

    ((ftmBase)->MOD) = 0x1a;
    ((ftmBase)->CONTROLS[7].CnV) = 0x15;

When I single step the code in debugger , the register values are updated, but not when running  the code without a breakpoint.

Am I missing some thing?

0 Kudos
1 Reply

585 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,
These registers are buffered. To update the registers with their buffer values, you need to trigger synchronization.
It was discussed in https://community.nxp.com/message/1012624 

Regards,

Daniel

0 Kudos