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

3
votes
1answer
68 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
40 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
0answers
35 views

Can I trigger a program that didn't exist on the PC to run in the background as soon as i connect any USB enabled uC like SAMD21?

People usually trigger programs already there on their PCs when they connect their uC. There are already things like uC that can inject keystrokes. I was thinking of something even more ambitious - I ...
0
votes
1answer
72 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
96 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
102 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
427 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
151 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
91 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 ...
0
votes
0answers
418 views

Arduino Winbond SPIFlash Writing - Reading Issue

I'm using Winbond W25Q32 SPI Flash IC for data logging in my project. I'm facing issue while writing multiple data to various address. I'm writing string to 3 different address and trying to read ...
-1
votes
2answers
51 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
331 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
895 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
367 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
505 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 ...
1
vote
3answers
876 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
58 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
2k 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
30 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
907 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
752 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
4k 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
74 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
402 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
30 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
292 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
215 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
284 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
818 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
208 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 ...
5
votes
3answers
1k 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
71 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
487 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
264 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
619 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
363 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
412 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
268 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
718 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
134 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 ...
1
vote
0answers
92 views

In-application programming for the Arduino Uno

I would like to know if it is possible to read from and write to the microcontroller's (Arduino Uno's ATmega328P) flash memory using a program or "bootloader" previously stored in the flash memory (or ...
5
votes
3answers
2k views

Set EEPROM from PC before program

I have been working on an arduino program, which has gotten rather large. I am close to hitting the 32k limit on Flash for my ATmega328p. I would like lower my program size by saving some of my many ...
1
vote
1answer
428 views

ESP8266 stuck in flash mode?

I have the setup described here: https://learn.adafruit.com/esp8266-temperature-slash-humidity-webserver/wiring I currently have the reset pin set to float and the GPIO0 pin grounded, which should ...
1
vote
1answer
294 views

Connecting Winbond W49F002U-12B to Arduino Mega

I am trying to connect a CMOS flash memory Winbond W49F002U-12B to an Arduino Mega, but failing. What I did: Read the Winbond W49F002U-12B datasheet. The key points are: CE - chip enabled; OE - ...
0
votes
2answers
320 views

Using Arduino IDE as an API

I have a project where it would make a lot of sense to generate Arduino compatible source code, compile it and flash it based on some settings in the project software. Is there any way to do this ...
-1
votes
1answer
55 views

Files to YUN flash?

Is there a directory where, if I put files there, they will be on the Yun's internal flash instead of the SD card? ex. No SD card error handler file. I'm using openssh-sftp-server for a sftp server, ...
2
votes
0answers
319 views

Flash Arduino Due via UART

I would like to write code in Arduino language, compile it in the Arduino IDE, grab the resulting binary code, and flash it to the Due via the TX/RX UART pins, bypassing both the USB Programming Port ...
0
votes
1answer
187 views

Is there any way to flash sketches using custom firmware?

I am using HIDUINO as my firmware (flashing via dfu-programmer), and to upload sketch I need to re-flash original firmware, upload sketch and then flash HIDUINO again. Is there a way to flash ...
1
vote
1answer
959 views

Any way to use F macro with a passed variable?

I want to know if it's possible to use the F() macro on text that is being passed to a function. This is an example function: void displayMenu(const char * txt, byte &var) { lcd.clear(); lcd....