Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

1
vote
0answers
39 views

Flash memory programming failure

I'm working on an XScale PXA270 with NOR Flash on Chip select 0. Due to the obsolescence of the previous flash, my company changed it for an AMD/Spansion compatible MX29GL128. I'm trying to write on ...
3
votes
1answer
86 views

SPI Flash Memory with ATMega1284

I have connected a SST26VF064B 8Mb flash memory IC to an ATMeag1284 as shown in the following diagram. My plan is to talk to it using SPI. Note that all capacitors in the schema are 100nF. When ...
1
vote
0answers
67 views

(Arduino) When turning TIP120 on again, sometimes the slave flashes trigger without being told to. Why?

I have two mini slave flashes, that have no stand-by modes by themselves. So, even when charged and ready to flash, current keep flowing from the two AAA batteries each, and, if I forget to turn them ...
2
votes
2answers
52 views

A question about SPI flash operating frequency

I'm working on a flash chip "W25Q128BV". I get really confused on the operating frequency of this chip. As we can see, "Read Data" instruction is comprised of 3 steps for master: sending opcode, ...
1
vote
1answer
37 views

CRC generator polynomial for data flash memory storage

I have been facing a problem how to implement embedded software configuration parameters management system. It means how to implement a software module which will be responsible for storage of for ...
0
votes
0answers
48 views

ESP32 is unable to flash

I have schema with PCB. In my first version I couldn't get working CP2102 so I found small PCB on ebay to get it working. I can connect it to PC. PC recognize CP2102 which is okay. I already tested ...
0
votes
1answer
55 views

Stack overflow results

I have been forcing a problem regarding to corruption of the MCU flash memory content during software running. This corruption occurs randomly and I have got an idea whether the flash memory ...
5
votes
2answers
1k views

What is the meaning of this line? “Memory-mapped, cached view of external QSPI flash. The cache is specified as 32 KB with 4-way associativity.”

Memory-mapped, cached view of external QSPI flash. The cache is specified as 32 KB with 4-way associativity. Does it mean that my external QSPI Flash is only 32Kb or it has been memory mapped onto ...
5
votes
2answers
295 views

STM32F0 - run user program from SPI flash memory

I'm building an application based on the STM32F030F4P6 microcontroller. During the development of the firmware, I realized that the flash memory of the microcontroller is too small. Can I run my ...
1
vote
2answers
138 views

STM32F4 Adjust linker script to save memory for EEPROM emulation

I need to reserve FLASH for my the virutal EEPROM emulation on an STM32F405VGT6: https://www.mouser.ch/datasheet/2/389/stm32f405rg-956214.pdf The pages I need are in Sector 2 and Sector 3 of the ...
0
votes
0answers
35 views

STM32F405VGT6 PGPERR and PGSERR when write to Flash

I have some difficulties to use the emulated EEPROM library from STM32 for an STM32F4 microcontroller. I nearly always get a PGPERR and PGSERR back when I try to write to the flash. PGSERR seems to be ...
0
votes
1answer
58 views

STM32 Virtual EEPROM Page Swap not working correctly

I try to save a look up table in the flash memory by using the virtual eeprom library from STM32. I chose a page size of 3kByte to save all the data and it works good until the page is full. Then, the ...
0
votes
2answers
84 views

In-system programming of the SPI Flash chip [closed]

Device have Serial NOR Flash chip MX25L6406E located on the rear of the PCB (SO-8/SOIC-8 Package). Is it possible to program chip without desoldering it? (In-system programming). As I know, it depends ...
2
votes
5answers
158 views

How does JTAG program an MCU

How would JTAG program an MCU with flash memory? I realise that this probably varies from chip to chip, but I'm assuming there's some process they all have in common. Specifically, I'm asking in ...
0
votes
1answer
79 views

STM32 Flash erase sector 0

I have an updatable project with stm32f407. Code produced by cubeMx. Updater code check new update from internet and if is avaliable write main program on 0x08020000(sector 5) and this updater code ...
0
votes
0answers
33 views

Invalid read data when using DMA for SPI with flash

To read 100 bytes from SPI flash I need to send 5 byte commands and 100 bytes of fictitious write. I configured 2 DMA channels for sending 105 bytes and 3 channels for receiving 105 bytes respectively....
1
vote
4answers
72 views

How much FLASH memory is free for a program?

