AnsweredAssumed Answered

How does FXTH87 use BDM to debug in STOP mode?

Question asked by lison chen on Oct 23, 2018
Latest reply on Dec 13, 2018 by Lisette Paulina Lozano Gomez

Hello, I am using the FXTH87 chip for debugging. When STOP is entered into STOP1 mode, BDM is disconnected from FXTH87.


I see the  FXTH871X6 datasheet:

3.5.3 Active BDM Enabled in STOP Mode
Entry into the ACTIVE BACKGROUND DEBUG mode from RUN mode is enabled if the ENBDM bit in BDCSCR is set. The BDCSCR register is not memory mapped so it can only be accessed through the BDM interface by use of the BDM commands READ_STATUS and WRITE_CONTROL.


My question is how to use the commands READ_STATUS and WRITE_CONTROL to enable ENBDM?

I am using codewarrior10.7.