EmbeddedRelated.com
Forums
Memfault Beyond the Launch

CAN-Loader for Reprogramming the MC9S12DG128B FLASH

Started by georgdetlef November 7, 2002
Hi developer -(friends..), Reprogramming specialists!
I am working heavily on CAN-Module with interfacing to 24V-I/O'S
and the MC9S12DG128B.
I want to Reprogramming the MC9S12DG128B FLASH Memory" at
the CAN-Bus.
Does anyone know how this method or program-code?

Thanks in advance, sorry for my poor english

Jens Plambeck



Jens
Look on Motorola's web site www.mot-sps.com under 9S12 for AN2153/D (serial bootloader) and under 912BC32 for AN1828/D flash programming via CAN
I used AN1828 as a starting point for programming 912D60/D60A via CAN . My application programs via RS-232 or CAN
unfortunately the CAN is proprietary to my customer and the D60 and DG128 have very different Flash maps, so my code would probably be more confusing than helpful.

Dale Kelley

-----Original Message-----
From: georgdetlef [mailto:]
Sent: Thursday, November 07, 2002 5:13 AM
To:
Subject: [68HC12] CAN-Loader for Reprogramming the MC9S12DG128B FLASH Hi developer -(friends..), Reprogramming specialists!
I am working heavily on CAN-Module with interfacing to 24V-I/O'S
and the MC9S12DG128B.
I want to "Reprogramming the MC9S12DG128B FLASH Memory" at
the CAN-Bus.
Does anyone know how this method or program-code?

Thanks in advance, sorry for my poor english

Jens Plambeck
--------------------
">http://docs.yahoo.com/info/terms/ ------------------------
This message is for the designated recipient only and may
contain privileged, proprietary, or otherwise private information.
If you have received it in error, please notify the sender
immediately and delete the original. Any unauthorized use of
this email is prohibited.
------------------------


Hi Jens,

The way I see it you have a 2 different options

1) Create a separate microcontroller with CAN and a BDM
port that is in addition to your HC12. This device gets CAN
messages and interfaces directly with the HC12 through
the BDM port. This would allow you to write to memory and
do some debugging.
2) Create a monitor program that resides in the top of the
HC12 memory that runs at powerup, initializes the CAN
port and then checks to see if a flag is set in EE to run
a user program. Incoming CAN interrupts are handled by
the monitor program. CAN commands could stop the
user program and sit in a loop in the monitor while download
commands are reprogramming the flash.

Method one is more expensive due to the hardware involved
but the user program has no awareness of the interface and
any program could be run on the HC12 and it doesn't tie
up the CAN port. Also, you'll have to become an expert at
BDM interfacing.
Method two is less expensive but the user program will have
to be aware of the monitor that is in place. For example, the
vector table would be routed to RAM (like other monitor
programs like Buffalo, Debug12?) The user program would
create jumps in RAM to their vector table which also adds
a small amount of delay. One of the CAN ports would likely
be tied up by the monitor also. If you have an HC12 with
more than one CAN port this probably isn't a problem.

Steve

Zanthic Technologies Inc. is located at www.zanthic.com
Your Controller Area Networking Experts!
Embedded micro-controllers and CAN interface devices sold here

----- Original Message -----
From: georgdetlef
To:
Sent: Thursday, November 07, 2002 3:13 AM
Subject: [68HC12] CAN-Loader for Reprogramming the MC9S12DG128B FLASH Hi developer -(friends..), Reprogramming specialists!
I am working heavily on CAN-Module with interfacing to 24V-I/O'S
and the MC9S12DG128B.
I want to "Reprogramming the MC9S12DG128B FLASH Memory" at
the CAN-Bus.
Does anyone know how this method or program-code?

Thanks in advance, sorry for my poor english

Jens Plambeck
--------------------
">http://docs.yahoo.com/info/terms/



Memfault Beyond the Launch