Maker Pro
Maker Pro

Flash retention in uC at higher temps, experience?

J

Joerg

Jan 1, 1970
0
Jonathan said:
No. No problems, at all. Just that I didn't run them for more than
about 5 hours at a time. Same one ran for weeks, though, at periodic
elevated temperatures. I was just collecting data from a rotating hot
surface and wanted to just stick the whole contraption there while it
stored a few bits of data into RAM. The battery was the problem.


However, you said "But some bad experiences in storing data into the
flash at that temp and even at 3.3V and higher."

Oregon is absolutely beautiful! I've got pileated woodpeckers, 4
kinds of squirrels including a flying squirrel (nocturnal), peafowl,
chickens, guinea hens, turkeys and so on -- tall 60-80 year old firs,
two kinds of ferns, rhododendrons that bloom in succession around the
place, and it looks like a lush rain-forest national forest when you
walk the paths on the property. Lots of acres, 5000 sq ft home, 1/4
mile driveway to the house, view of the mountains, 5 minutes to a
hospital and 20 minutes to the PDX international airport, a 17 mile
well-maintained walking and horse trail that goes from 1/2 mile away
from my home to the Willamette River in Portland, and it cost me $330k
in 2002. Prices are still low, too. Next door has been on the block
for 2 years, is a million dollar home (tax appraisal price) with about
4500 sq ft and 5 acres, and is being offered at $599k now. I'm told
they'd accept under $500k. Neighbors are wonderful, too.

That sure sounds mouth-watering. But my wife likes places where there is
no winter (and now ours get colder every year ...) and I'd have a wee
problem with the property tax rates up there. 2% or more is IMHO
confiscatory. Oh, and I like proposition 13 (prop tax increase cap) in
California because I do not trust politicians enough to toss them the
keys to my bank account.

3' of fantastic soils, 45" of rain a year nice and evenly distributed
all year 'round in a constant drizzle, and everything grows where you
throw the seed, no digging needed. What could be better? ;)

Ah, you shouldn't have written "drizzle", my wife would hate that kind
of weather.
 
J

Joerg

Jan 1, 1970
0
Frank said:
Jonathan Kirwan wrote:

[...]
3' of fantastic soils, 45" of rain a year nice and evenly distributed
all year 'round in a constant drizzle, and everything grows where you
throw the seed, no digging needed. What could be better? ;)

Sounds great if you want to become a farmer :) I'm living near Cologne
centre, but a quiet back road near the Rhein. Just a rented flat and not
acres of grass and bushes around it, but supermarkets, stores, pubs,
restaurants, theaters, cinemas, parks etc., all within walking distance.

I sure miss those pubs in Cologne. We lived about 20 miles from there. A
hop onto a train and 30 minutes later you were at Cologne Central. Then
a stroll of a few minutes and you could have a nice cold Koelsch beer.

Hint for tourists going there: If you think you master German well
enough and then discover that you can't understand a thing of what
people in a Cologne pub are saying, that's normal. I didn't understand
most of them either.
 
J

Joerg

Jan 1, 1970
0
Frank said:
If the flash is big enough, you could copy the program to an unused memory
area and back again the next cycle. Then the only critial moment is writing
the switchover. But should be no problem, if you can monitor the supply
voltage and if you can guarantee, that it remains over the flash limit for
the time needed to write the switchover bytes.

That's one of the methods I am thinking about. It would require a uC
with at least twice the flash size but heck, that would be pretty cheap
insurance. The switchover could be handled by a flag that will not get
asserted before the whole transfer is complete. Only afterwards would
the flag for the "old" flash area be disasserted.

The flag is the problem. Unfortunately uC manufacturers have not put
that much thought into the reset routine. It just jumps to a fixed
address and when the data there is corrupt the application is toast.

What do you think of MRAM for critial applications? It's a bit expensive,
but they claim data retention of minimum 20 years and unlimited number of
writes. It is even used in a satellite:

http://www.eetimes.com/showArticle.jhtml?articleID=206900226
http://www.freescale.com/files/microcontrollers/doc/data_sheet/MR2A16A.pdf

We already have another kind of memory in one application because of
flash corruption. However, then the question arises: Why have flash in
the first place?
 
J

Joerg

Jan 1, 1970
0
TheM said:
I would guess the part went haywire and started overwriting the flash
itself by some randomly executed code. Possibly the fuses were not set or
were even ignored.

Yeah but that would not be cool. 100W at 6ft isn't that much. Many
applications must live in plastic boxes and there is always a chance
someone with a 5W contractor radio stands right next to them. Or someone
fires up a cell phone and the GSM ones can be particularly nasty here.
 
J

Joerg

Jan 1, 1970
0
Jim said:
Joerg wrote:



For more critical uses, Infineon seem to have well-spec'd uC -
their new ones all have Error Correcting Flash, and 125'C models.

http://www.infineon.com/XC800

Also recently added are a series of Transmitter ICs for Wireless
Control, that have Sub 1GHz Transmitters, and Low power Flash C51's
- one targets Tire Pressure, at Automotive temp range.
http://www.infineon.com/cms/en/product/promopages/pma5110/index.html

