Questions tagged [flash]

Flash is a type of EEPROM which is page-eraseable. It's commonly used for microcontroller program memory and code storage. You can use this tag for questions about this type of memory as well as questions about "flashing", the process of changing the data in Flash when programming a microcontroller.

From Wikipedia: Flash memory

NAND vs. NOR Flash memory technology overview Application note by Toshiba

685 questions
41
votes
3 answers

What are the differences between NAND and NOR flash?

What are the differences and where would you use each?
JeffV
  • 603
  • 1
  • 7
  • 11
20
votes
3 answers

Flash memory: Does the entire page need to be erased before writing just a few bytes?

An easy question, I hope! I'm not finding any definitive answers... I'm writing drivers for a SST25VF064C flash memory chip. It communicates via SPI. Like all flash memory (that I know of), it needs to be erased (all bits = 1) before it can be…
bitsmack
  • 16,931
  • 9
  • 54
  • 111
11
votes
3 answers

Why does NAND erase only at block-level and not page level?

Below is my understanding of how NAND flash memory is organized, with this design it should be possible to just erase a single page and program it instead of erasing an entire block. My question is, why don't NAND implementation erase at a more…
Joel Fernandes
  • 293
  • 1
  • 3
  • 11
8
votes
1 answer

How does erasing a NAND-Flash memory work?

I am trying to understand how the NAND-Flash memory works and I think I understand how programming a page works but I don't see why inverting all the voltage would not lead to erasing the page. So, why is it that the whole block has to be erased…
mike
  • 81
  • 1
  • 2
6
votes
3 answers

How does NAND FLASH cells retain data without requirement for external power?

RAM cells need constant refreshing, however NAND FLASH cells can retain data for years together. What makes this possible ?
Abhijit K Rao
  • 527
  • 1
  • 5
  • 10
5
votes
1 answer

Is eMMC really a good choice for a low-volume long-product-life design?

We're looking for a flash device for a low-volume (batches size < 100) industrial product, in the 2/4/8 GByte range. In applications like this we've previously used SD card, which is an obvious choice. For better mechanical robustness and device…
user1844
4
votes
1 answer

Writing a Function at specific memory location of Flash

I want a function to go at specific memory location of Flash and I am not able to figure it out. Do I need to do modification in Linker File? Also, I have idea that in GCC, I would use #pragma directives by which I can put my code in specific…
Swanand
  • 3,275
  • 5
  • 30
  • 46
4
votes
3 answers

Flash memory corruption due to electricals?

I'm a software developer working on an in-vehicle (WinCE) device that uses an SDIO card for its storage. We are suffering from (seemingly) random corruptions of the data, seemingly from the FAT table getting corrupted. You may find inaccessible…
Nik
  • 149
  • 1
  • 4
4
votes
4 answers

Is flash chip capacity really limited to the powers of 2?

I have never seen any flash chips with capacity not confined to the strict (i.e. not like in hard drives) power of 2. I wonder what prevents manufacturers from creating such chips: is it some engineering reason, or just the marketing, or anything…
Catherine
  • 637
  • 7
  • 16
3
votes
1 answer

Is it possible to rewrite a Flash page after an interrupted write?

Suppose you have a Flash chip (NOR flash) which you are using for example for data logging, performing sequential writes regularly on it. The question is what if the power goes off during a page write: Is it possible to "fix" the page by rewriting…
Jubatian
  • 241
  • 2
  • 10
3
votes
1 answer

what is the application of "one time programmable" bytes in my flash memory?

My flash memory device A25L032 has 64 one time programmable bytes. It also has software and hardware protection modes for blocks, sectors as well as the whole chip. What application do one time programmable bits have since flash is nonvolatile…
quantum231
  • 11,843
  • 26
  • 106
  • 216
3
votes
1 answer

What would happen in case of power outage during NOR flash erase or programming

I am using a SPI-connected NOR flash (AT25DF321a) to protect data against loss during power failure. But how is flash protected against power loss? What would happen if the power turned off during erase or programming? Is it possible to detect such…
edo1
  • 173
  • 7
3
votes
1 answer

Can flash memory in smart phones be recovered after being under 10000 ft of ocean water?

If you've been watching the news, you know why I'm asking this. For reasons not yet known, flight 370 from Kuala Lampur left its planned flight path to Beijing, and flew for hours before (probably) crashing in the southern Indian Ocean. If the…
Rob N
  • 1,035
  • 4
  • 12
  • 18
2
votes
1 answer

Why do we need block, sector, "all" protect bits in flash device?

I am reading the datasheet for the A25L032 "32Mbit I/O Serial Flash Memory". The page 15 of this datasheet explains that there are non-volatile bits in the status register that can be used to "write protect" a section of the flash memory. Flash…
quantum231
  • 11,843
  • 26
  • 106
  • 216
1
vote
0 answers

NAND flash page layout

I'm a beginner. I was going through the Nand flash memory layout. It is given that, page layout can be, Data area & Spare area alternatively. Data area in the beginning & spare area at the end. I'd like to know why the latter is preferred in most…
Gomu
  • 243
  • 1
  • 6
1
2 3