EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

One-step programming of 9S12D64

Started by Wade A Smith April 7, 2006
Does anyone know of a one-step method to program a 9s12D64?

We can only get PEMicro to load Flash or EEPROM, but not both, even with
extra documentation from their web site. (see the thread "9S12D64 and
P&E Micro's Cyclone Pro" for the continuing saga of frustration. BTW, why
does management get so pushy ONLY when they are ready to start producing,
even though they knew programming was needed 6 months ago.)

Is there another company that has a product that WILL support our
production line? We MUST have a one-button-push solution to purchase for
our production line. The PC-and-load-push-load-push solution is totally
unacceptable and we need to get a solution before purchasing additional
programming units for production.

We need to move on this quickly because the test setup is ready and the
production company is almost ready to start so the PEMicro phone response
of wait a few days for us to email you any simple answers just wont
work and there is no help in their less-than-stellar documentation (maybe
our lack of full realization of all the wealth of knowledge in the
supplied and acquired documentation is because we arent the engineers who
wrote the programs for the CyclonePro, or just part of the non-elete or
we have a defective unit).

Does Nohau have a programmer that will do one-step programming?

Any others?

wade





Wade,

Notes below.

Steve Russell
Nohau Emulators

>Does anyone know of a one-step method to program a 9s12D64?
>
>We can only get PEMicro to load Flash or EEPROM, but not both, even with
>extra documentation from their web site. (see the thread "9S12D64 and
>P&E Micro's Cyclone Pro" for the continuing saga of frustration. BTW, why
>does management get so pushy ONLY when they are ready to start producing,
>even though they knew programming was needed 6 months ago.)

It sounds like you may have an obscure problem due to the 16-bit addresses
of flash and EEPROM overlapping.

If you are programming with "physical" or "linear" addresses, you will need
to use separate files to program all 64 k of flash and the EEPROM.

>Is there another company that has a product that WILL support our
>production line? We MUST have a one-button-push solution to purchase for
>our production line. The PC-and-load-push-load-push solution is totally
>unacceptable and we need to get a solution before purchasing additional
>programming units for production.
>
>We need to move on this quickly because the test setup is ready and the
>production company is almost ready to start so the PEMicro phone response
>of "wait a few days for us to email you any simple answers" just wont
>work and there is no help in their less-than-stellar documentation (maybe
>our lack of full realization of all the wealth of knowledge in the
>supplied and acquired documentation is because we arent the engineers who
>wrote the programs for the CyclonePro, or just part of the non-elete or
>we have a defective unit).
>
>Does Nohau have a programmer that will do one-step programming?

Yes we do!

Our BDM emulator does flash and EEPROM programming in one operation from
many different load file formats. In particular you can use the ELF/DWARF
or IEEE-695 file directly, without an intermediate conversion step.

It is desirable for the load file to use "logical" or "banked" addressing
so that the addresses for flash and EEPROM do not overlap. The Nohau
loaders handle this from a single file without requiring a conversion to
S-record format.

Our macro programming language is similar to Microsoft's Visual Basic and
allows you to program multi step test procedures with windows type operator
interfaces. We use it for our own testing.

See:
http://www.nohau.com/emul12pc.html
And look at the information on "BDM Emulators">

>Any others?
>
>wade

*************************************************************************
Steve Russell mailto:s...@nohau.com
Senior Software Design Engineer http://www.nohau.com
Nohau phone: (408)866-1820 ext. 1873
275 E. Hacienda Ave. fax: (408)378-7869
Campbell, CA 95008
*************************************************************************
--- In 6..., Wade A Smith wrote:
>
> Does anyone know of a one-step method to program a 9s12D64?
>

my 2 cents. YOu could try this idea. I used it and works for me. I
used DBUG12 as BDM pod of course.

The EEPROM and FLASH s-record are combined in a single file but with
the following command added in. A small s-record as an example of the
idea.