Aha! Thanks. Seems there is some hope. Although I am not much of an
Infineon fan. The reaction time of their CA office can be, well, just
like the name suggests, infinity.
Flash retention is one of those 'fingers crossed' specs from most
suppliers. They cannot TEST years of use, so they do a little
extrapolation, and we all know, extrapolation is dangerous :)

Yes, like global warming :)

Hold the tomatoes ...
From What ?

Copy sectors 1-10 consecutively into RAM, write them to sectors 11-20,
assert start location 11, disassert start location 1. A month later the
other way around. And so on. Just like rotating a wood pile so it dries
evenly.
 
J

Joerg

Jan 1, 1970
0
James said:
I was going to suggest that. But, you ask, "How often?"

A few wild troubleshooting ideas:

One thing you might do is vary the device's Vdd while reading it, thus
changing the read threshold and alerting you to marginal cells before
they fail.

With a heat gun and a device reader you might actually document the
bleed-down of the device's memory cells vs: temperature & derive a
definitive lifetime projection.

Another idea: can you control the programming timing? If so, you could
weakly program a test pattern + CRC in the part. The part could then
test the area itself, detecting impending failures.

Sure but that data won't help much. Next month's batch can be all
different. One could just do the sector swaps often enough, maybe once a
week. The max number of write cycles is very high these days, well in
excess of 10000 times. AFAIK that number even goes up with temperature.
 
J

Joerg

Jan 1, 1970
0
Paul said:
In a high radiation environment usually some ECC bits are stored in
each sector and with frequent sector reads you can detect if there are
flipped bits, correct the errors using the ECC and write back the
sector.

In this way, you know when to do the writeback and you can minimize
the (limited) number of reflashing for a specific sector on the flash.

I assume this would also work with the data retention time problem at
elevated temperatures.

For a program written in assembly, it should not be a problem to
allocate a number of bytes for the ECC bits at the end of sector and
use a branch instruction to skip them, but this might be an issue, if
an HLL is used.

That's an option as well. Although it won't help with power failure
duyring re-writes.
 
P

Paul Keinanen

Jan 1, 1970
0
That's an option as well. Although it won't help with power failure
duyring re-writes.

With sector specific ECC, you reduce the likelihood for sector
specific reflashing and also reduce the time of reflash (full
reflash/sector specific reflash).

If this kind of reducing the likelihood for a complete failure is not
sufficient e.g. large capacitors for data retention, you have to go
for a doubly/triple redundant system to avoid such problems.

Paul
 
P

Paul Keinanen

Jan 1, 1970
0
You can collect all ECC bits at the end of the flash.

This is a good idea as long as you do not perform these updates too
often, overflowing the maximum flash write count for a specific
cell/sector.

Paul
 
T

ThanderMaX

Jan 1, 1970
0
The black container will absorb more heat than the white one. (gen
Physics :) )
Try wrapping the container with shiny tape , see the result ..
 
J

Joerg

Jan 1, 1970
0
Paul said:
With sector specific ECC, you reduce the likelihood for sector
specific reflashing and also reduce the time of reflash (full
reflash/sector specific reflash).

If this kind of reducing the likelihood for a complete failure is not
sufficient e.g. large capacitors for data retention, you have to go
for a doubly/triple redundant system to avoid such problems.

True, if something gets us down to <<10% of failure that is in many
cases sufficient. Not in medical or aeronautics though.
 
J

Joerg

Jan 1, 1970
0
Paul said:
This is a good idea as long as you do not perform these updates too
often, overflowing the maximum flash write count for a specific
cell/sector.

It's >10000 times on most modern device, per datasheet. In reality more
like 100000 times. So even if you do it once a week there will still be
archeologists wondering what the heck these ancient folks had done.
 
T

TheM

Jan 1, 1970
0
Joerg said:
Yeah but that would not be cool. 100W at 6ft isn't that much. Many applications must live in plastic boxes and there is always a
chance someone with a 5W contractor radio stands right next to them. Or someone fires up a cell phone and the GSM ones can be
particularly nasty here.

It could be a design with long supply wires (as antennas) and poor RF
blocking caps close to uCPU.

Flash corruption due to EM field at 6 feet distance sounds a bit far fetched.

M
 
T

TheM

Jan 1, 1970
0
Frank Buss said:
The Freescale chip has fast parallel access (35ns), like a slow SDRAM, and
this page says "Unlimited Write and Read Cycles":

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=4MBIT&nodeId=015424

Wow, looks like they are making progress. The last unit I used was 64K serial (I2C) from Ramtron
and it was limited to 10^12 read/write cycles which came out as years at max I2C bus speed.

I love mram, however these things are sensitive to magnetic field, right?
Still not exactly bullet proof.

M
 
L

legg

Jan 1, 1970
0
Tim Wescott wrote:
It's not just this mailbox but also some MSP430 apps at a client. They
predate my involvement there and we are pretty much stuck with that for
a while. We are seeing a distinct pattern where those inside smaller
boxes fail more often than those in larger and more airy enclosures.
This stuff is used in the south where summers are quite toasty.

I suggest you paint your box or faceplate a different color.

