Questions tagged [flash]

Flash memory is a type of memory available on the Arduino boards. It can be accessed from a program using PROGMEM directive to store data. For questions about using and accessing flash memory, use this tag.

Filter by
Sorted by
Tagged with
2 votes
1 answer
48 views

Micropython installation on Arduino nano

I am currently trying to use micropython on an arduino Nano 33 BLE using MacOS. Following the instructions from arduino website I was able to complete steps 1-3. At step 4, I can find the bossac file ...
Saif's user avatar
  • 21
2 votes
2 answers
266 views

How .data + .text section can be = How much flash the final program will consume

I could not understand one point related with Arduino code. Let's say i have following code void setup() { Serial.begin(9600); Serial.println("foo"); } void loop() { } When i ...
embeddedstack's user avatar
1 vote
0 answers
94 views

cant flash my nodemcu esp8266

So i wanted to flash my Nodemcu esp8266 v3.4 with esp8266 deauther code: script-github i did everything said. First i plugged in my nodemcu. Windows detected it and drivers for ch340 where already ...
Jakob's user avatar
  • 11
0 votes
0 answers
79 views

How to upload firmware to my board

I am using platformio to develop ESP32-S2-MINI-2. I want to send it to factory to test it and they are not using platformio to upload. Do they also need to flash bootloader.bin and partition.bin? in ...
Jess's user avatar
  • 11
1 vote
0 answers
29 views

How to prevent the application code from getting stuck in forever loop when using SerialFlash library in Arduino-Adafruit framework

I have been working on a project that runs on Adafruit's Bluefruit nRF52 board. I used the SerialFlash library for Arduino provided by Paul Stoffregen: https://github.com/PaulStoffregen/SerialFlash....
Aashyk Mohaiteen's user avatar
1 vote
1 answer
257 views

Arduino Nano IOT33 - Using flash

I'm looking for a way to store data on flash as on ESP8266 or ESP32 using FS.h, LITTLEFS.h but it fails. Is is possible on Nano IOT33 ?
guyd's user avatar
  • 993
1 vote
2 answers
321 views

Is there a good reference for Arduino Due memory architecture and usage?

It's been harder than I expected to find a reference source or usage guide. There's a number of sources I've looked at along the road to this question: The Due is listed here and here as having 512KB ...
RowanP's user avatar
  • 851
0 votes
1 answer
373 views

How I can populate a buffer from data read from SPI?

I have wired a Macronix MX35LF1GE4AB Flash memory into an arduino Uno using Logic Level Shifters. What I try to do with it is to dump its contents. In order to do so, I am implementing the following ...
Dimitrios Desyllas's user avatar
1 vote
1 answer
192 views

Reading & writing a configuration file on an Adafruit Circuit Playground Express

I would like to store an application's configuration in a file stored on the Circuit Playground Express (CPX) flash. The application itself needs to be able to update the configuration file. Things I ...
user3308886's user avatar
1 vote
1 answer
1k views

How to set the eeprom initial value when flashing an ESP32

As I use the EEPROM to persist data such as for provisioning the WiFi (SSID and password), I'd like to make sure that the very first time the ESP32 runs, it finds the initial '\0' for the SSID so that ...
Stéphane de Luca's user avatar
-1 votes
1 answer
802 views

ESP8266 module ESP-12F does not connect to esptool.py

I have bought some blank ESP-12F modules like this: https://www.aliexpress.com/item/1005001520382593.html For these modules I have made my own adapter PCB to connect them, but now I don't get any ...
Karsten's user avatar
1 vote
0 answers
162 views

Fatal exception preventing flashing ESP8266 ESP-01

