BDM debugging (step over) speed.

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

BDM debugging (step over) speed.

839 Views
Eric_t
Contributor III

Hi!

Am using codewarrior 5.1/5.2 and mc9s12xeq512 controller.
The borad has a crystal of 16MHz and PLL of 50MHz.
I have a problem with the step over speed.
It takes from few milisecond to 4 seconds.
Most of the times the step over speed is about 1.5 second.
Of Course the complexity of c line have effect on step over speed, but with 50MHz bus clock, the 1.5 seconds and the 4 seconds of step over is way to long (even PIC16Fxxx is faster).
When I disable the PLL, the clock bus is only 8MHz, but there is no noticable change of the debugging speed.
This tells me that BDM uses the crystal oscillator and not PLL.

The CLKSW bit of BDMSTS, controls which clock the BDM operates with, and it is only writable from a hardware BDM command.
As far as understand, if PLLSEL=1 and CLKSW=1, the BDM Clock Source, dependent on the PLL.

Does anyone know how can I set CLKSW, so the BDM will work with the PLL.

Thank you.

0 Kudos
2 Replies

700 Views
Eric_t
Contributor III

I forgot to mention that I used pemicro multilink universal FX for debugging.

Thank you  

0 Kudos

700 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

There is an option to set the CLKSW bit in the CW.

pastedImage_1.png 

pastedImage_2.png

pastedImage_3.png

Regards,

Daniel

0 Kudos