Your aim should be to avoid producing temperatures that are not
neccessary in direct sunlight.

RL
 
J

Joerg

Jan 1, 1970
0
legg said:
I suggest you paint your box or faceplate a different color.

Your aim should be to avoid producing temperatures that are not
neccessary in direct sunlight.

Not so easy on an existing product. But from experience it seems the
temps weren't all that different between a black box and an off-white
one. Maybe the off-white one crept up a little slower.
 
J

Jonathan Kirwan

Jan 1, 1970
0
However, you said "But some bad experiences in storing data into the
flash at that temp and even at 3.3V and higher."

Yes, I did. I gather you want to do that.
That sure sounds mouth-watering. But my wife likes places where there is
no winter (and now ours get colder every year ...) and I'd have a wee
problem with the property tax rates up there. 2% or more is IMHO
confiscatory. Oh, and I like proposition 13 (prop tax increase cap) in
California because I do not trust politicians enough to toss them the
keys to my bank account.

My place is appraised at $850k (down there, I know that is just a
shack but up here it's 5000 sq ft of quality, showy home and lots of
acres of prime hilltop land) and my property taxes are $4400/year.
Which is kind of high, I admit. It's the income taxes you'll probably
hate. It's a graduated rate, but I think the top rate (which applies
to most engineers, without even asking) is 9%. However, no sales tax.
Ah, you shouldn't have written "drizzle", my wife would hate that kind
of weather.

I did that on purpose. I didn't want to make it seem too inviting.
Actually, I've come to appreciate the constant press of low clouds
overhead and the slippery feel of moist moss as you carefully walk
across your one year old, rotting wooden deck.

Jon
 
J

Jonathan Kirwan

Jan 1, 1970
0
Jonathan Kirwan wrote:

[...]
3' of fantastic soils, 45" of rain a year nice and evenly distributed
all year 'round in a constant drizzle, and everything grows where you
throw the seed, no digging needed. What could be better? ;)

Sounds great if you want to become a farmer :)

Our family grows/raises most of the food we consume. It's nice
knowing where it all comes from and how it was treated and prepared.
I'm living near Cologne
centre, but a quiet back road near the Rhein. Just a rented flat and not
acres of grass and bushes around it, but supermarkets, stores, pubs,
restaurants, theaters, cinemas, parks etc., all within walking distance.

I don't have all that within walking distance. It's a 5 minute drive
to the nearest hospital, for example, and 20 minutes drive to an
international airport (PDX.) But we do have a grocery store (not a
supermarket), a pub, a restaurant or two, and many, many parks all
within easy walking distance of home.

Okay. I'm having fun. I hope you don't mind if I post a few links to
pictures.

These pictures are from my own land, showing paths that proceed from
my home into the wooded parts of my property:

http://www.infinitefactors.org/misc/images/Home Trails.jpg
http://www.infinitefactors.org/misc/images/Home Trails 2.jpg

That will give you a flavor for the flora.

Mt. Hood rises up from sea level to about 11,300' and is about 15
miles from my home. Here is how it looks from a lake that is very
close to my home (in the summer):

http://www.infinitefactors.org/misc/images/Mt Hood.jpg

This water fall (among literally more than a hundred within a short
distance) is about a 15 minute drive from home.. over 600 feet:

http://www.infinitefactors.org/misc/images/Multnomah Falls.jpg

The Columbia River flows by Mt. Hood's northern base. This viewpoint
is actually closer to my home than the above falls -- about a 10
minute drive:

http://www.infinitefactors.org/misc/images/Crown Pt.jpg

All of the above is in relatively easy bicycling distance.

In Oregon, it is illegal to own or fence or otherwise control coastal
land. Some 400 miles of coastline is public land. The only state of
the USA that does this, I think. In any case, here is one photo of
what our coast partly looks like:

http://www.infinitefactors.org/misc/images/Boardman.jpg

Jon
 
G

Gordon S. Hlavenka

Jan 1, 1970
0
Joerg said:
The flag is the problem. Unfortunately uC manufacturers have not put
that much thought into the reset routine. It just jumps to a fixed
address and when the data there is corrupt the application is toast.

I'm working with an 89lpc952 (Phillips/NXT) which comes preprogrammed
with a bootloader in the top Flash sector. There's a flag that, when
set, will cause execution to start there instead of the normal reset vector.

You're free to overwrite the bootloader with something else, so perhaps
that facility could be used for one side of the flipflop?

Of course, the '952 also has IAP which I don't think can be disabled...
 
L

legg

Jan 1, 1970
0
Not so easy on an existing product. But from experience it seems the
temps weren't all that different between a black box and an off-white
one. Maybe the off-white one crept up a little slower.

With all other variables constant, a reduced rate of rise means a
lower end-point of thermal burden. Light colours are preferable where
reflective surfaces are not possible.

Changing the material, or material grade to something that is not
clear/opaque to infrared can also have an effect. A paint overcoat
rather than internal pigment (~of plastic). Adding irregular surface
finish or stippling/ridging may also have a beneficial effect.

Failing that, a sacrificial face-plate on the most exposed surfaces,
decoupled physically from the case itself.

RL
 
Top