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
1answer
871 views

Unable to upload sketch after bootloader has been flashed on Arduino Micro

I have created my own custom Arduino Micro, but I am experiencing problems when I attempt to upload an sketch via USB in Arduino IDE. Here is how I program the Arduino Micro: avrdude -c ...
0
votes
2answers
1k views

Cheap 2-5mb memory to use with arduino

I'm looking for a storage solution for small files that would be moved into a small sensor running arduino-like processor. Ideally the single memory unit would be cheap (in 1-10 cents range), but the ...
8
votes
3answers
10k views

PROGMEM: do I have to copy data from flash to RAM for reading?

I have got some difficulties understanding the memory management. Arduino documentation says, it is possible to keep constants like strings or whatever I don't want to change during runtime in ...
1
vote
1answer
745 views

What is the capability of AVRISP and USBASP on ATMega48, 328, 2560?

For use with ATMega 48 (old Arduino?), 328 (UNO, Pro Mini) and 2560 (Mega2560) chips, what is the capability for the AVRISP and USBASP programmers on: Can it read, write fuse? Can it read, write ...
7
votes
2answers
5k views

Is it possible to run a binary from EEPROM?

Say I wrote a compiled sketch to EEPROM then read it. Could I run the program from EEPROM? I guess the question is: Can an Arduino run software not in flash memory in the middle of executing the ...
0
votes
1answer
202 views

question about progmem

I have a problem understanding the following code: PROGMEM prog_uint16_t x={1232,3232,43343}; rawlen = pgm_read_word_near(x); memcpy_P(uSendBuff, pfSendBuff+1, rawlen * sizeof(uint16_t)); Why do we ...
2
votes
3answers
3k views

Wrong data from DS18B20 temperature sensor after long power off

I have my Arduino Uno connected to the PC via USB when prototyping. I am developing a thermometer with memory, using DS18B20 sensors. When PC is shut down, there is no power on the USB and the ...
1
vote
1answer
300 views

Error building Arduino WiShield Flash example: 'dflash' was not declared in this scope

I'm using WiShield library from: https://github.com/jcmuller/WiShield What is wrong with this library? The code: /* * Web Server using Flash * * A simple web server example using the WiShield 2....
7
votes
4answers
4k views

Where can I find out how to make a hex file for arduino firmware?

I have followed this tutorial on flashing my Arduino R3 to turn it into a "USB keyboard", but the article doesn't explain how the hex works, it's just for granted. Where can I learn about how to make ...
5
votes
2answers
983 views

What are the FLASH_ARRAY/FLASH_TABLE macros in this code?

In this code for heating monitor, there appears to be macros called FLASH_ARRAY and FLASH_TABLE. I can't find any reference to them either in this code, Arduino, or on the Internet. What do they do? ...
15
votes
6answers
61k views

How do I erase the memory of the Arduino Uno?

I'm just a tinkerer learning Arduino with my son and I was surprised that when I plugged the USB cord back in to the Arduino the program was still running and I thought to myself, "it's a good thing I ...
29
votes
4answers
78k views

What can I do if I run out of Flash memory or SRAM?

According to the Arduino documentation, the ATmega328 has 32KB of Flash memory for the bootloader + uploaded sketch, and only 2KB SRAM for runtime data. The ATmega2560 has quite a bit more, totalling ...

1 2
3