Forums

EXTERNAL FLASH EEPROM PROGRAMMING

Started by chuc...@yahoo.com August 22, 2006
Hello everyone. I've got a problem that I've been trying to figure out for
some time now, and I have yet to find good information regarding the topic. I'm trying to program an EXTERNAL FLASH EEPROM chip that I have added to the M68HC11EVBU board, circa 1990. It used to have a HC11E9 chip in there,
but the person I got the board from burned it up and got a E1 as a replacement. I know that this is possible with the E2 chip, since I've done it before. Unfortunately, I have lost the code and I only have the binaries, and a simple Tera Term script specifically for the E2.

If my memory serves me correctly, the internal eeprom of the HC11 needs to be programmed with high-voltage (+12v Vpp, internally supplied) in order it to erase/program bits. However,the device I am using (AM29F010B), is a +5vdc ONLY programmable chip. I also put some external SRAM on there, so my memory map is basically ~32K SRAM, and 32K FLASH EEPROM.

So are the steps required to program these devices different? If so, how do I accomplish this? So far, I've used HCLoad v6, Jbug11 v5, PCBUG11, all with no success. Any third-party software suggestions would be GREAT, if not, code snippets would be also be very much appreciated.

Thanks!
Chuck
The tech arts microstamps use an atmel flash... the datasheet for the roms describes in exacting detail how to read, write, erase etc. SMOP. (Simple Matter Of Programming). Got the datasheet for your flash rom?

-----Original Message-----
From: c...@yahoo.com
To: m...
Sent: Tue, 22 Aug 2006 3:46 PM
Subject: [m68HC11] EXTERNAL FLASH EEPROM PROGRAMMING
Hello everyone. I've got a problem that I've been trying to figure out for
some time now, and I have yet to find good information regarding the topic. I'm
trying to program an EXTERNAL FLASH EEPROM chip that I have added to the
M68HC11EVBU board, circa 1990. It used to have a HC11E9 chip in there,
but the person I got the board from burned it up and got a E1 as a replacement.
I know that this is possible with the E2 chip, since I've done it before.
Unfortunately, I have lost the code and I only have the binaries, and a simple
Tera Term script specifically for the E2.

If my memory serves me correctly, the internal eeprom of the HC11 needs to be
programmed with high-voltage (+12v Vpp, internally supplied) in order it to
erase/program bits. However,the device I am using (AM29F010B), is a +5vdc ONLY
programmable chip. I also put some external SRAM on there, so my memory map is
basically ~32K SRAM, and 32K FLASH EEPROM.

So are the steps required to program these devices different? If so, how do I
accomplish this? So far, I've used HCLoad v6, Jbug11 v5, PCBUG11, all with no
success. Any third-party software suggestions would be GREAT, if not, code
snippets would be also be very much appreciated.

Thanks!
Chuck
c...@yahoo.com wrote:
> Hello everyone. I've got a problem that I've been trying to figure
> out
for

If you look closely at your keyboad, perhaps you can figure
out where the "RETURN" key is. If so, then please use it.

> some time now, and I have yet to find good information regarding the
topic. I'm trying to program an EXTERNAL FLASH EEPROM chip that I have
added to the M68HC11EVBU board, circa 1990. It used to have a HC11E9
chip in there,
> but the person I got the board from burned it up and got a E1 as a
replacement. I know that this is possible with the E2 chip, since I've
done it before. Unfortunately, I have lost the code and I only have the
binaries, and a simple Tera Term script specifically for the E2.

The E2 does not have FLASH in it. The programming is different.

> If my memory serves me correctly, the internal eeprom of the HC11
> needs to be programmed with high-voltage (+12v Vpp, internally supplied)
> in order it to erase/program bits. However,the device I am using
> (AM29F010B), is a +5vdc ONLY programmable chip. I also put some external
> SRAM on there, so my memory map is basically ~32K SRAM, and 32K FLASH
> EEPROM.

It also needs high voltage, which it generates internally.

> So are the steps required to program these devices different? If so,
> how do I accomplish this? So far, I've used HCLoad v6, Jbug11 v5,
> PCBUG11, all with no success. Any third-party software suggestions would
> be GREAT, if not, code snippets would be also be very much appreciated.

FLASH programming is both easier and more difficult. You need to
consult your part docs. FLASH is divided into sectors. When you
program a byte in the part, it *automatically* erases the byte,
and then programs it. But it erases the *whole sector* the byte
is in. So, if you wish to save any of the current content, you
must copy the whole sector out to RAM, modify the copy, then
reprogram the whole sector. if you don't want to save what is
there, you still need to program an entire sector, not a byte
at a time. Sector sizes vary by manufacturer and part, and
sometimes one single part will have different sized sectors
at different addresses.

So, consult your part docs.

>
> Thanks!
> Chuck

HTH

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!