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
0
votes
1answer
43 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 ...
2
votes
2answers
232 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-...
0
votes
2answers
54 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 ...
2
votes
2answers
113 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 ...
0
votes
0answers
81 views

Program uploads, but outputs flash reading error?

I'm new to Arduino, and I recently got 3 off-brand Nanos, and soldered pins for all three. Initially, none worked (I always received avrdude's errors when uploading). Based on my research, I ...
0
votes
1answer
45 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 ...
0
votes
1answer
64 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?
0
votes
1answer
65 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 ...
-1
votes
1answer
52 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
2
votes
1answer
46 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 ...
-2
votes
1answer
48 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 ...
0
votes
0answers
132 views

Create file with timestamp

I have a code which creates a file then store relevant data. My first purpose was creating then rewriting (delete & write again) with same filename. However, now I have to log different data to ...
0
votes
1answer
125 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), ...
1
vote
0answers
978 views

Send file from ESP to server via FTP

I've a code which records sound to SD, then starts an FTP connection for a limited time. I want to make an automatic system which records then sends the sound file continuously. Now I'm recording ...
0
votes
1answer
380 views

Reading contents of ESP8266 Flash from inside sketch

I am aware that there is a way to create a dump of the flash via esptool, but is there a way to read the contents of the sketch (just the sketch, not the full flash or SPIFFS) memory via the sketch ...
0
votes
0answers
160 views

Reasons Flash Page is Locked Due

Using the Arduino Due on a project, I have found that I commonly run into the issue Flash Page is Locked when attempting to upload. I have used the library write functions of DueFlashStorage that ...
0
votes
1answer
137 views

Program Arduino via UART from ESP8266 SPIFFS

I have built a custom board that has an ATmega328p connected to an ESP8266 module via UART. I am currently programming the ATmega328p using a USBtiny programmer via an SPI header. The ESP8266 module ...
0
votes
2answers
763 views

Can't flash ESP 32 Wroom

I have a new ESP32 Wroom attached to my USB and it shows up in the settings on my mac: I do have another ESP thing from sparkfun which I can access via /dev/cu.usbserial-DN02N1D8. This device I can ...
0
votes
1answer
555 views

Can't flash ESP8266 anymore (NodeMCU)

So I've been happily making away with these nodeMCU boards now for a while but I came across a strange issue when updating some code on my board.The problem was that I couldn't flash anymore with ...
-1
votes
1answer
45 views

Using ESP8266-01 via Arduino(no flash) without AT commands(using serial monitor)

I'm trying to build a smart Keychain using Arduino uno wifi(org, so Im using it like it's Arduino uno), ESP8266-01 And neo6m GPS device. My esp8266 wasn't new, and it came without AT firmware. I ...
1
vote
2answers
69 views

Unusual use of << operator… not a bit shift?

Poking through the example code of SDFS, I saw the following: static ArduinoOutStream cout(Serial); // F stores strings in flash to save RAM cout << F("\ntype any character to start\n"); What ...
0
votes
0answers
82 views

Understanding flashing with bash in Ubuntu

I am following the instruction from this DIY tutorial to set up the firmware for my dust sensor on Arduino board (NodeMCU): https://luftdaten.info/en/construction-manual/#feinstaubsensor-konfiguration ...
2
votes
1answer
130 views

AVR-GCC can't call function located on fixed address

I wrote the following code: #include <avr/io.h> __attribute__((noinline, section(".app_start"))) void app_start() //app_start section starts at 0xFA0 { //register_packet_dispatch(...
3
votes
1answer
212 views

Flashing an ATtiny85 with a NodeMCU?

I recently purchased a Digispark for some of my smaller electronics projects. After it initially being a great little board, I soon found myself unable to flash the board in the same way I had done ...
0
votes
2answers
204 views

NodeMCU ESP8266 12E loses code after power is reconnected

I have uploaded a simple code to control a 8 channel relay by turning individual relays on and off When I upload the code it works properly, the code works properly and the relays turn on and off in ...
0
votes
1answer
176 views

samd21 linking, change the base addresse from the default

I'm working on creating a safe firmware upgrade for my adafruit feather m0. I understand from my CTO that wrote the previous upgrade that for either samd21 or all arm m0 (not sure which) the compiler ...
0
votes
1answer
146 views

How to upload sketch from flash memory of nodemcu-V1.0?

I'm working with esp8266 nodemcu-v1.0 .Now we are using OTA but the module may be disconnected from wifi so we need to use 2G by GSM Module(using beside nodemcu) to receive our new sketch to be ...
0
votes
1answer
269 views

Unable to perform write operation while esp8266 flash operation

I have just started working with Arduion project from scratch using esp8266 (AI-cloud inside) black module. Now I'm trying to flash the esp8266 using esptool.py I observed that the esp module gets ...
2
votes
3answers
1k views

Is it possible to use extra AVR Flash memory as non-volatile EEPROM-like Flash memory storage?

In STM32 microcontrollers it is possible to use a technique that ST calls IAP, or In-Application Programming, in order to write to the Flash memory from your running application. They even have a nice ...
1
vote
2answers
389 views

Arduino memory issue with old HP HDSP-2000 display chips

