EmbeddedRelated.com
Forums

E128 Sector Erase

Started by Bruce McMillan September 30, 2003
Hi,
Can anyone confirm that the sector erase size on the S12E128 is 512
bytes - the module covering the Flash says both 512Bytes and 256Bytes.

tks
Bruce



Bruce,

The S12FTS128KV1/D
<http://e-www.motorola.com/files/microcontrollers/doc/ref_manual/S12FTS128KV1.pdf>
document available on the E128 Product Summary page is not the correct
Flash block guide for the E128. The E128 contains a single 128K flash
block with a 1024 byte sector size. I'll notify the proper people to get
the correct Block Guide on the web.

Regards,
Gordon

Bruce McMillan wrote:

>Hi,
>Can anyone confirm that the sector erase size on the S12E128 is 512
>bytes - the module covering the Flash says both 512Bytes and 256Bytes.
>
>tks
>Bruce >
>-------------------- >
>">http://docs.yahoo.com/info/terms/ >

--
===============================================================
Gordon Doughman Ph: 937-438-6811
Motorola Semiconductor Fax: 937-434-7457
Field Applications Engineer Pager: 800-759-8352 Pin: 1304089
Suite 175
3131 Newmark Drive
Miamisburg, OH 45342

Check out my HC12 book at:
http://www.rtcbooks.com/programming.php




I am working a project that uses:

Mot MC9S12E128
Imagecraft IIC12 PRO
PEmicro Multilink BDM

Can you tell me please which PEMICRO programing
algorithm I should Use?

Do I have to convert my s records?

Do I use LOGPHY or Sconvrt and what are the parameters.

Thanks,
Ernie


Gordon,
thanks. I was intending to use the Flash as an EEPROM surrogate, so
then implications seem to be that
1.) I'll need to set aside 1KB of RAM (instead of 512B) to form the
sector to be written
2.) it needs to be executed from RAM - I wasn't expecting this.

bruce

--- In , Gordon Doughman <g.doughman@m...> wrote:
> Bruce,
>
> The S12FTS128KV1/D
>
<http://e-www.motorola.com/files/microcontrollers/doc/ref_manual/S12FTS128KV1.pdf>

> document available on the E128 Product Summary page is not the correct
> Flash block guide for the E128. The E128 contains a single 128K flash
> block with a 1024 byte sector size. I'll notify the proper people to
get
> the correct Block Guide on the web.
>
> Regards,
> Gordon
>
> Bruce McMillan wrote:
>
> >Hi,
> >Can anyone confirm that the sector erase size on the S12E128 is 512
> >bytes - the module covering the Flash says both 512Bytes and 256Bytes.
> >
> >tks
> >Bruce
> >
> >
> >
> >--------------------
> >
> >
> >
> >">http://docs.yahoo.com/info/terms/
> >
> >
> >
>
> --
> ===============================================================
> Gordon Doughman Ph: 937-438-6811
> Motorola Semiconductor Fax: 937-434-7457
> Field Applications Engineer Pager: 800-759-8352 Pin: 1304089
> Suite 175
> 3131 Newmark Drive
> Miamisburg, OH 45342
>
> Check out my HC12 book at:
> http://www.rtcbooks.com/programming.php




Bruce,

You may want to take a look at AN2302, EEPROM Emulation for the
MC9S12C32, for some ideas on emulating EEPROM. You'll find that the
techniques used in the app note use much less RAM than the size of a
Flash sector.

Regards,
Gordon

Bruce McMillan wrote:

>Gordon,
>thanks. I was intending to use the Flash as an EEPROM surrogate, so
>then implications seem to be that
>1.) I'll need to set aside 1KB of RAM (instead of 512B) to form the
>sector to be written
>2.) it needs to be executed from RAM - I wasn't expecting this.
>
>bruce
>
>--- In , Gordon Doughman <g.doughman@m...> wrote:
>
>>Bruce,
>>
>>The S12FTS128KV1/D
>>
>>
><http://e-www.motorola.com/files/microcontrollers/doc/ref_manual/S12FTS128KV1.pdf>
>
>>document available on the E128 Product Summary page is not the correct
>>Flash block guide for the E128. The E128 contains a single 128K flash
>>block with a 1024 byte sector size. I'll notify the proper people to
>>
>get
>
>>the correct Block Guide on the web.
>>
>>Regards,
>>Gordon
>>
>>Bruce McMillan wrote:
>>
>>
>>>Hi,
>>>Can anyone confirm that the sector erase size on the S12E128 is 512
>>>bytes - the module covering the Flash says both 512Bytes and 256Bytes.
>>>
>>>tks
>>>Bruce
>>>
>>>
>>>
>>>--------------------
>>>
>>>
>>>
>>>">http://docs.yahoo.com/info/terms/
>
>>>
>>>
>>--
>>===============================================================
>>Gordon Doughman Ph: 937-438-6811
>>Motorola Semiconductor Fax: 937-434-7457
>>Field Applications Engineer Pager: 800-759-8352 Pin: 1304089
>>Suite 175
>>3131 Newmark Drive
>>Miamisburg, OH 45342
>>
>>Check out my HC12 book at:
>>http://www.rtcbooks.com/programming.php
> >
>-------------------- >
>">http://docs.yahoo.com/info/terms/ >

