on CW 10.6 , s12zvh128 chip , how to enable BDM code .
In the reference manual , i found use BACKGROUND command ,while i can not found where to configure it on CW 10.6.
And please also tell me how to enable BDM on stop mode.
These command : WRITE_BDCCSR , BACKGROUND ... where i can found and how to use ?
Thank !
Waiting the answer online !
I'm not familiar with S12Z, but BDM needs clock to operate. In stop mode (not a pseudo stop mode) you have no clock and thus no BDM.
Regarding BACKGROUND and other BDM/BDC commands. Codewarrior driver for your USB<->BDM adapter decides which BDC command and when to send to MCU via BKGD pin. You can't ask CW to send specific BDC command. BDM enable (set ENBDC bit) is done immediately when you start debugger and attempt to connect to the target MCU.