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.

Filter by
Sorted by
Tagged with
0
votes
0answers
28 views

HC908 MCU Programming

I'm trying to program an MC68HC908QB8 MCU by attempting to enter monitor mode using this circuit: The requirements for entering monitor mode are in this table: But when trying to connect using the ...
0
votes
1answer
82 views

How is an EEPROM different from a Flash memory? [duplicate]

I am trying to understand the terminology used for various non-volatile memory chips for example as EEPROM and Flash. Is there any preference to use the word EEPROM or Flash for specific type of ...
3
votes
2answers
91 views

How to detect Corrupt Flash Memory? [on hold]

I am checking PCB board of a commercial device that has W25Q256JV 32MByte SPI Flash on it. The device is in use for more than a year now at more than 2000 client locations. It has internal backup ...
1
vote
1answer
87 views

Where should hardcoded variables typically be stored in FLASH on a microcontroller?

I want to store calibration data on a microcontroller (namely the STM32 line) however with a large amount of flash memory available to ustilise, I wondered if there is a standard area of memory that ...
0
votes
0answers
41 views

Flashing a brand-new ESP8266EX with empty W25Q32

I made my own WiFi circuit board using ESP8266EX and a W25Q32 flash (bought from Mouser). My problem is it is not flashing. I used NodeMCU flasher and ESP flashing tool. It only gives boot mode 1,7 ...
0
votes
1answer
40 views

Potential causes of Atmel “system” failure after reflash with same binary

I'm working on a small "cartridge"-like subsystem which attaches to the main device via a 20-pin connector. On the cartridge, there is an ATmega16a microcontroller and an AT45DB081D flash. I needed ...
0
votes
0answers
16 views

Writing to external flash on Renesas Super-H 3 (7706) based board

I've been reverse engineering firmware/software that runs on an old Roland sampler. I'm at a point where I'd like to test some changes I've made, but I need to be able to recover in the event I brick ...
0
votes
1answer
27 views

Flashing firmware onto NXP QN9020 via SEGGER J-Link

Here I am attempting to flash the firmware using SEGGER J-Flash Lite. Below is the ouput when attempting to connect via the SEGGER J-Link Commander. ...
0
votes
0answers
41 views

Writing Flash Memory Serially

I am looking into writing data onto some Flash memory serially, the requirement is to replace the old parallel programmer with a serial based programmer example Cheetah SPI Host Adapter. The Flash ...
0
votes
1answer
53 views

How to connect a W25Q64 3.3 SPI Flash to a 5V Arduino Mega?

I need memory to read from, for my project. I first intended to use an SD card, but I now found out a W25Q64/128 SPI Flash is more practical, since I don't need to write data. However, this W25QXX ...
1
vote
1answer
144 views

Put saved data in flash of STM32 at the end of all other sections

I want to emulate EEPROM over flash of STM32F103. Is there a way to use all free flash instead of the only page? How can I initialize starting point of my EEPROM emulation so that it would be after ...
1
vote
2answers
86 views

Which flash sector to write into?

I need to save working configuration of my embedded application to the flash memory. I am using STM32f746 uController. According to the datasheet. There is 8 sectors on the main block of the flash ...
27
votes
8answers
5k views

Why do we need a bootloader separate from our application program in microcontrollers?

Why do we need a separate program in the same flash program memory of a microcontroller, specifically STM32F103, which is called a bootloader? What is special about it to keep it separate from the ...
0
votes
1answer
32 views

Do I have to do anything special if I want to connect to a chip with SWD and SWDIO and nRESET are on the same pin? [duplicate]

I want to wire a MDBT40-256RV3 to a SWD programmer and on the programmer nRESET and SWDIO are on separate pins but on this chip they share the same pin, so how should I wire that?
0
votes
1answer
36 views

What pins on a nRF51822 do I connect to a STM32 programmer?

I want to be able to program a nRF51822 with this programmer but I'm not sure what pins on the actual chip I should use, and all the guides seemed to be using a different chip
0
votes
0answers
35 views

Which sector of flash to store “user configuration” bytes in? STM32F303K8