--
===============================================================
Gordon Doughman Ph: 937-438-6811
Motorola Semiconductor Fax: 937-434-7457
Field Applications Engineer Pager: 800-759-8352 Pin: 1304089
Suite 175
3131 Newmark Drive
Miamisburg, OH 45342

Check out my HC12 book at:
http://www.rtcbooks.com/programming.php



Has anyone been succesful in converting the bootloader from a 256K device to
a 128K device - particularly the 9S12E128. I am in the process of doing
this and I have been getting the Flash Erase error. Perhaps, this corrected
info (below) on the sector size may help. Unfortunately, I can not try it
this time - I saw this info after I accidentally secured the micro. I tried
to unsecure it using PEMICRO unsecure_12 with no success.

Ernie.

----- Original Message -----
From: "Gordon Doughman" <>
To: <>
Sent: Wednesday, October 01, 2003 2:45 PM
Subject: Re: [68HC12] E128 Sector Erase > Bruce,
>
> The S12FTS128KV1/D
>
<http://e-www.motorola.com/files/microcontrollers/doc/ref_manual/S12FTS128KV
1.pdf>
> document available on the E128 Product Summary page is not the correct
> Flash block guide for the E128. The E128 contains a single 128K flash
> block with a 1024 byte sector size. I'll notify the proper people to get
> the correct Block Guide on the web.
>
> Regards,
> Gordon
>
> Bruce McMillan wrote:
>
> >Hi,
> >Can anyone confirm that the sector erase size on the S12E128 is 512
> >bytes - the module covering the Flash says both 512Bytes and 256Bytes.
> >
> >tks
> >Bruce
> >
> >
> >
> >--------------------
> >
> >
> >
> >">http://docs.yahoo.com/info/terms/
> >
> >
> >
>
> --
> ===============================================================
> Gordon Doughman Ph: 937-438-6811
> Motorola Semiconductor Fax: 937-434-7457
> Field Applications Engineer Pager: 800-759-8352 Pin: 1304089
> Suite 175
> 3131 Newmark Drive
> Miamisburg, OH 45342
>
> Check out my HC12 book at:
> http://www.rtcbooks.com/programming.php > -------------------- >
> ">http://docs.yahoo.com/info/terms/





Should be just a matter of changing the sector size variable in
Gordon's code.
The E128 EEPROM emulator code I posted to the files section of this
list does this.
bruce.
--- In , "Ernie Barreyro" <ErnieBarreyro@P...>
wrote:
> Has anyone been succesful in converting the bootloader from a 256K
device to
> a 128K device - particularly the 9S12E128. I am in the process of doing
> this and I have been getting the Flash Erase error. Perhaps, this
corrected
> info (below) on the sector size may help. Unfortunately, I can not
try it
> this time - I saw this info after I accidentally secured the micro.
I tried
> to unsecure it using PEMICRO unsecure_12 with no success.
>
> Ernie.
>
> ----- Original Message -----
> From: "Gordon Doughman" <g.doughman@m...>
> To: <>
> Sent: Wednesday, October 01, 2003 2:45 PM
> Subject: Re: [68HC12] E128 Sector Erase > > Bruce,
> >
> > The S12FTS128KV1/D
> >
>
<http://e-www.motorola.com/files/microcontrollers/doc/ref_manual/S12FTS128KV
> 1.pdf>
> > document available on the E128 Product Summary page is not the correct
> > Flash block guide for the E128. The E128 contains a single 128K flash
> > block with a 1024 byte sector size. I'll notify the proper people
to get
> > the correct Block Guide on the web.
> >
> > Regards,
> > Gordon
> >
> > Bruce McMillan wrote:
> >
> > >Hi,
> > >Can anyone confirm that the sector erase size on the S12E128 is 512
> > >bytes - the module covering the Flash says both 512Bytes and
256Bytes.
> > >
> > >tks
> > >Bruce
> > >
> > >
> > >
> > >--------------------
> > >
> > >
> > >
> > >">http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
> >
> > --
> > ===============================================================
> > Gordon Doughman Ph: 937-438-6811
> > Motorola Semiconductor Fax: 937-434-7457
> > Field Applications Engineer Pager: 800-759-8352 Pin: 1304089
> > Suite 175
> > 3131 Newmark Drive
> > Miamisburg, OH 45342
> >
> > Check out my HC12 book at:
> > http://www.rtcbooks.com/programming.php
> >
> >
> >
> >
> >
> > --------------------
> >
> >
> >
> > ">http://docs.yahoo.com/info/terms/
> >
> >