I'm programming for a STM32F103C8T6 (aka blue pill), with the be datasheet here. On page 14 it states: 2.3.2 Embedded Flash memory 64 or 128 Kbytes of embedded Flash is available for storing ...
0
votes
1answer
55 views

read from uint32_t in flash is zero STM32F1

I am working on an STM32F103RBT6 program and at some point I need to store values in the FLASH. Writing in Flash is working as a charm, if I parse through the memory of my microcontroller, I see that ...
0
votes
1answer
104 views

STM32F1 Flash erase not erasing

Hello everyone, I am trying to write in the FLASH of my STM32F1, but for some reason it is not working ... Whenever I am programming something, it wil return an error : HAL_FLASH_ERROR_PROG which ...
0
votes
1answer
61 views
0
votes
1answer
164 views

I can't flash my new ATMega328p with PL2303 USB-TTL converter

I've soldered my ATMega328p-au to a SMD to DIP board, and I've connected pins like this: USB | ATMega RX ---> TX TX ---> RX 5v ----> 5v GND -> GND and GND --> button --> RESET My USB-TTL converter ...
9
votes
4answers
5k views

Why isn't the BIOS' ROM chip made using CMOS technology?

After reading a computer hardware course on BIOS/CMOS, I'm still unable to determine the reason why the BIOS' ROM chip isn't built using CMOS technology, and why it is connected to a separate chip ...
0
votes
0answers
36 views

Writing data to external Flash Memory chip

I develop a microcontroller project that requires writing big chunks of data in a Micron 4Gb SPI NAND Flash memory and I am a little confused regarding manipulation of the Flash memory blocks. ...
0
votes
1answer
62 views

Configure microcontroller flash memory as ram?

Is there anyway i can use micro-controllers flash memory as a RAM as i need 150kB of buffer but controller has 32kB of RAM and 512kB of Flash? Also can i use this ram as stack or heap?
0
votes
0answers
40 views

How to combine uBoot, uImage and rootfs to flash them into EEPROM?

So, I'm trying to restore an IP camera that uses HiSillicon 3518EV200 SoC, after I accidentally overwrote the original firmware. Using a buildroot fork that includes all the necessary bits from the ...
0
votes
0answers
49 views

Possible to replace worn out NAND chips in solid state drives?