My issue arose when attempting to flash several of my ESP8266 ESP-01 module (https://www.aliexpress.com/item/33010444450.html?spm=a2g0s.9042311.0.0.27424c4dNkKYQZ). In the past and with the first chip ...
Toutloes's user avatar
1 vote
0 answers
529 views

Arduino Mega as a EEPROM Programmer for Winbond W29EE011 memories

I'm trying to use my Arduino Mega as an EEPROM memory writer. For this project, besides my Arduino Mega, I use an SD Card module, an LCD display and two push buttons to handle the events. Inside the ...
Dan Fayal's user avatar
1 vote
0 answers
394 views

ESP32 Espressif ESP32_DevKitC_V4 in platformio: flash issues

I am using the Espressif ESP32_DevKitC_V4 with platformio, and i cannot flash the board. I read about the various "button dance" procedures, and the ES32-WROVER and the ESP32-WROVER-B seem ...
OpenGears's user avatar
2 votes
0 answers
86 views

Reading and writing to GD25B32CPIG flash memory

I recently removed a GD25B32CPIG flash memory chip from a commercial coin-operated arcade game. Apparently it has all the game's sounds stored directly on the chip. I decided to see if I can learn to ...
Ben Stafford's user avatar
2 votes
1 answer
180 views

Arduino does not boot when SPI lines are loaded

i connected an Arduino Nano to an external SPI Flash using THIS tutorial (russian) and the SPIMemory library. While accessing the Flash works well, i have encountered the following issue: The Problem: ...
Sabulanis's user avatar
2 votes
3 answers
2k views

Arduino Nano 33 BLE - use of flash to store data; how to expand a piece of sample code

I've been looking into how to store data in between restarts. With an Arduino UNO, there are plenty of EEPROM libraries, but I'm not finding something 'off the rack' for the Arduino Nano 33 BLE. I ...
asylumax's user avatar
  • 239
1 vote
1 answer
175 views

How do I get the size of my program at runtime?

(This question is specific for the Arduino Due, but maybe there's a general answer to the question) I'm using DueFlashStorage to store application data in the flash memory of my Arduino Due. That ...
PMF's user avatar
  • 1,261
1 vote
1 answer
109 views

Node MCU not functioning correctly

i have a node mcu and i uploaded one example code to test it for rf signal decoding it worked. so after that i have written a code based on that and when i uploaded the code my node MCU suddenly isn't ...
rohithrathod banoth's user avatar
2 votes
0 answers
487 views

How to adjust Partition Scheme Wemos D1 mini pro?

I bought myself a WEMOS D1 mini PRO (16MB) for creating a quite large project. As I'm writing code, my memory is starting to grow. When I looked at the Flash size in Arduino IDE, the only options I ...
Jens Vanhulst's user avatar
1 vote
0 answers
247 views

How can we remove unused feature in Arduino's standard SD library so we can reduce the sketch size?

With the ReadWrite example in Arduino IDE, the sketch size is 10980 bytes (34%) of an Arduino UNO's storage. How can we reduce the sketch size? There isn't any kind of #define to turn on/off features ...
raspiduino's user avatar
0 votes
2 answers
908 views

D1 mini esp8266 error: esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header

I am pretty sure this device worked yesterday. I tried to short GPIO0 to ground (flash), nothing. I have a second ESP that uploads fine, but this one does not. Is their another way to get this ...
brad's user avatar
  • 201
1 vote
1 answer
537 views

25Q128 flash and garbage data over SPI

I have a logic analyzer coming in the mail, but thought I might ask for help here first. I soldered the 25Q128 flash onto an adapter and wired it up to an Arduino UNO clone as you can see in the ...
atx's user avatar
  • 111
3 votes
1 answer
290 views

Extend program space by getting rid of bootloader on NANO

I just have a complex program that runs on a NANO. Now when I use my printlns for debugging I am running out of memory. I read about using a programmer to get rid of the bootloader that uses 2K space ...
GeKu's user avatar
  • 33
1 vote
1 answer
1k views

ESP32: best way to embed certificates

I'm using the Arduino framework on an ESP32 based board. The board has an SD card slot, but I'm not going to use it. Anyway, I need to store somewhere the certificates. To the the firmware I've just ...
Mark's user avatar
  • 357
1 vote
1 answer
662 views

Is it possible to upload and run code from EEPROM during boot time?

I am having problems while writing custom bootloader, so that it uploads code from EEPROM (for now internal, as I have no external memory in my hands) and writes into flash. After ~2 weeks of ...
Miradil Zeynalli's user avatar
0 votes
1 answer
427 views

External RAM (23LC1024) and external Flash (W25Q64JVSSIQ) with Sparkfun SAMD21

i'm trying to extend the capabilities of the Sparkfun SAMD21. My question is, which pins do I have to share? I mean, I understand that MISO, MOSI and SCK are shared, but CS connects each to a ...
Valentino Zaffrani's user avatar
0 votes
1 answer
402 views

Erasing 1 byte of external Flash memory (winbond)

i'm trying to use an external flash memory Winbond 25q64jvsiq for my Arduino Nano based project for audio recording purposes, to have extra memory for recording 1 byte audio samples, since Arduino ...
DSP_engineer's user avatar
0 votes
1 answer
244 views

How are locations in FLASH memory addressed?

There is an external FLASH memory (W25Q80DV) that I want to use with the Arduino. This memory has 4096 pages of 256 bytes each. I want to make multiple writes per page to use memory evenly and erase ...
Delta's user avatar
  • 263
1 vote
1 answer
2k views

ESP8266 OTA update with different flash size settings?

I have an ESP8266 in a project. It's specifically this ESP8266 SMT Module - ESP-12F item. It's been working great with OTA, but I realized belatedly that I didn't change the flash settings when I ...
Brick's user avatar
  • 174
1 vote
0 answers
66 views

Is there a way for an Arduino to flash another one without a computer?

I am going to create a game console. The games will be in an SD card and an Arduino (or an Atmega chip) will read a hex file's contents to RAM and will flash it to another one. Something like this but ...
kahveciderin's user avatar
3 votes
1 answer
285 views

Can I force a function to live in the boot sector without overwriting the bootloader?

Not for any practical purpose but just out of curiosity, I want to abuse the flash memory and write it dynamically at run-time. This is, in a sense, what the bootloader does. If I understand it, the ...
Michael Stachowsky's user avatar
0 votes
1 answer
203 views

Writing to flash memory fails with Optiboot

I am having some issue writing to flash memory on Arduino Uno. I burned the optiboot bootloader that ships with the IDE 1.8.3 to the chip, then uploaded the test_dospm sketch to write content to ...
Falla Coulibaly's user avatar
5 votes
4 answers
1k views

How can a function/method determine if a const array passed in is PROGMEM (flash) or not (RAM)?

Is it possible for a function/method to know if a constant array that has been passed in is in flash or RAM? If I have a method or function that receives a constant array that is in RAM, the array is ...
Casey's user avatar
  • 151
0 votes
1 answer
901 views

esp8266 OTA issue

I have uploaded the BasicOTA sketch in Esp8266-12e. I am written one program, when i try to upload it first time in Esp using the OTA port it gets uploaded successfully, but when i try to upload any ...
java bee's user avatar
0 votes
0 answers
618 views

SPIFFS image does not fit in flash (offset 108MB)

I'm trying to upload an empty SPIFFS image to my ESP32's flash memory via the ESP32 sketch data uploader but I'm getting the following error: [SPIFFS] data : /path/to/my/data [SPIFFS] start : ...
Sim Son's user avatar
  • 1,829
0 votes
2 answers
183 views

Is possible use Macro F() with Integer and Other types of variable?

i have a sketch that is using very memory RAM of my Atmega2560 (is a giant project), and i need use various "println" because i have a TFT screen and i need to show data on the screen to user see. So, ...
luke cross's user avatar
0 votes
1 answer
925 views

make EEPROM.h use custom eeprom partition

I created the below partition table for an esp32 and replaced the 'default_8MB.csv' with it. # Name, Type, SubType, Offset, Size, Flags nvs, data, nvs, 0x9000, 0x5000, otadata, data, ...
Sim Son's user avatar
  • 1,829
0 votes
1 answer
138 views

Porting "far" flash memory access from Arduino Mega to Due

I have a project that runs on the Arduino Mega 2560 which takes up almost the complete amount of flash memory available (https://github.com/fredlcore/bsb_lan/blob/master/BSB_lan.ino). Because of this, ...
fredlcore's user avatar
0 votes
1 answer
360 views

Esp32: upload eeprom file

I'd like to flash the eeprom sector with content so that the eeprom already holds data when it boots the first time. How do I upload such an eeprom file like I would do with avrdude on an atmega? Is ...
Sim Son's user avatar
  • 1,829
2 votes
2 answers
968 views

EEPROM.get returns bad data

I am using the attached code. What I am trying to do is: Test if there is a personalized "board serial number" written in the EEPROM (by previous code run) If data found was not 7 characters (e.g SN-...
adrianTNT's user avatar
  • 252
1 vote
2 answers
1k views

How fast is flash reading compared to SRAM?

I'm working on a project that will eventually scale to 864 LEDs on WS2815 LED strips (three rows of 288 LEDs). I'm currently running it on an Arduino Uno with a single test strip of 144 LEDs. FastLED ...
jonspaceharper's user avatar
2 votes
2 answers
2k views

ESP8266 seems to be bricked , how to recover?

In a part of my sketch I put by mistake pinMode(7,INPUT_PULLUP); Which is dedicated pin for external flash chip (gpio7/SDIO_DATA_0/SPI_MISO) that not supposed to use for sketch. after uploading ...
saif's user avatar
  • 21
0 votes
1 answer
311 views

SPIMemory does not write always correctly

I'm using a WinBond 25Q128FVIQ (Flash 128 mbit, 3.3V) in combination with the Marzogh SpiMemory library on my Arduino Nano (also 3.3V). After using the default example, I found out what was read, did ...
Michel Keijzers's user avatar
-1 votes
1 answer
621 views

How do I set up an ATTiny861A-PU for flashing with Arduino Uno?

I have found instructions for 8 pin Tiny but none for my 20 pin. How do I set this chip up on the breadboard for bootloading with Arduino?
Bookshire's user avatar
0 votes
1 answer
196 views

Memory usage in AnalogBinLogger of SdFat library

The AnalogBinLogger.ino file of SdFat library says the following: Each 512 byte data block in the file has a four byte header followed by up to 508 bytes of data. (508 values in 8-bit mode or 254 ...
Harini's user avatar
  • 55
-1 votes
1 answer
513 views

esp8266 esp01s EEPROM and flashing

which flash option do I need to take to use EEPROM? Can I flash with 1MB and no SPIFFs and still write data to EEPROM? thanks T
riker1's user avatar
  • 1
2 votes
1 answer
61 views

Is it possible to execute a code in runtime when gets updated over the air (OTA)?

I would like to build a lib like ArduinoOTA but with no downtime at runtime. To achieve that I am wondering if it is possible to create a simple setup and loop code to Check for new releases If we ...
marquesm91's user avatar
-2 votes
1 answer
367 views

Arduino DUE- flash space for user

I need for my project to save only 32bit in non-volatile storage. What is the easiest/cheapest way to do that in Arduino DUE? ArduinoDUE is Atmel SAM3X8E so according to the attached table (from ...
user avatar
1 vote
1 answer
415 views

Usbasp Arduino Uno Bootloader Flash Error - Win 10

I'm trying to flash an Arduino Uno using usbasp but i'm getting the following error,I have checked all the connection and voltage using multimeter but still this error: Arduino: 1.8.8 (Windows 10), ...
Potato Gamer's user avatar