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.