Stack Exchange Network

Stack Exchange network consists of 175 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 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.

0
votes
1answer
39 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), ...
0
votes
0answers
25 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
37 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
49 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
36 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
157 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
63 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 ...
0
votes
1answer
23 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
51 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
45 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 ...
0
votes
1answer
50 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
102 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
89 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
99 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
119 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
136 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
717 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
1answer
227 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
135 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
502 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; ...
1
vote
0answers
1k views

ESP-01 not running custom firmware

I have two esp-01 microcontrollers 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
440 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
626 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
1k 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
73 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
51 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
2k 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
5k 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
86 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
460 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
31 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
333 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
285 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 ...
0
votes
2answers
341 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. ...
6
votes
5answers
1k views

What happens if you write >10000 times to the flash memory of an ATmega?

I realized that I'm uploading code every 5 minutes and doing relatively intensive trial-and-error development, and that this habit could cause problems down the road, especially if I'm working on a ...
2
votes
0answers
235 views

Software flashing attiny167 from RPi with avrdude

I am trying to flash a program onto an attiny167 (already bootloaded with the micronucleus bootloader) with a Raspberry Pi via avrdude and USB. Background I have 50 Raspberry Pi 3B's connected to an ...
6
votes
3answers
2k views

External Flash Memory File System

I'm building a weather data collector and I want to be able to dump that weather data somewhere. I've considered the options, and since I'm going to be storing a fairly small amount of data (in the ...
0
votes
1answer
75 views

Question about configuration EEPROM or Flash

I want to make an external (not related to Arduino) computer application that creates a big 'setup file' (like max. 64 KB). This setup file contains lookup tables (which are configurable and the ...
1
vote
1answer
642 views

Storing data on AT24C02 EEPROM chips with Arduino

I have recently come across some 8-pin 128-byte EEPROM chips. I've seen those USB EEPROM chip programmer units, but I was wondering if there is any way I could manually store data on the chip with my ...
0
votes
1answer
365 views

Avrdude fails to verify after upload

I'm using the most recent Arduino IDE to upload a sketch to an Arduino Uno, and the upload seems to succeed, but the final verification step fails with the error: avrdude: AVR device initialized and ...
4
votes
1answer
843 views

Flash String Helper object as variable

So I have a Bunch of commonly used char arrays to build commands in my library. So to preserve memory, I have them put into flash, via PROGMEM ext, typedef const char PROGMEM ProgChar; ProgChar AT[] =...
0
votes
1answer
402 views

How to save a hex file into Arduino Flash to send it via Serial?

I have a text file with hex values formatted in the following style: A0 3F 55 01 00 C7 55 01 00 C7 AA 29 71 11 00 0B 00 C7 AA 29 71 1F AA 29 71 11 55 01 A0 3F 55 DC ... How can I save this data into ...
0
votes
2answers
495 views

Store data in flash/EEPROM and process it in parallel

I want to store incoming data in flash or EEPROM and then apply FFT or some other method to detect frequency and intensity. I am taking sound through microphone amplifying it with an LM741 and giving ...
0
votes
1answer
294 views

How do I send data to an Arduino via light flashes

I want to send a very small amount of data to an Arduino via visible light ( blinking lights on a screen ). The data is no more than settings and the rate does not have to be fast. Does anyone have a ...
3
votes
2answers
811 views

What programming practices should be adopted while coding sketches for Arduino?

What are some of the best programming practices that can be adopted while coding sketches for Arduino, so that it uses the least memory and performance should not suffer from memory outage, and still ...
1
vote
1answer
139 views

Firmware update for remote situations

We are currently deploying units with the ATMEGA328 chip. Currently, all ICs have been flashed using the Arduino IDE. Upon release, we would like to offer updating of firmware in some cases, but ...