Search found 4 matches

by atsteich
Thu Nov 22, 2018 2:34 pm
Forum: ESP32 Arduino
Topic: BUG?! in Memory Usage
Replies: 6
Views: 9353

Re: BUG?! in Memory Usage

Sorry for my double reply, and thank you very much for your help! I think there is still anything strange going on, Iet me explain more detailed: The following code #include <Arduino.h> #include <Esp.h> int* var1 = (int*) calloc(24000, sizeof(int)); void setup() { Serial.begin(115200); for(int i = 0...
by atsteich
Wed Nov 21, 2018 4:00 pm
Forum: ESP32 Arduino
Topic: BUG?! in Memory Usage
Replies: 6
Views: 9353

Re: BUG?! in Memory Usage

As i wrote, it is not even possible to allocate memory for a single int as soon as the total used variables need more memory than (in my case) exactly 94492 bytes. So the remaining 200K ram consists of non contiguous blocks smaller than 4 bytes? Sounds not plausible.... Also what exactly is the vari...
by atsteich
Wed Nov 21, 2018 3:49 pm
Forum: ESP32 Arduino
Topic: BUG?! in Memory Usage
Replies: 6
Views: 9353

Re: BUG?! in Memory Usage

Since it is not even possible to allocate memory for single integer values, that this is not the problem. What is the variable t_caps when calling heap_caps_get_largest_free_block(uint32_t caps)?
by atsteich
Wed Nov 21, 2018 2:47 pm
Forum: ESP32 Arduino
Topic: BUG?! in Memory Usage
Replies: 6
Views: 9353

BUG?! in Memory Usage

In Principle there should be ~300 Kbyte ram available to save data on an esp32 chip. But: As soon as i allocate more memory than ~94400Kbyte to log e.g. some data, the chip crashes before entering setup(). As long the allocated memory is smaller, the chips reports free heap of ~200Kbyte. It is not a...