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

2
votes
1answer
44 views

J-Link programmer in Windows 8 don't work

I use the J-Link programmer in Windows 8. A few days ago, my programmer hanged and the LEDs stayed silent, and I, with the help of the Internet, was again using the SAM-BA software to install the ...
0
votes
0answers
16 views

Can FOTA be performed by changing the execution point of the code i.e, changing the program counter in lpc1759

For FOTA can we divide the memory into two blocks, eg : block A and block B. And whenever there is a new version of firmware detected, we shall change the execution point of the code. Is this ...
0
votes
0answers
31 views

Writing data into a SPI Flash using NFC?

I have a 16 Mbit SPI flash. I want to write data to the SPI flash using NFC. I know there are multiple NFC+MCU series out there that can do this. However, the NFC+MCU require JTAG, LDOs, ..etc. The ...
0
votes
1answer
57 views

Prevent design to power up when updating firmware in flash memory

I have an FPGA based design using the MachXO2 by Lattice. I wanted a quick, easy and clean way to perform firmware updates, which are frequent, so I decided to use an external flash memory (AT25SF041 ...
0
votes
0answers
95 views

Bus fault when accessing mcu internal peripheral

I am struggling with a bus fault error on my samg55 µC based on arm cortex m4 architecture. The issue occurs sporadically and is not 100% reproductible. Let me give some details. Application code ...
1
vote
2answers
204 views

Can I lower flash power consumption by pre-flashing all values to high?

I am designing an embedded system that will use either embedded flash memory or an SD card. The system must survive without much power and the estimated 30mA draw of an SD card sounds too high for me. ...
1
vote
1answer
37 views

Confused about the XIP (eXecute In Place) function of QSPI FLASH

There are lots of NOR QSPI FLASH chips that support XIP (eXecute In Place). In this mode the embedded cpu (or MCU) can directly execute the codes stored in the flash. But as we know, the qspi flash ...
0
votes
2answers
102 views

Does the logic inside flash memory devices require a power down after each WRITE operation? [closed]

Does the logic inside flash memory devices require a power down after each WRITE operation? I was confused when reading the datasheet of the Micron Serial NOR Flash Memory. There is "To avoid data ...
1
vote
1answer
78 views

STM32L073xx Internal Bootloader - Get Flash Size issue

I tried recently to develop custom app flasher (based on stm32loader python module) for STM32L073xx microcontrollers but I stuck at one point. This lib tries to obtain flash size from micro because ...
0
votes
0answers
43 views

EPCQL controller

I am trying to access in read and write my EPCQL-1024 from simple soft running in NIOSII. I have the Altera Serial Flash Controller I configured in QUAD mode connected from its avl_csr and avl_mem to ...
0
votes
0answers
30 views

Programming AT89LP52 microcontroller like an AT89S52

I'm trying to run my code on the new AT89LP52 chip which Microchip (A.k.a. Atmel) believes can be a direct replacement for the AT89S52. I am able to program the AT89S52 with my programmer and ...
0
votes
0answers
39 views

Which chip is NVRAM on?

Where is NVRAM(Non-volatile random-access memory)? Which chip is NVRAM on? Is it on Flash, CPU or RAM? I have an embedded Linux router, which according to google has ...
0
votes
1answer
56 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
40 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
75 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
48 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
26 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
70 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
42 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
31 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
240 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
51 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
69 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
31 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
61 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
172 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
70 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
91 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
48 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
72 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
400 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 ...
3
votes
2answers
669 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
131 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
144 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
201 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
379 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
273 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
47 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
83 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
122 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
268 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
69 views
0
votes
1answer
328 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
49 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
66 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
51 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
79 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
45 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 ...