Hi Ernie.

About unsecuring: Make sure you have "version 1.03" if "unsecure_12.exe".
It is displayed when you start the tool. Previous releases of the tool
might not work.

Regards,
Gilles At 06:55 AM 10/27/2003, you wrote:
>Has anyone been succesful in converting the bootloader from a 256K device to
>a 128K device - particularly the 9S12E128. I am in the process of doing
>this and I have been getting the Flash Erase error. Perhaps, this corrected
>info (below) on the sector size may help. Unfortunately, I can not try it
>this time - I saw this info after I accidentally secured the micro. I tried
>to unsecure it using PEMICRO unsecure_12 with no success.
>
>Ernie.
>
>----- Original Message -----
>From: "Gordon Doughman" <>
>To: <>
>Sent: Wednesday, October 01, 2003 2:45 PM
>Subject: Re: [68HC12] E128 Sector Erase > > Bruce,
> >
> > The S12FTS128KV1/D
> >
><http://e-www.motorola.com/files/microcontrollers/doc/ref_manual/S12FTS128KV
>1.pdf>
> > document available on the E128 Product Summary page is not the correct
> > Flash block guide for the E128. The E128 contains a single 128K flash
> > block with a 1024 byte sector size. I'll notify the proper people to get
> > the correct Block Guide on the web.
> >
> > Regards,
> > Gordon
> >
> > Bruce McMillan wrote:
> >
> > >Hi,
> > >Can anyone confirm that the sector erase size on the S12E128 is 512
> > >bytes - the module covering the Flash says both 512Bytes and 256Bytes.
> > >
> > >tks
> > >Bruce
> > >
> > >
> > >
> > >--------------------
> > >
> > >
> > >
> > >">http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
> >
> > --
> > ===============================================================
> > Gordon Doughman Ph: 937-438-6811
> > Motorola Semiconductor Fax: 937-434-7457
> > Field Applications Engineer Pager: 800-759-8352 Pin: 1304089
> > Suite 175
> > 3131 Newmark Drive
> > Miamisburg, OH 45342
> >
> > Check out my HC12 book at:
> > http://www.rtcbooks.com/programming.php
> >
> >
> >
> >
> >
> > --------------------
> >
> >
> >
> > ">http://docs.yahoo.com/info/terms/
> >
> >
>-------------------- >
>">http://docs.yahoo.com/info/terms/




Hi Gilles,
The version of the PEMicro unsecure that I am using is
V1.02. That is the latest version that I saw on
PEMicro's website. Where did you get V1.03?
Thanks,
Ernie

--- Original Message ---
From: Gilles Blanquin <>
To:
Subject: Re: [68HC12] E128 Sector Erase

>
>Hi Ernie.
>
>About unsecuring: Make sure you have "version 1.03"
if "unsecure_12.exe".
>It is displayed when you start the tool. Previous
releases of the tool
>might not work.
>
>Regards,
>Gilles >At 06:55 AM 10/27/2003, you wrote:
>>Has anyone been succesful in converting the
bootloader from a 256K device to
>>a 128K device - particularly the 9S12E128. I am in
the process of doing
>>this and I have been getting the Flash Erase error.
Perhaps, this corrected
>>info (below) on the sector size may help.
Unfortunately, I can not try it
>>this time - I saw this info after I accidentally
secured the micro. I tried
>>to unsecure it using PEMICRO unsecure_12 with no
success.
>>
>>Ernie.
>>
>>----- Original Message -----
>>From: "Gordon Doughman" <>
>>To: <>
>>Sent: Wednesday, October 01, 2003 2:45 PM
>>Subject: Re: [68HC12] E128 Sector Erase
>>
>>
>> > Bruce,
>> >
>> > The S12FTS128KV1/D
>> >
>><http://e-
www.motorola.com/files/microcontrollers/doc/ref_manual/
S12FTS128KV
>>1.pdf>
>> > document available on the E128 Product Summary
page is not the correct
>> > Flash block guide for the E128. The E128 contains
a single 128K flash
>> > block with a 1024 byte sector size. I'll notify
the proper people to get
>> > the correct Block Guide on the web.
>> >
>> > Regards,
>> > Gordon
>> >
>> > Bruce McMillan wrote:
>> >
>> > >Hi,
>> > >Can anyone confirm that the sector erase size on
the S12E128 is 512
>> > >bytes - the module covering the Flash says both
512Bytes and 256Bytes.
>> > >
>> > >tks
>> > >Bruce
>> > >
>> > >
>> > >
>> > >-------------
-------
>> > >
>> > >
>> > >
>> > >">http://docs.yahoo.com/info/terms/
>> > >
>> > >
>> > >
>> >
>> > --
>> >
=======================================================
========
>> > Gordon Doughman Ph: 937-438-6811
>> > Motorola Semiconductor Fax: 937-434-7457
>> > Field Applications Engineer Pager: 800-759-
8352 Pin: 1304089
>> > Suite 175
>> > 3131 Newmark Drive
>> > Miamisburg, OH 45342
>> >
>> > Check out my HC12 book at:
>> > http://www.rtcbooks.com/programming.php
>> >
>> >
>> >
>> >
>> >
>> > --------------
------
>> >
>> >
>> >
>> > ">http://docs.yahoo.com/info/terms/
>> >
>> >
>>
>>
>>
>>-----------------
---
>>
>>
>>
>>">http://docs.yahoo.com/info/terms/
>
>
>------------------------ Yahoo! Groups Sponsor -------
>
>------------------
--
>">http://docs.yahoo.com/info/terms/
>
>