I understand that SSD endurance is typically much greater than advertised and disregarding any form of data recovery, is it possible to replace NAND chips in solid state drives (with the exact same ...
0
votes
1answer
104 views

FLASH Programming

I want to write a halfword data to a certain memory location. I am using the following code to write but the data is not appearing in flash memory location if i check. ...
0
votes
0answers
33 views

Writing unused areas of a page on a NAND flash

I'm working on a project based on the ESP32 that uses a NAND chip from the GD5F1 family (link to the datasheet). Sorry for the long question, but it's a bit convoluted, and it's driving me nuts for ...
0
votes
1answer
75 views

STM32F407 Flash sector auto cleared after programming

I've tried to do flash logger function for my device based on STM32f407 and found some problem with flash: If I uncomment function for clear sector, after load program my dummy data on first page is ...
0
votes
1answer
268 views

Automotive ECU Flash and EEPROM memory mapping

I'm trying to access data stored in the eeprom of an automotive ECU and I'm short on experience. My question is how flash and eeprom are mapped and accessed by the micro. I haven't looked at the ...
6
votes
4answers
624 views

Creating programmable look up table on STM32

I am trying to define a look up table that is not a constant on an STM32F103. Basically I want to have a page of flash that acts like a constant lookup table in normal operation, but every once in a ...
0
votes
2answers
47 views

Loop on flash memory

I have flash memory that I write assembly code on it. I know that flash has limit cycle ( read/ write) If I write a loop that run 100,000,000 times like ...
0
votes
0answers
69 views

By which hardware i can write my programming code into a Flash memory?

I am using EFR32MG Microcontroller and i am adding Serial Flash memory MX25R8035FBDIL0 with it,Now which hardware i should add on my schematics design so that i am able to upload my program into ...
0
votes
1answer
74 views

Reuse a S25FL256S SPI 32MB flash module even when it is possibility protected?

This is my weekend toy, a Spansion/Cypress fl256saif00 (S25FL256S), a 32MB SPI module. This chip is salvaged from a Cisco EPC3928 Docsis 3.0 Modem Router (2012). The (first) challenge was to be able ...
0
votes
1answer
170 views

Avoid using HOLD and WP on SST25VF080B SPI Flash IC

I have recently purchased SST25VF080B SPI Flash SST25VF080B SPI Flash Datasheet I have downloaded the software driver (written in C?) SST25VF080B Software Driver Since I want to use it with a ...
0
votes
1answer
447 views

How do I find out at compile time how much of an STM32's Flash memory and dynamic memory (SRAM) is used up?

IF THIS IS A BETTER QUESTION FOR STACK OVERFLOW, CAN AN ADMIN PLEASE MOVE IT? I think I have the answer for Flash memory, but the RAM question still eludes me. Arduino has this super nice feature ...
1
vote
1answer
43 views

Flash ADC negative values

How can you represent negative values using the flash ADC method? In books and online I have only ever seen positive references for the comparators used in the flash ADC architecture. For a simple ...
0
votes
1answer
93 views

Programming an MCU with an unknown toolstack/SDK

I want to add Wi-Fi functionality to existing circuitry on a PCB by wiring in an ESP8266. However, this requires me to reprogram the existing MCU on the board. I have identified the MCU as an SG8F080P ...
0
votes
0answers
127 views

SPI Slave MISO Stuck High

I'm currently trying to connect a Macronix MX25L6406E SPI flash memory chip to a Raspberry Pi so that I can (hopefully) dump it's memory. I am using a small Python script to bit-bang the commands and ...
3
votes
1answer
181 views

SPI clock - slow frequency but fast rise time issue with waveforms

Background on the issue: I currently have an SPI bus between an Atmel ATSAM3X8E and a Spansion FL164K flash memory chip. SPI has always been super reliable for me in past projects, but this design ...
0
votes
1answer
208 views

Why is NAND flash slower than NOR when it comes to reading?

I have read on several places that NOR flash have lower latency when it comes to reading compared to NAND version but I don't understand is this architectural consequence or due to, often different, ...
4
votes
2answers
561 views

Flash storage: Limited read cycles?

Comment from http://electronics.stackexchange.com/questions/356185/nand-flash-retention-using-usb-charger/356190?noredirect=1#comment855287_356190 claims that reading from flash storage is no lossless ...
0
votes
0answers
59 views

Why are microcontroller flash memories separated into sectors?

Take as an example the stm32f429. The flash memory is separated into 11 sectors: sectors 0,1,2 and 3: 16KB each sector 4: 64 KB sectors 5-11: 128 KB each What is the deal here?
1
vote
1answer
143 views

Using High Endurance Flash Memory on PIC processor

I am designing with a PIC10F322 ( http://ww1.microchip.com/downloads/en/DeviceDoc/40001585D.pdf ). I want to use the "high endurance flash memory" and the document states that the high endurance ...
1
vote
1answer
96 views

Design of NOR FLASH memory

I often see the block structure of NOR with source line for every pair of cells: However, in this answer there is a design with source line for every cell. It confuses me because in this case I can ...
1
vote
1answer
352 views

Sending SPI signals to the Flash Memory through verilog FPGA controller, but not receiving anything from it, why does it happens?

As a school project I want to write a very simple controller for a flash memory in a IC board. The FPGA chip is Altera 5CEFA4F23C8 and the flash is MX25L3206E. I did an effort to produce the SCLK, SI ...
2
votes
0answers
131 views

Dumping contents of read-protected PIC

I have a need to read out the flash memory of a read-protected PIC16F57 (this is for legal purposes). From my basic research, there appears to be no way of doing this short of decapping it and reading ...
0
votes
1answer
56 views

How to prevent SOIC8 clip from backfeeding

I'm trying to read the flash ROM using a SOIC8 clip, on board. I am horrible at surface mount soldering. Is there a way to use the clip on the board, without removing the chip, and not have the SOIC8 &...
0
votes
0answers
200 views

Bus Pirate Flashrom OTP chip issue (Winbond W25Q128FV SPI flash)

So I have an embedded device with a Winbond W25Q128FV SPI flash chip on it and I am trying to extract the firmware by dumping the flash memory. So far I have used a Bus Pirate with Flashrom to do so. ...
-1
votes
3answers
154 views

How is the memory allocated in an AVR?

I'm writing a program for the AVR microcontroller, and my code experiments has led me to both confusion and discovery. Here is first code: ...