Debug & Programming

Started by Andrew Lohmann August 6, 2007
Hi,
I have been pursuing the same or similar problems for a number of years
with programming HCS12Dx.

We have a few parallel Multilink P&E BDM interfaces and a USB Multilink.
We also have a Compod12. The Compod12 programs any HCS12 reliably but
the Multilink only programs HCS12E reliably and HCS12D's for a limited
period of time. After that the only the Compod12 will program HCS12D's
that can not be programmed with the Multilink. I find the USB Multilink
more reliable, and I use it with Cosmic Zap. The problem is that Zap
reports target speed can not be found, but P&E Unsecure connects fine
and of cause reports that the device is already unsecured.

Cosmic did suggest that I check the RAM base address setting in Zap but
it is fine.
I would appreciate your suggestions?
--
Andrew Lohmann AMIIE
Design Engineer

Bellingham + Stanley Ltd.
Longfield Road
Tunbridge Wells Kent,
TN2 3EY
United Kingdom

General Contact Details:
Phone: +44 (0) 1892 500400
Fax: +44 (0) 1892 543115

General E-Mail: s...@bellinghamandstanley.co.uk
Web: www.bellinghamandstanley.com

Personal Contact Details: Direct Dial: +44 (0) 1892 500426
-----------------------------Disclaimer-----------------------------

This communication contains information which is confidential and may also be privileged. It is for the exclusive use of the addressee. If you are not the addressee please note that any distribution, reproduction, copying, publication or use of this communication or the information is prohibited. If you have received this communication in error, please contact us immediately and also delete the communication from your computer. We accept no liability for any loss or damage suffered by any person arising from use of this e-mail.

Bellingham + Stanley Ltd., Longfield Road, Tunbridge Wells, Kent, TN2 3EY. U.K. Registered No. 140250 England. Registered Office.

This message has been scanned for viruses by Viatel MailControl, a service from Viatel.

-----------------------------Disclaimer-----------------------------
Andrew,

I don't know much about Compod12, but I'm sure Multilink doesn't program
parts. Multilink is just an interface between PC and your target and I
believe that it doesn't know how to program all the variety of HC12s, S12s
and S08s. Debugger (ZAP in your case) must be what measures your oscilator
frequency and sets correctly the most important thing - FCLKDIV register. I
don't know how this scan for osc. freq. is really done and if it's reliable
or not. But bad things can happen to your chip if this scan for frequency is
not reliable. The question is what, Multilink or ZAP detects your board
frequency. Is it possible to disable scan for frequency and specify it in
ZAP? Maybe try NoICE +Multilink + S12D that doesn't work in ZAP?

No wonder Unsecure12 always works. Unsecure12 asks and doesn't guess
oscilator frequency.

Edward
Andrew Lohmann wrote:

> Hi,
> I have been pursuing the same or similar problems for a number of years
> with programming HCS12Dx.
>
> We have a few parallel Multilink P&E BDM interfaces and a USB Multilink.
> We also have a Compod12. The Compod12 programs any HCS12 reliably but
> the Multilink only programs HCS12E reliably and HCS12D's for a limited
> period of time. After that the only the Compod12 will program HCS12D's
> that can not be programmed with the Multilink. I find the USB Multilink
> more reliable, and I use it with Cosmic Zap. The problem is that Zap
> reports target speed can not be found, but P&E Unsecure connects fine
> and of cause reports that the device is already unsecured.
>
> Cosmic did suggest that I check the RAM base address setting in Zap but
> it is fine.
> I would appreciate your suggestions?
> --
> Andrew Lohmann AMIIE
> Design Engineer
>
> Bellingham + Stanley Ltd.
> Longfield Road
> Tunbridge Wells Kent,
> TN2 3EY
> United Kingdom
>
> General Contact Details:
> Phone: +44 (0) 1892 500400
> Fax: +44 (0) 1892 543115
>
> General E-Mail: s...@bellinghamandstanley.co.uk
> Web: www.bellinghamandstanley.com
>
> Personal Contact Details: Direct Dial: +44 (0) 1892 500426
> -----------------------------Disclaimer-----------------------------
>
> This communication contains information which is confidential and may also
> be privileged. It is for the exclusive use of the addressee. If you are
> not the addressee please note that any distribution, reproduction,
> copying, publication or use of this communication or the information is
> prohibited. If you have received this communication in error, please
> contact us immediately and also delete the communication from your
> computer. We accept no liability for any loss or damage suffered by any
> person arising from use of this e-mail.
>
> Bellingham + Stanley Ltd., Longfield Road, Tunbridge Wells, Kent, TN2 3EY.
> U.K. Registered No. 140250 England. Registered Office.
>
> This message has been scanned for viruses by Viatel MailControl, a service
> from Viatel.
>
> -----------------------------Disclaimer-----------------------------
>
> Yahoo! Groups Links
>
Thanks Edward,
I can fix the two clock frequency's, and that is how I run Zap.
Strangely also using ComPod12 on a HCS12D target also makes it unusable
by Zap although P&E's unsecure is fine.
Maybe I should try NoICE.
Andrew Lohmann AMIIE
Design Engineer