Hi Gilles,
The version of the PEMicro unsecure that I am using is
V1.02. That is the latest version that I saw on
PEMicro's website. Where did you get V1.03?
Thanks,
Ernie

--- Original Message ---
From: Gilles Blanquin <>
To:
Subject: Re: [68HC12] E128 Sector Erase

>
>Hi Ernie.
>
>About unsecuring: Make sure you have "version 1.03"
if "unsecure_12.exe".
>It is displayed when you start the tool. Previous
releases of the tool
>might not work.
>
>Regards,
>Gilles >At 06:55 AM 10/27/2003, you wrote:
>>Has anyone been succesful in converting the
bootloader from a 256K device to
>>a 128K device - particularly the 9S12E128. I am in
the process of doing
>>this and I have been getting the Flash Erase error.
Perhaps, this corrected
>>info (below) on the sector size may help.
Unfortunately, I can not try it
>>this time - I saw this info after I accidentally
secured the micro. I tried
>>to unsecure it using PEMICRO unsecure_12 with no
success.
>>
>>Ernie.
>>
>>----- Original Message -----
>>From: "Gordon Doughman" <>
>>To: <>
>>Sent: Wednesday, October 01, 2003 2:45 PM
>>Subject: Re: [68HC12] E128 Sector Erase
>>
>>
>> > Bruce,
>> >
>> > The S12FTS128KV1/D
>> >
>><http://e-
www.motorola.com/files/microcontrollers/doc/ref_manual/
S12FTS128KV
>>1.pdf>
>> > document available on the E128 Product Summary
page is not the correct
>> > Flash block guide for the E128. The E128 contains
a single 128K flash
>> > block with a 1024 byte sector size. I'll notify
the proper people to get
>> > the correct Block Guide on the web.
>> >
>> > Regards,
>> > Gordon
>> >
>> > Bruce McMillan wrote:
>> >
>> > >Hi,
>> > >Can anyone confirm that the sector erase size on
the S12E128 is 512
>> > >bytes - the module covering the Flash says both
512Bytes and 256Bytes.
>> > >
>> > >tks
>> > >Bruce
>> > >
>> > >
>> > >
>> > >-------------
-------
>> > >
>> > >
>> > >
>> > >">http://docs.yahoo.com/info/terms/
>> > >
>> > >
>> > >
>> >
>> > --
>> >
=======================================================
========
>> > Gordon Doughman Ph: 937-438-6811
>> > Motorola Semiconductor Fax: 937-434-7457
>> > Field Applications Engineer Pager: 800-759-
8352 Pin: 1304089
>> > Suite 175
>> > 3131 Newmark Drive
>> > Miamisburg, OH 45342
>> >
>> > Check out my HC12 book at:
>> > http://www.rtcbooks.com/programming.php
>> >
>> >
>> >
>> >
>> >
>> > --------------
------
>> >
>> >
>> >
>> > ">http://docs.yahoo.com/info/terms/
>> >
>> >
>>
>>
>>
>>-----------------
---
>>
>>
>>
>>">http://docs.yahoo.com/info/terms/
>
>
>------------------------ Yahoo! Groups Sponsor -------
>
>------------------
--
>">http://docs.yahoo.com/info/terms/
>
>