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

0
votes
1answer
26 views

How to write more than one page at once in Winbond W25Q32JV

I am using Eclipse IDE for firmware development. I am using Quectel MC60 module with Winbond W25Q32JV (4 MB memory). The thing is that I am able to read/write single page. I am facing issue with ...
0
votes
0answers
38 views

BBB Flashing Loop

So generally I have no problem flashing my BBB with the SD I have. I do it all the time, and it works on most board. However occionally it gets stuck in this "loop". It will flash the device ...
2
votes
2answers
61 views

MSP430F5529: Unable to write to FLASH

Background: I am trying to write an 8-bit value to Info C block of FLASH on the MSP430F5529. Info C starts at address 0x1880, so I use a #define to keep this value:...
2
votes
2answers
32 views

PIC24 DATA EEPROM Emulation __builtin_tblpage error

I am using PIC24fj256ga702 controller in my project. I wanted to store some bytes data in a non-volatile memory in case if there is a power loss. so i wrote some functions following http://...
0
votes
0answers
21 views

Why does N25Q512 has 0x20 for capacity ID?

Command 0x9F is expected to return three bytes - manufacturer ID, and two bytes of ID[15:0] with LSB being capacity ID. I am building catalogue of the serial flash chips basing on this excellent ...
0
votes
2answers
56 views

Are SSDs true random-access devices?

Since all kinds of flash memories feature different transfer rates according to the kind of operation performed at a given moment (e.g., random access reads versus random access writes, random access ...
0
votes
1answer
37 views

Get more AS-attached flash chip information from ALTASMI

I am playing with the attaching various configuration flash devices to the Altera Cyclone 3. In particular, I want to replace EPCS16 (2MB) with W25Q128 (16MB) - for both size and cost reasons. Is ...
0
votes
1answer
28 views

Are there ways/technologies to use High negative voltages in flash memories?

I am using an FGMOSFET with tunneling gate and control gate as an analog memory for simulation in SPICE. I use -25V to inject electrons into the floating gate and 25V to remove electrons. Everything ...
0
votes
1answer
153 views

On AVR-GCC, how can I find out what statically initialized variable is using up my RAM?

The variable does not show up on the MAP file so it is hard to track it down. I'd rather not have to manually search though all the source code looking for static initializers.
0
votes
1answer
50 views

PIC32 data storage in flash change / corrupt

I have some random issue with data saved in flash on PIC32MX470F512L. Since there is no EEPROM, part of the flash storage is used to save configuration and some statistics (ie.: reboots reason, ...
2
votes
1answer
55 views

Why does the QUAD INPUT PAGE PROGRAM OPERATION command exist?

While reading the datasheet for the IS25LP512M series of Flash devices from ISSI I came across this weird command, 32h/38h called "QUAD INPUT PAGE PROGRAM OPERATION" (in section 8.11) with the ...
1
vote
1answer
28 views

Writing to FLASH on MSP430F5529

I am having some trouble writing to FLASH on the MSP430F5529. I have gone through the examples provided by TI and read through the user guides and part datasheet, but have been unable to find the ...
1
vote
0answers
50 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
2answers
133 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
68 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
62 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
44 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
1answer
80 views

ESP32 is unable to flash [closed]

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
65 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
345 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 ...
2
votes
2answers
388 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
84 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
98 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
129 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
215 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
183 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
43 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
78 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
90 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
180 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
65 views
0
votes
1answer
248 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
44 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
63 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
44 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 ...
1
vote
1answer
72 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
0answers
38 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
84 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
2answers
499 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
751 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
51 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
70 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
88 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
241 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 ...
1
vote
1answer
709 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
48 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
97 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
169 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 ...