Hi,
Please find below the answer from our TPMS expert.
Regarding the fact that 20% of the sensors hang up and have their battery discharged after 3 days, I think that a possible cause is that there has not been a true POR after programming. When the FXTH is programmed via the BDM, it enters BACKGROUND debug mode, in which its behavior is different from the “normal” behavior. For example, STOP1 entry is replaced by a STOP4 entry, which impacts the application flow and power consumption.
To force the FXTH to restart in “normal” mode, a POR must be done after programming.
Regarding the watchdog configuration, some bits of the SIMOPT1 and SIMOPT2 are write-once only, so can be accessed only once for write operations. We thus recommend to write all fields with one write access only. For example:
/* Enable STOP mode, enable COP, select LFO as COP source */
SIMOPT1 = (SIMOPT1 | SIMOPT1_STOPE_MASK | SIMOPT1_COPE_MASK ) & (UINT8)(~((UINT8) (SIMOPT1_COPCLKS)));
/* Watchdog 2048ms timeout */
SIMOPT2_COPT = 7;
Please let us know if there are any further questions.
Best regards,
Tomas