Skip to main content

Questions tagged [memory]

Use this tag for memory management or issues in programming.

14 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
89 views

Where to save time and other values so I can read them after arduino powered down?

I need to save some values (and be able to update them frequently) that will stay there even after powering down the Arduino. (I didn't specifically choose any board yet, but UNO or Mega will be ...
krystof18's user avatar
  • 315
2 votes
0 answers
564 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
2 votes
1 answer
242 views

Arduino Nano IoT 33 Char Array size constraints

I would like to save data that I am receiving from API calls in a char array. The problem is that the data is around 80 kB, and my Arduino IoT 33 only has 32 kB of memory. It will save data in a char ...
Amir's user avatar
  • 31
2 votes
0 answers
483 views

why is memcpy of unsigned long killing my sampling speed?

I'm using a Mega 2560 to communicate with a mixture of analog (i.e. measured via analogRead()) and I2C based sensors. Sampled data is placed in a 16 byte array, then written to an SD card once a 512 ...
Blake Hewgill's user avatar
2 votes
0 answers
902 views

Cant get rid of Soft WDT reset using ESP8266

Im using ESP12E DevKit v2 (esp8266 wifi module) board for controlling relays and displaying DHT22 temp,humidity on web server. It runs smoothly but after while i always get a watchdog timer reset. (If ...
Dan's user avatar
  • 41
1 vote
0 answers
626 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
89 views

Accessing start up bits of SRAM from MicroBit for PUF

https://infocenter.nordicsemi.com/pdf/nRF51822_PS_v3.4.pdf The aim is to extract (output in serial monitor) the start up bits from the SRAM of this microbit which is located at memory address ...
kepsek's user avatar
  • 11
1 vote
0 answers
283 views

ESP8266 NodeMCU running out of heap

I'm trying to create SMS alarm using Twilio, Firebase and Arduino IDE. Using sensors I am measuring the temperature. If the temperature is higher than a specified value (ESP reads that value from ...
Nina's user avatar
  • 185
1 vote
0 answers
58 views

Having a bunch of global variables or calculate them on the go on an Arduino, as far as memory is concerned

So I'm new in the arduino world but I have a grasp of object oriented programming, and decided to write a little library for running games on an arduino mega using a display. My question is, I'm ...
Juan's user avatar
  • 11
1 vote
0 answers
520 views

Question about memory allocation analysis

As I'm experiencing weird bugs in a rather lengthy project, I started analyzing my RAM usage on my ATMEGA328P with Arduino bootloader. At least I tried to and wrote the following piece of code. ...
Stefan Schallmeiner's user avatar
1 vote
0 answers
161 views

Lighting up long led strip no longer works when my code grows

I have a 144 LED strip - Adafruit NeoPixel Digital RGB LED Strip 144 LED, link here: https://www.adafruit.com/product/1507 If I create a simple project, eg turning pixels on off from the serial ...
Angus Comber's user avatar
0 votes
2 answers
145 views

Is std::string (and ephemeral memory allocation in general) safe to use for ESP32 Arduino?

I know that with 8-bit AVR Arduinos, std::string is widely regarded as fundamentally unsafe due to problems with heap-fragmentation (partly due to limited ram, and partly because the WAY the ...
Bitbang3r's user avatar
  • 543
-1 votes
1 answer
318 views

EEPROM not consistent over reboot

I'am using a Wemos D1 mini V3.0.0 (esp 8266 core). I tried to save a structure in EEPROM memory but all data are lost when i reboot the board. I am using these basics functions : int cle_verif = ...
Marco Bresson's user avatar
-1 votes
2 answers
1k views

Reading from SPIFFS - What's the best way to deal with a string (or char) array with undefined length?

I've read that it's best to avoid using String in Arduino so I'm ready to use a char array if it's better. I'm reading the file names from an SD Card and my goal is to store them in an array and then ...
JingleBells's user avatar