I'm working on a project in which I'd like to store about 10 "configuration" bytes somewhere in flash, as I'd like to have the same firmware run on different boards with different settings. It doesn't ...
0
votes
1answer
62 views

Small package SPI Flash IC as logger?

In a project where we use STM32 as a microcontroller, we need to record 512Mbit data. As far as I know, NAND flash ICs are used extensively in flash memories(From ISSI,Panasonic,Samsung,Toshiba.. ...
0
votes
1answer
50 views

What QSPI chip is on ItsyBitsy M4 Express?

I'm trying to find out the name of the QSPI chip that is used on ItsyBitsy M4 Express boards. On the image below is very faded:
0
votes
1answer
36 views

NOR Flash - Max Frequency of Operation

I am wokring on a board that uses Micron 1Gb QSPI (mt25qu01gbbb8e12-0aat) to load configuration on to FPGA at power on. As per the datasheet of QSPI (https://www.micron.com/-/media/documents/...
0
votes
3answers
27 views

Can I overwrite a single byte in AT26DF081A Flash / SST25VF080B Flash?

Is there any method to rewrite a single byte memory without erasing 4KB block? I am keeping address table in one 4KB block.I need to update adresses occasionally. Do I have to copy all addresses to ...
2
votes
4answers
75 views

Handling brownouts during external flash writes

What techniques should be applied for writing flash in systems that have inherently unreliable power? Is there any good reading material on the subject? If I have a microcontroller writing sensor ...
0
votes
1answer
73 views

Storing values in the internal flash memory

I want to reserve a space in the internal flash memory of my microcontroller (STM32L4) to store the latest 100 measured values by a sensor (in a circular FIFO Fashion) and be able to load them again ...
1
vote
3answers
86 views

Will external high electric field strength erase flash memory?

Simple question - given that electric fields are used to program and erase flash memory will placing such a memory in an external high voltage gradient damage them, or damage the bit integrity? I am ...
1
vote
0answers
40 views

Reliable methods to read data off a flash chip?

I'm trying to read data off of flash chips on a variety of embedded devices I have, and I'm currently using an FTDI FT2232H and flashrom (with soic-8 clips and probes) to extract the data as they are ...
0
votes
1answer
18 views

Flashing LPCXpresso1769 with FlashMagic

I'd like to use Flash Magic to load programs onto my LPCXpresso1769 development board (https://www.embeddedartists.com/wp-content/uploads/2018/06/LPCXpresso1769_CD_revD.pdf), via ISP. I purchased a ...
4
votes
3answers
637 views

How to properly use STM32 flash memory as an EEPROM?

I have to save certain parameters to the flash memory and these values should be non-volatile. But my program will change these parameters and I want the changes updated to the flash. I understand to ...
1
vote
1answer
137 views

First time using a Raspberry 3B+ for 1.8v SPI BIOS flashing, I have some questions first

So this is the first time I'm attempting to flash a BIOS chip using a Raspberry Pi 3B+. I have the following items with me, a SOIC-8 clip, a Bi-Directional Logic Level Converter, and a Raspberry Pi ...
0
votes
1answer
13 views

Is it possible to add a UID to M45PE10-VMN6?

Is it possible to add a UID to p/n M45PE10-VMN6 ? We need to add this security feature to these chips, but I am assuming it needed to be done at factory. Originally we could have purchased p/n ...
0
votes
0answers
16 views

Modify Hex (or svf) File to set Word in Flash (ATMEGA)

I work as a testengineer and I try to manually add a 16bit Word to the Flash of a Atmega16. We don't have the source of the firmware and I programm the firmware over JTAG with a convertet svf file. ...
1
vote
0answers
116 views

Why isn't NAND flash memory designed to be able to erase a page?

From the book named NAND Flash Memory Technologies, we can learn (Page 26): The erase operation is performed in block units, as shown in Fig. 2.15. The wordlines of selected blocks are grounded and ...
1
vote
1answer
53 views

QSPI for shared XiP and file system

Is it possible for a single-die QSPI NOR flash module be simultaneously used for both XiP and a file system? By simultaneous I mean that a function running from XiP accesses data elsewhere on XiP. ...
2
votes
0answers
27 views

What are two typical threshold voltages for a flash FET?

I have a simple question for you all: what is a realistic approximation of a pair of threshold voltages for a flash transistor? I am working with NAND flash, 45nm, with VDD = 0.8V. I can find lots of ...
2
votes
1answer
372 views

How to Hardware Write Protect Flash SPI, Setting WP# pin signal low stage [Asus P5Q Pro + MX25L8005 SPI]

As a pen testing & security experiment and feature I want to enable write protect on my SPI Flash MX25L8005 module on my motherboard to protect the SMM modules, AML, ACPI and other areas of the ...
0
votes
0answers
39 views

why in the design of the flash memory the controller must erase before writing?

I understand well that for commercial reasons and for making the flash memory faster in writing, the flash memory is written page by page. But why we must erase all over the block before writing to ...
0
votes
1answer
165 views

Reading a MD25Q128SIG SPI flash memory with raspberry pi

I'm trying to read a MD25Q128SIG SPI flash memory with my raspberry pi, you can find its datasheet here: http://www.firstjit.com/Uploadfiles/20160121152131319.pdf Here are raspberry pi pinouts: Here ...
0
votes
1answer
45 views

Separate Vector Table for USB Bootloader (Infineon 4400-CortexM4F)

I am developing a USB bootloader for Infineon XMC 4400 micro . I have modified linker_Script.ld file and have allocated 32K for flash. MEMORY { ...
1
vote
0answers
55 views

Which pins are required when reading and writing NAND flash?

I plan on reading and probably writing NAND flash on some embedded devices or USB flash drives. I did not come across many examples for in circuit reading though I'd give that a try at first if ...
0
votes
0answers
79 views

EEPROM and Flash testing

I am looking into the best practices for EEPROM and Flash memory testing. We are talking about end of line product testing by an ATE. The goal is to identify defect chip before writing memory content. ...
0
votes
2answers
214 views

Using Arduino Mega as Atmega2560 AVR development board with Atmel Studio 7

(updates at end) Qualifier: I am posting this here and not on the Arduino Stack Exchange because my question is about firmware development and not Arduino development. Project: I am designing a PCB ...
0
votes
2answers
54 views

Flash Write protection to prevent access to firmware [closed]

I am reading up on ways to provide security to software images on boot devices. In this regard, I was reading up that if bootloader resides on Flash then using flash memory write protection, the ...
1
vote
3answers
140 views

Circular buffer in flash

I have been facing following problem. I have implemented a datalogger i.e. software running on a MCU which creates periodic snapshots of a system state (values of some quantities of the system). ...
1
vote
0answers
60 views

S25FL512S flash driver, read or write not working correctly

I am trying to write a driver for an S70FL01GS chip, which is two stacked S25FL512S chips. I am successfully reading status register, SFDP register, RDID, etc. I am also able to toggle (and verify) ...
0
votes
0answers
65 views

Can we store hex data through UART into flash and RUN it from that particular location

I am trying to store my hex file in another sector of the flash memory i.e (0x00050000) I want to store a hex file at different sector of the flash and to change the execution point to that address ...
-3
votes
1answer
268 views

How to write STM32F4 OTP Area

I am reading the reference manual page 75 that shows the flash memory organization of STM32F4 MCUs. There is an OTP area of 528 Bytes in it as shown in the image: Is it possible to write on this OTP ...
0
votes
0answers
184 views

STM32CubeProg vs STLINK Utility

There are 2 software tools provided by ST to flash their STM32 MCUs namely STM32CubeProg and STLINK Utility STM32CubeProg Page says: STM32CubeProgrammer (STM32CubeProg) is an all-in-one multi-OS ...
0
votes
1answer
43 views

Minimal circuit to flash STM32F4 using STLINK

I wonder if I need to put some circuit between STLINK and STM32F4 MCU to flash it or does it simply require to connect the wires 1:1 directly? I cannot find it in the datasheet.
2
votes
1answer
48 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
22 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
33 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
75 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 ...