Tera term is used as the terminal program and the file is dragged into
it to send command and s-record programing sequence below.

1. Initialize ECLKDIV ($110) = 49
2. bulk = Erase EEPROM
3. load = Program EEPROM
*** - Memory locations being programmed

4. fbulk - Erase FLASH
5. Fload ;b - Program FLASH in banked mode.
**** - Memory locations being programmed
Obviously if MCU are blank then erasing steps not required
mm 110 49

bulk

load
S10B0400AA55AA55AA55AA55F4
S9030000FC

fbulk

fload ;b
S10B4000AA55AA55AA55AA55B8
S9030000FC
Hallo wade,

I use the P&E Micro's Cyclone Pro to program Flash and EEPROM at the same
time. To program, I have only to press the Button on the Cyclone Pro (EEPROM
erase, program, verify; Flash erase, program, verify). At the beginning I
couldn't program this way, but then I received support from P&E.

First the code must be converted in physical address. One file for EEPROM
and
one file for Flash. I use log2phy_12 from P&E to convert my logical
addressed
code. Then I use the Standalone Programmer (SAP, delivered with the Cyclone
Pro) to generate a *.cfg File for EEPROM and one for Flash. I put now the
two *.cfg files together in the engine.cfg. The last two steps I made only
once, cause after this, you know how to program your device.

Example of engine.cfg:

CM C:\pemicro\cyclone_pro\Algorithms\HC12_HCS12\912dg128A_2k.12P 00000800
SS
O:\0450.4517_MKL_Interface_mit_LEGIC_&_MP\Release\Exe\0450.4517g_MCC100EEPRO
M.phy
EM
BM
PM
VM
CM C:\pemicro\cyclone_pro\Algorithms\HC12_HCS12\912dg128A_128k.12P
SS
O:\0450.4517_MKL_Interface_mit_LEGIC_&_MP\Release\Exe\0450.4517g_MCC100Flash
.phy
EM
BM
PM
VM

At least I use the csapbdm12z to load the engine.cfg and the code to the
Cyclone Pro. To start the csapbdm12z I use a shortcut in my project
directory
like C:\Programme\pemicro\cyclone_pro\csapbdm12z.exe with parameter
O:\0450.4517_MKL_Interface_mit_LEGIC_&_MP\Programmierung\Engine.cfg
interface=cyclonepro port=usb1.

That's all.

patrick

--
Patrick Gempeler
ProEda AG Datenmanagement
Bollstr. 32, CH-3076 Worb
Tel +41 31 838 45 00, Fax +41 31 838 45 40

----- Original Message -----
From: "Wade A Smith"
Newsgroups: gmane.comp.hardware.microcontrollers.hc12
Sent: Friday, April 07, 2006 5:30 PM
Subject: One-step programming of 9S12D64
Does anyone know of a one-step method to program a 9s12D64?

We can only get PEMicro to load Flash or EEPROM, but not both, even with
extra documentation from their web site. (see the thread "9S12D64 and
P&E Micro's Cyclone Pro" for the continuing saga of frustration. BTW, why
does management get so pushy ONLY when they are ready to start producing,
even though they knew programming was needed 6 months ago.)

Is there another company that has a product that WILL support our
production line? We MUST have a one-button-push solution to purchase for
our production line. The PC-and-load-push-load-push solution is totally
unacceptable and we need to get a solution before purchasing additional
programming units for production.

We need to move on this quickly because the test setup is ready and the
production company is almost ready to start so the PEMicro phone response
of "wait a few days for us to email you any simple answers" just wont
work and there is no help in their less-than-stellar documentation (maybe
our lack of full realization of all the wealth of knowledge in the
supplied and acquired documentation is because we arent the engineers who
wrote the programs for the CyclonePro, or just part of the non-elete or
we have a defective unit).

Does Nohau have a programmer that will do one-step programming?

Any others?

wade

The 2024 Embedded Online Conference