Bellingham + Stanley Ltd.
Edward Karpicz wrote:
>
> Andrew,
>
> I don't know much about Compod12, but I'm sure Multilink doesn't program
> parts. Multilink is just an interface between PC and your target and I
> believe that it doesn't know how to program all the variety of HC12s,
> S12s
> and S08s. Debugger (ZAP in your case) must be what measures your
> oscilator
> frequency and sets correctly the most important thing - FCLKDIV
> register. I
> don't know how this scan for osc. freq. is really done and if it's
> reliable
> or not. But bad things can happen to your chip if this scan for
> frequency is
> not reliable. The question is what, Multilink or ZAP detects your board
> frequency. Is it possible to disable scan for frequency and specify it in
> ZAP? Maybe try NoICE +Multilink + S12D that doesn't work in ZAP?
>
> No wonder Unsecure12 always works. Unsecure12 asks and doesn't guess
> oscilator frequency.
>
> Edward
>
> Andrew Lohmann wrote:
>
> > Hi,
> >
> >
> > I have been pursuing the same or similar problems for a number of years
> > with programming HCS12Dx.
> >
> > We have a few parallel Multilink P&E BDM interfaces and a USB Multilink.
> > We also have a Compod12. The Compod12 programs any HCS12 reliably but
> > the Multilink only programs HCS12E reliably and HCS12D's for a limited
> > period of time. After that the only the Compod12 will program HCS12D's
> > that can not be programmed with the Multilink. I find the USB Multilink
> > more reliable, and I use it with Cosmic Zap. The problem is that Zap
> > reports target speed can not be found, but P&E Unsecure connects fine
> > and of cause reports that the device is already unsecured.
> >
> > Cosmic did suggest that I check the RAM base address setting in Zap but
> > it is fine.
> >
> >
> > I would appreciate your suggestions?
> > --
> > Andrew Lohmann AMIIE
> > Design Engineer
> >
> > Bellingham + Stanley Ltd.
> > Longfield Road
> > Tunbridge Wells Kent,
> > TN2 3EY
> > United Kingdom
> >
> > General Contact Details:
> > Phone: +44 (0) 1892 500400
> > Fax: +44 (0) 1892 543115
> >
> > General E-Mail: s...@bellinghamandstanley.co.uk
>
> > Web: www.bellinghamandstanley.com
> >
> > Personal Contact Details: Direct Dial: +44 (0) 1892 500426
> >
> >
> > -----------------------------Disclaimer-----------------------------
> >
> > This communication contains information which is confidential and
> may also
> > be privileged. It is for the exclusive use of the addressee. If you are
> > not the addressee please note that any distribution, reproduction,
> > copying, publication or use of this communication or the information is
> > prohibited. If you have received this communication in error, please
> > contact us immediately and also delete the communication from your
> > computer. We accept no liability for any loss or damage suffered by any
> > person arising from use of this e-mail.
> >
> > Bellingham + Stanley Ltd., Longfield Road, Tunbridge Wells, Kent,
> TN2 3EY.
> > U.K. Registered No. 140250 England. Registered Office.
> >
> > This message has been scanned for viruses by Viatel MailControl, a
> service
> > from Viatel.
> >
> > -----------------------------Disclaimer-----------------------------
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >