EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Field Reprogramming of HCS12

Started by Pat Fitzpatrick February 26, 2003
Hi All,

We are soon going to send some HCS12 modules (9S12D64 and 9S12H256 based) out
for field testing. It's easy to e-mail new code to the test sites, but we
need a simple method of reprogramming the modules.

We effectively have the six pin BDM connector available.

Can anyone recommend hardware and software to provide an economical method of
downloading new code to the modules in the field? We'll have modules at four
or five different sites and I'm not about to send a laptop with CodeWorrier
to every site!!

All recommendations appreciated,

Pat



Pat:

We here at P&E have both hardware and software available that may suit
your needs.

Our hardware interface (from PC parallel port to BDM connector) that you
would need is either the Cable12, or the BDM Multilink. The BDM
Multilink is our "souped up" cable12-- it works with targets with bus
frequencies greater than 8 MHz, as well as low voltage targets. We will
also have a USB version of our cable available in mid-May.

The software you'd want to use for field reprogramming is cprog12z. This
programmer is executable from a batch file, so field techs can erase,
reprogram, etc with the click of a button. We have quantity pricing
available if you have multiple field techs who would need to use the
software.

If you have any questions, you can e-mail me off-list or visit our
website, http://www.pemicro.com.

Cheers,
Mark
P&E

Pat Fitzpatrick wrote:

> Hi All,
>
> We are soon going to send some HCS12 modules (9S12D64 and 9S12H256
> based) out
> for field testing. It's easy to e-mail new code to the test sites, but we
> need a simple method of reprogramming the modules.
>
> We effectively have the six pin BDM connector available.
>
> Can anyone recommend hardware and software to provide an economical
> method of
> downloading new code to the modules in the field? We'll have modules
> at four
> or five different sites and I'm not about to send a laptop with
> CodeWorrier
> to every site!!
>
> All recommendations appreciated,
>
> Pat >
> <http://www.gotomypc.com/u/tr/yh/cpm/grp/300_Cquo_1/g22lp?Target=mm/g22lp.tmpl" target="_blank" rel="nofollow">http://rd.yahoo.com/M$6920.2960106.4328965.2848452/D=egroupweb/S06554205:HM/A64858/R=0/*http://www.gotomypc.com/u/tr/yh/cpm/grp/300_Cquo_1/g22lp?Target=mm/g22lp.tmpl >
> -------------------- >
> ">http://docs.yahoo.com/info/terms/>.


--
________________________________
Mark L. Cukier, Design Engineer
P&E Microcomputer Systems
710 Commonwealth Avenue
Boston, MA 02215
______________________________
e-mail:
phone : (617) 353-9206 x19
fax : (617) 353-9205
______________________________

visit us on the web at: http://www.pemicro.com



At 03:31 PM 2/26/2003 -0600, you wrote:

>We are soon going to send some HCS12 modules (9S12D64 and 9S12H256 based) out
>for field testing. It's easy to e-mail new code to the test sites, but we
>need a simple method of reprogramming the modules.
>
>We effectively have the six pin BDM connector available.
>
>Can anyone recommend hardware and software to provide an economical method of
>downloading new code to the modules in the field?

Well, if all you have is the BDM, then you are pretty much stuck with at
least some little BDM interface module (aka P&E or similar).

We just finished up a project using the D60A and we just stuck a boot
loader into one of the protected sectors of Flash. That allows them to
load over a simple serial port, from a Visual Basic program that runs on
any normal host PC under Windows.

Seems very reliable, and needs no hardware (other than the serial
cable). Sure not happy with some design features of the D60A bank
switching and mode selection, nor with our P&E debugger not working if we
do, but we got around them.

jmk
-----------
James M. Knox
TriSoft ph 512-385-0316
1109-A Shady Lane fax 512-366-4331
Austin, Tx 78721
-----------


Pat Fitzpatrick wrote:

[field programming 9S12D64 and 9S12H256]

> We effectively have the six pin BDM connector available.
>
> Can anyone recommend hardware and software to provide an economical
> method of downloading new code to the modules in the field? We'll have

Cost effective BDM adapters are Elektronikladen ComPOD12 with
StarProg software or Kevin Ross'BDM12 but the latter doesn't seem to
support modern HC12/S12 derivatives.

They use serial communication to the host and therefore have little
risk that they won't work with your laptops. Look at the list
archives about parallel port problems (especially with laptops).

Like James M. Knox I wouldn't use BDM for firmware upgrade but serial
communications. A good bootloader understands Motorola Hex or
Fastload and doesn't even need handshake or delay times. Simply use
_any_ terminal program and send the data to your uC.

You only need some level translator and/or detection of "bootload
mode" if the SCI is used for other communication.

Oliver
--
Oliver Betz, Muenchen


I'm planning to adapt and use the serial boot see AN2153. I have a push
button on my draft circuit to initiate the bootloader.

