Skip to main content

Questions tagged [memory]

Use this tag for memory management or issues in programming.

0 votes
1 answer
384 views

There is a simple PlatformIO sketch (arduino format) that has the following main.cpp file: #include <Arduino.h> #include "esp_camera.h" #include "camera_pins.h" #define ...
Broteen Das's user avatar
0 votes
1 answer
122 views

I am working on a custom SD card data logger using the following function and struct: char *filenameCreator(const char *prefix, const char *num, bool addExtension) { char *filename = (char *)...
Daniel Melendrez's user avatar
0 votes
2 answers
522 views

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
  • 561
1 vote
2 answers
136 views

Consider the following code: #include <Arduino.h> unsigned char testimage [] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ...
Bart Friederichs's user avatar
1 vote
1 answer
411 views

I'm measuring accelerations at "high frequency" (4kHz) from an accelerometer (ADXL355/ADXL357) to an esp32. It's crucial that no sample is lost while performing a measure which last say 2 ...
AlekseyFedorovich's user avatar
1 vote
1 answer
115 views

I'm doing a small project with ESP32 board. When initializing a driver, multiple structs are passed to initialization functions. I know that there are two ways to store such structs: Storing structs ...
Yiyang Yan's user avatar
1 vote
2 answers
255 views

I am currently working on an assignment for my embedded systems course, and my professor has asked us to determine the memory allocation technique employed in Arduino. Specifically, I need to identify ...
Noran Hany's user avatar
4 votes
1 answer
5k views

I'm trying to get my Lilygo T5 4.7" epaper to deep sleep for 12 hours. But I only seem to be able to get about half an hour (2100s) of deepsleep on it. If I set the timer for longer, it just ...
Engberg's user avatar
  • 43
1 vote
1 answer
280 views

I have some really long global variable arrays filled with data. There is a single function that processes the data. The function works on only one array everytime. This arrays value changes every ...
user1584421's user avatar
  • 1,435
1 vote
1 answer
237 views

I'm trying to read data being transferred via Infrared from my Smartmeter on my ESP8266 using the following sketch: #include <ESP8266WiFi.h> #include <ESP8266WebServer.h> #include <...
1_am_r00t's user avatar
5 votes
2 answers
137 views

I'm a dairy farmer and I'm new to playing around with Arduino's. I created a code to send me SMS's when my equipment stops working as it should, but I run into a "Not enough memory" error. ...
FarmerChuck's user avatar
0 votes
1 answer
95 views

Probably I'm doing something wrong. I'm writing an Arduino sketch for ESP32. Among the others I have this function: #define HDR_MAX_LENGHT 4 #define CMD_MAX_LENGHT 5 #define ARG_MAX_LENGHT 5 #define ...
Mark's user avatar
  • 393
0 votes
3 answers
68 views

I am working on a simple data acquisition system based on an Arduino Uno. Each run would ideally collect up to 10k data points (all doubles). Obviously, the Arduino doesn't have the capacity to hold ...
Ben's user avatar
  • 101
1 vote
1 answer
449 views

I am working on a simple project on talking to the serial monitor, and my only global variable ("int" type, named "incomingByte") is consuming a lot of memory. There is no problem ...
Vitor Z.'s user avatar
2 votes
1 answer
3k views

Using Nano's for small programmes I get compilation reports about the amount of space taken by global variables. On a typical progamme it says something like Sketch uses 16316 bytes (53%) of program ...
Harry J Crowley's user avatar

15 30 50 per page
1
2 3 4 5
10