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 ...

learn more… | top users | synonyms

1
vote
1answer
26 views

How to write a SPI flash

I am using the Atmel ARM M0+ MCU (ATSAMD20J18). I have written a bootload for it. The bootloader will check the first few bytes (lets call it magic key) from an external SPI flash memory to determine ...
9
votes
2answers
490 views

Can the microcontroller program flash memory be used for storing user configuration?

Many microcontrollers, e.g. PIC18F, have flash program memory: "The Flash program memory is readable and writable during normal operation". Does this mean I can store some user configurations in the ...
0
votes
1answer
39 views

How many NAND flash chips (measured in Gb) are required for a 32GB USB drive? What is the economic relationship between the two?

NAND Flash Contract Price http://www.insye.com/dp/NANDFlashContractPrice.aspx Context, I am purchasing about 200k USB drives. I sent it out to competitive bid but I want greater insight into the BOM ...
0
votes
1answer
64 views

NAND flash program/erase cycles

Recently I have gotten myself in to buying USB flash drives in order to back up some of my data, however once I got into the detailed specs of the consumer flash drives I have gotten worried, about ...
0
votes
2answers
61 views

Problem with flash ADC design

I am using following: Identical resistance of 1k ohms. For 3 bit flash adc we have (2^3)-1=7; which means we have to use 7 opamps, and 8 resistance. Opamp LM324 (V+ is applied directly form 9V ...
0
votes
1answer
32 views

Getting wrong data from SPI Flash SST25VF010A

I'm trying to interface an mcu (tm4c123) with external SPI flash memory SST25VF010A. I execute the Read-ID instruction, but instead of gettting BF and 49 (manufacturer and device ids) - I get BC and ...
2
votes
2answers
87 views

Number of bytes and file size(HEX)

I am confused regarding the (size/number of bytes) in a hex file. Taking the case of A sample Blink Arduino Program - Blink.cpp.hex On linux terminal, size command output: ...
0
votes
0answers
50 views

Trying to replace 16-bit data EPROM with a pair of 8-bit data FLASH ROMs

I am actually a mechanical engineer not an electrical engineer, but I have some experience with electrical stuff. I am trying to replace a 4Mbit EPROM model M27C4002 with a pair of 2Mbit FLASH ROMs ...
1
vote
1answer
87 views

STM32F429 / STM32F439 read-while-write from two memory banks. Prevents stalling CPU?

I have been reading up on the STM32F429 flash memory (2MB version). From the STM32F4 reference manual I found out that it has two memory banks and supports read-while-write (RWW), which means it can ...
0
votes
1answer
43 views

Flash memory range on STM32F429II

I am reading the STM32F429II data sheet and looking at page 84, which shows the memory mapping. The chip has 2MB of internal flash memory, but the data sheet is general for all STM32F427xx/STM32F429xx ...
2
votes
4answers
97 views

Industrial flash (LED?) for rolling shutter

I am developing industrial monitoring system, at this moment with Raspberry Pi and its camera (this might change if it is not satisfactory). The camera will take still pictures of the scene once in a ...
2
votes
0answers
177 views

STM32F4 NAND flash via FSMC, difference between bytes written and read back

I have a Waveshare Open407V-D development board, basically a "motherboard" in which an STM32F4DISCOVERY kit is fitted (this kit, for those not familiar with it, is made by ST itself and based on the ...
0
votes
2answers
35 views

Flash Memory Failure Modes - Block Failure

My understanding is that typical flash memory failures, such as those due to erase cycles, occur at the bit level. I have a flash in which entire blocks (actually two blocks) are failing. Is there a ...
-1
votes
2answers
109 views

What's the difference between CC2564 and CC2564MODN bluetooth TI chips?

As per title, what's the actual difference between these two chips? I dug extensively the TI site but I cannot find such info.. thanks!
0
votes
0answers
39 views

What's the size of the Bluetopia Bluetooth stack?

As per title, what's the size of the Bluetopia Bluetooth stack on a MCU flash? TI says that the minimum requirement is 128KB. Can I use a 128KB flash MCU? Do I have some room for something else? ...
0
votes
0answers
47 views

What is the expected NAND flash endurance without ECC correction

NAND flash parts have an endurance specification (e.g. 100000 program/erase cycles) that assumes a number of bits of ECC correctability (either by the host or via an internal ECC engine). With this ...
1
vote
3answers
124 views

Need help with an LED flash circuit

I joined just because I'm having sort of a dilemma. I need to design a flash circuit for a tiny SMD based project, and I have a way of doing it, but I want to see if I can make it better and I haven't ...
1
vote
1answer
60 views

SPI reading from slave

I have small question about how bytes move around during SPI reading. I have a flash memory chip and microcontroller. Suppose I want to know jedec data from the chip(although it can be any data, this ...
0
votes
1answer
99 views

Writing flash on ATmega328

I have struggled to understand this code but I can't understand the little endian for loop. Why is it necessary? And how could I read the page back? One byte at a time as an array? Is it even ...
1
vote
1answer
45 views

Read strings from ATmega or Arduino

I have found out that one can disassemble an ATmega with objdump or avrdude. And if the LB1 and LB2 bits are set low it would be much harder. So if these bits are set high or just reading the flash is ...
1
vote
1answer
52 views

How does the PIC's PMCON1.WRERR bit actually work?

I know from the datasheet that it gets set automatically on a rising edge of the WR bit and cleared automatically on a successful completion. Thus, if it's still on, then something went wrong. So ...
0
votes
0answers
82 views

Is a file system something that is implemented in hardware or software?

The context of this question is that I would like to be able to take an SPI flash IC and store audio files on it. The reason I need a file system, specifically FAT, is because I'm using an OGG Decoder ...
0
votes
1answer
113 views

Designing Flash Memory to USB Mass Storage bridge

I've been scratching my head at this for a while now. I'm trying to build a device that records audio using a VS1053 encoder IC to some sort of SPI flash memory. I want to be able to download the ...
1
vote
1answer
107 views

What are the caveats of placing PSoC 4 variables in flash?

PSoC4 chips have only between 2 and 4KB of RAM. That's not much, especially if I want to do some data processing. Between 16 and 32KB of Flash seems much more promising, even if I need to share it ...
0
votes
2answers
78 views

Maximum number of reads in flash

I am using an AT45DB081E 8-Mbit flash from Adesto (formerly from Atmel). I am storing 7-byte data records and keep the location of the newest record stored in the last page of flash. This value is ...
1
vote
0answers
92 views

LPCxpresso: How to write a constant value to flash memory at programming time?

Is there a file or setting that I can add to my project that maps specific values to specific memory location in IAP flash when it is programmed? The device is LPC1114. The use case is that each ...
0
votes
1answer
54 views

SPI Bus Clock Slew Rate

I am interfacing LPC1768 SPI bus and SST25VF016B SPI Serial Flash. Flash is 50Mhz, and these are the values I copied from SPI Flash Datasheet. page 24. FCLK (Serial Clock Frequency) 50 MHz TSCKH ...
2
votes
1answer
144 views

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, ...
1
vote
1answer
51 views

What's the concept of these three options for configuring the memory of STM32?

I have read the STM32F10x Reference manual but a section about "Reading the Flash memory" is not clear to me, yet. I mean this part(page 59): I have several question: What's the Latency? in fact ...
3
votes
1answer
156 views

Unable to read file greater than 2K in FatFS

I am reading a file from the SPI Flash with FATFS file system, on STM32F103 platform running FreeRTOS. I can successfully read File of size less the 2048, but if read a file file of size greater than ...
1
vote
1answer
114 views

MSP430F5438A: How can I see the flash memory content in CCS?

I have to establish a file transfer mode between C# and CCS. To make sure the text files has transferred properly, after sending a file I read it from C# to compare with the origin. I need to look at ...
1
vote
1answer
253 views

FATFS porting on STM32F103 SPI Flash

I have ported FATFS for Free RTOS on STM32F103 SPI Flash of 32 Mbit. In a demo Application I have successfully created a file, written a file, and read back from the file. My requirement is like I ...
-1
votes
1answer
157 views

Flash Mem. Read/Write

Using SerialPort communication between PC and MSP430F5438A. It's C# on the PC side and Code Composer Studio (CCS) on the MSP430 side. I'm sending "Hello World!" to MCU. I set the flash pointer to ...
10
votes
2answers
546 views

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 ...
2
votes
1answer
237 views

jpeg images in STM32 internal flash

I'm using both STM32F103 and STM32F407 with a SEPS525 SPI driven OLED display (160x128). I want to store images to display in internal flash, but BMP uncompressed images with 16bit colors are huge ...
26
votes
9answers
4k views

Is firmware code or data?

When someone says they "flashed" firmware to a device, I'm curious as to what this actually implies. Is firmware just a native binary that is stored in memory and that can be interpreted by the ...
1
vote
4answers
188 views

Datalogging on serial flash memory

I am working on a datalogger that writes positions from GPS to serial flash W25Q64FV. I plan to write GPS data every second. I have couple of questions: With this flash memory it is possible to ...
0
votes
0answers
34 views

Timing Issues When Interfacing with E28F800 Flash Chip

I'm trying to interface with an E28F800 via an Arduino Mega and am having trouble trying to program it. I'm successful in reading off the chip by toggling CE# & OE# while asserting an address, but ...
1
vote
1answer
176 views

How does UBI determine a NAND flash block is bad?

I understand that if a block erase fails it can be marked as bad. If a page write fails immediately it can also be marked bad. I have a board that shows "read disturb" and/or "program disturb" errors ...
1
vote
3answers
144 views

“Not mounted” - Meaning on a schematic

I was looking at the schematic of the LPCXPRESSO LPC1769 board from NXP and I couldn't figure out what they meant by "not mounted" which appears on the left corner of the following picture. Here's a ...
8
votes
2answers
613 views

AVR flash memory corruption

This question is related to AVR deprogramming itself. Project info: We have a battery powered product using an ATMEGA644P. The application permanently runs in sleep mode and only wakes up once a ...
0
votes
0answers
46 views

Can't upload program to ATmega16A

I am trying to program my ATmega16A using a STK500V2 programmer. Avrdude throws the following error when I try to program it: avrdude -c stk500v2 -p atmega16 -P NEX-USB-ISP -U ...
1
vote
2answers
325 views

External Code Execution on ARM Cortex M

Is it possible to run code on the ARM Cortex M architecture from locations other than the onboard flash memory (such as another flash chip, SD card)? If so, how? If not, what microcontroller ...
4
votes
1answer
164 views

Look up tables, Flash or SRAM?

A STM32F4 platform is used, which has 192kBytes SRAM, which is sufficient for me. I am trying to build a look up table. The LUT will be used in calculation several times. And I want to put it in SRAM ...
3
votes
2answers
336 views

Reason for choosing SPI based flash devices over I2C ones [duplicate]

I have gone through the below link which says that u-boot support three type of flash technology http://www.stlinux.com/u-boot/flash 1.Nand 2.NOR 3.SPI Serial Flash I would want to know why SPI is ...
0
votes
1answer
228 views

Most reliable Flash memory for an embedded Linux system?

What would be the most reliable Flash memory hardware to use for an embedded Linux system? I.e. one that has the least chance of losing data or getting corrupt when the power goes down? The Flash ...
8
votes
1answer
471 views

How do NAND flash memory writes work?

Below is a picture of my understanding of NAND flash memory operation. NAND flash works by first erasing all the cells in a single block (essentially setting it to '1') and then selectively writing ...
4
votes
2answers
154 views

What is the biggest stable memory overhead for SSDs?

With an HDD, the largest overhead in accessing stable memory (where we measure access time from the moment the instruction passes the MEM stage in the pipeline) is the I/O costs for seeking the right ...
0
votes
1answer
159 views

How to get a .bin program on the STM32F4 discovery board?

Simple question. I want to program this board: http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF252419 On my computer I've generated a .bin file using this library: ...
1
vote
3answers
180 views

Where do you find out how to program a specific microprocessor?

I have experience with AVRs, by programming them through the SPI port, but right now I'm looking at a Holtek HT46R22 and I can't find anything about how to program this Microprocessor. My question is ...