In another (PowerPC) project I have the software update is initiated when
the application is otherwise idle and a unique sequence of characters
received on the serial port this sets a non-volatile update flag. The
project is spilt in to two parts bootloader and application. At power on the
bootstrap starts and updates the application if the flag is set or start the
application normally. There is a bit more to the story but that is basically
it. Andrew Lohmann AIIE
Design Engineer

Bellingham + Stanley Ltd.
Longfield Road, Tunbridge Wells, Kent, TN2 3EY, England.
Tel: +44 (0) 1892 500400
Fax: +44 (0) 1892 543115
Website: www.bs-ltd.com ----- Original Message -----
From: Pat Fitzpatrick <>
To: <>
Sent: Wednesday, February 26, 2003 9:31 PM
Subject: [68HC12] Field Reprogramming of HCS12 > Hi All,
>
> We are soon going to send some HCS12 modules (9S12D64 and 9S12H256 based)
out
> for field testing. It's easy to e-mail new code to the test sites, but we
> need a simple method of reprogramming the modules.
>
> We effectively have the six pin BDM connector available.
>
> Can anyone recommend hardware and software to provide an economical method
of
> downloading new code to the modules in the field? We'll have modules at
four
> or five different sites and I'm not about to send a laptop with
CodeWorrier
> to every site!!
>
> All recommendations appreciated,
>
> Pat >
> -------------------- >
> ">http://docs.yahoo.com/info/terms/ >
>
> --- Email Disclaimer ---
>
> Internet communications are not secure and therefore Bellingham + Stanley
Ltd does
> not accept legal responsibility for the contents of this message. Any
views
> or opinions presented are solely those of the author and do not
necessarily
> represent those of Bellingham + Stanley Ltd unless otherwise specifically
stated.
> If this message is received by anyone other than the addressee, please
> notify the sender and then delete the message and any attachments from
your
> computer.
>
> --- End ---
>


--- Email Disclaimer ---

Internet communications are not secure and therefore Bellingham + Stanley Ltd does
not accept legal responsibility for the contents of this message. Any views
or opinions presented are solely those of the author and do not necessarily
represent those of Bellingham + Stanley Ltd unless otherwise specifically stated.
If this message is received by anyone other than the addressee, please
notify the sender and then delete the message and any attachments from your
computer.

--- End ---


Does it work with 24Mhz targets? I can not use your debugger if my target runs at 24Mhz.

B.K.

Bob Kohan
Life Fitness
10601 W. Belmont Ave
Franklin Park, Ill 60131
Ph. 847-288-3450

Fax 847-288-5514 (3 pages max) >>> 02/26/03 03:39PM >>>
Pat:

We here at P&E have both hardware and software available that may suit
your needs.

Our hardware interface (from PC parallel port to BDM connector) that you
would need is either the Cable12, or the BDM Multilink. The BDM
Multilink is our "souped up" cable12-- it works with targets with bus
frequencies greater than 8 MHz, as well as low voltage targets. We will
also have a USB version of our cable available in mid-May.

The software you'd want to use for field reprogramming is cprog12z. This
programmer is executable from a batch file, so field techs can erase,
reprogram, etc with the click of a button. We have quantity pricing
available if you have multiple field techs who would need to use the
software.

If you have any questions, you can e-mail me off-list or visit our
website, http://www.pemicro.com.

Cheers,
Mark
P&E

Pat Fitzpatrick wrote:

> Hi All,
>
> We are soon going to send some HCS12 modules (9S12D64 and 9S12H256
> based) out
> for field testing. It's easy to e-mail new code to the test sites, but we
> need a simple method of reprogramming the modules.
>
> We effectively have the six pin BDM connector available.
>
> Can anyone recommend hardware and software to provide an economical
> method of
> downloading new code to the modules in the field? We'll have modules
> at four
> or five different sites and I'm not about to send a laptop with
> CodeWorrier
> to every site!!
>
> All recommendations appreciated,
>
> Pat >
> <http://www.gotomypc.com/u/tr/yh/cpm/grp/300_Cquo_1/g22lp?Target=mm/g22lp.tmpl" target="_blank" rel="nofollow">http://rd.yahoo.com/M$6920.2960106.4328965.2848452/D=egroupweb/S06554205:HM/A64858/R=0/*http://www.gotomypc.com/u/tr/yh/cpm/grp/300_Cquo_1/g22lp?Target=mm/g22lp.tmpl >
> -------------------- >
> ">http://docs.yahoo.com/info/terms/>.


--
________________________________
Mark L. Cukier, Design Engineer
P&E Microcomputer Systems
710 Commonwealth Avenue
Boston, MA 02215
______________________________
e-mail:
phone : (617) 353-9206 x19
fax : (617) 353-9205
______________________________

visit us on the web at: http://www.pemicro.com --------------------
">http://docs.yahoo.com/info/terms/ *************************************************************************
IMPORTANT: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message. Please
advise immediately if you or your employer do not consent to Internet
email for messages of this kind. Opinions, conclusions and other
information contained in this e-mail message that do not relate to the
official business of Life Fitness shall be understood as neither given
nor endorsed by it.
*************************************************************************



Memfault Beyond the Launch