How to enalbe BDM mode on s12zvh128 chip CW 10.6

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

How to enalbe BDM mode on s12zvh128 chip CW 10.6

559 Views
Fan_xy
Contributor III

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 ?

 

22286_22286.pngpastedImage_0.png

 

Thank !

Waiting the answer online !

Labels (1)
0 Kudos
1 Reply

327 Views
kef2
Senior Contributor IV

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.

0 Kudos