Re: 68HC08

From: Gary Schnabl (gschnabl_at_LivernoisYards.com)
Date: 03/19/05


Date: Sat, 19 Mar 2005 16:45:57 -0500


"kb" <kunalbisla@gmail.com> wrote in message
news:1111109343.767974.73890@z14g2000cwz.googlegroups.com...
> I guess what i'm really asking is how would i be able to program the
> controller flash on the board. i think designing the board etc wouldn't
> be much problem but let say i have the board ready, how do i load the
> very first program without having to use an external programmer to
> program the inbuilt flash.
> I know some uC download code from the serial interface into the ram and
> execute it, if you pull down certain pins. Can i do something like this
> with 68hc08 or i have to use an external programmer ?
> Hope i made my question clear. let me if i make sense.
> thanks for all your inputs.
> kb

I knew that I show something relating to this on Metrowerks's Online
Support, so I copied this the last time I surfed Online Support: Adapt the
HC(S)12 response for the HC(S)08. BTW, I didn't notice an item 3) in the
response...

FAQ: Can CW HC12 be used as a stand alone flash programmer for the HC(S)12
mcu?

Answer: Yes, it is possible. To do that you should:
1) Get a licensed CW HC12 install for flash programming, free SE license
will work.
2) Copy project.ini from your project into CW HC12 install\prog, check if
"LoadDialogOptions=CODEONLY" appears under the [HI-WAVE] section. If not,
add it.
4) Copy your *.s19 from your project\bin into CW HC12 install\prog as
MyProject.s19.
5) Go to C:\program files\metrowerks\CodeWarrior CW12_V2.0\prog in DOS
window and run "hiwave.exe -Prod=project.ini MyProject.s19". The s-record
will be loaded into mcu automatically. You can build a DOS batch file as
following and let operator just click this ProgramHCS12.bat -- "c:\program
files\metrowerks\CodeWarrior CW12_V2.0\prog\hiwave.exe" -Prod=project.ini
MyProject.s19 You can also change the path of your CodeWarrior installation
accordingly. Also change the s-record name to the one you want.