I'm running into memory issues with an Arduino Nano driving some old HDSP-2000/HDSP-2011 chips. I cannot seem to get the ASCII 5x7 array into PROGMEM and have it read properly. It's so low on memory ...
0
votes
0answers
175 views

Standalone Programmer

I am trying to make my small stand-allone programmer to work using this code: https://github.com/adafruit/Standalone-Arduino-AVR-ISP-programmer But when I hookup everything and press button to flash ...
-1
votes
2answers
52 views

Why the program keeps applying what is in loop in first case and stops in the second one? [closed]

In the first program after removing hand from the button it keeps on, means it keeps applying what is in the loop: int led = 13; int button = 12; void setup() { pinMode(led, OUTPUT); pinMode(...
1
vote
2answers
856 views

Arduino LED flashes with one button press

I want the LED to flash when I press the switch once, but it keeps flashing. I tried the idea of just lighting the LED and keeping it lit with just one button press, so I wrote: int led=13,button=12; ...
2
votes
0answers
2k views

ESP-01 not running custom firmware

I have two esp-01 micro controllers that I'm trying to flash using the Arduino IDE but found some problems in the process. I followed step 1 of this tutorial to install all the dependencies to the IDE....
1
vote
2answers
564 views

Error when trying flash bootloader into Arduino Pro Mini 328P 8MHz 3.3V

I tried flash bootloader into Arduino Pro Mini 328P 8MHz/3.3V clone, but got error. First I did test: ~$ avrdude -c usbasp -p m328p avrdude: AVR device initialized and ready to accept instructions ...
0
votes
1answer
800 views

PROGMEM on Arduino Due (ARM Cortex M3)

I've been working with the PROGMEM function on my Arduino Uno and I'm thinking about changing to the bigger Arduino Due which is based on a ARM Cortex M3 processor instead of the AVR processor on the ...
2
votes
3answers
2k views

External Flash Memory for ATtiny85

I'm designing a lightweight circuit, but the ATtiny85 micro-controller I'm using to power it doesn't have nearly enough flash memory to store the code for the devices I'll have hooked up to it (It has ...
0
votes
0answers
82 views

Dataflash SPI Flash chip shared programming SPI pins

I have an ATTINY841 that is utilizing a Dataflash SPI flash chip (AT45DB011D). The SPI pins are connected to the same pins used for programming the ATTINY841. When I program the ATTINY841, I find ...
2
votes
2answers
3k views

Trying to flash ESP8266 with Arduino UNO

This is my first project other than some of the starter projects. I am trying to flash the firmware onto an ESP8266 wifi module using and arduino uno. It would be nice to know if anything is wrong/...
1
vote
0answers
70 views

Erasing all flash on boards with over 64kb of program memory

I'm using a Mega2560 board. My project needs to store some large constant data. To preserve the first 64kb flash chunk, I write these data on addresses beyond this limit. But there is either an ...
0
votes
1answer
3k views

Flashing ESP8266 over WiFi whith samrtphone?

I'm working on a project in which an ESP8266 is the brain of the device. I want to add new features to the device controller later but this requires that the user open the controller and reprogram the ...
-1
votes
2answers
1k views

getting “ .error: failed sending 1116 bytes warning: espcomm_send_command: didn't receive command response”

I'm getting error while uploading sketch into nodemcu ch340g as shown below I have tried these things to rectify the error 1) Changed usb cable 2) changed the port 3) flashed the firmware with ...
2
votes
1answer
6k views

String to persistent memory (EEPROM?)

I am creating a server node that I want to be able to save the wifi SSID and the password into persistent memory so that when it starts ups it can connect to the network. I have looked for several ...
-3
votes
1answer
98 views

Writing your own Arduino flashing tool [closed]

I want to make Arduino flashing tool only for a nano, a simple flashing application which could run on windows taking input as a .hex file. I know how to do this in Linux environment using Makefiles ...
0
votes
2answers
574 views

How to flash hex files from a micro SD card to an Arduino Nano using an SD card module?

I want to flash a hex file stored in a micro SD card into an Arduino [Uno/Nano]. So far I can read and write to the SD card using Arduino. Without modifying the bootloader, is it possible to flash ...
0
votes
0answers
32 views

Split flash Arduino nano

I need to update the firmware over-the-air for Arduino nano. For that I need to split the flash into two so that one of the partition that contains the original code cannot be erased while re-flashing ...
0
votes
0answers
401 views

Writing to flash Attiny 85

I set a project-goal for me: to make a very small compiler in Attiny.This compiler should read the code from user and translate it into code;then save it in some portion of the flash and jump there. I ...
1
vote
2answers
394 views

Flash Arduino Micro code on Atmega32U micro controller

First of all, I am not an expert on electronics, so forgive me for asking something which is trivial for probably the most of you. I am trying to get my Arduino (Micro) code running on a custom PCB ...
1
vote
2answers
458 views

Executing machine code at runtime Uno

I want to create a small single threaded os for my arduino.The first thing I want to do is to allow my arduino to read a section from flash/eeprom and execute it. I have some question regarding the ...
2
votes
1answer
1k views

Arduino EEPROM retains old data after flashing with a new program

I have a custom 5V 16Mhz Arduino Uno (a breadboard Uno of sorts) that runs the grbl firmware. After the initial flashing I can see all the settings (through the serial monitor) and everything works. ...