Search found 2 matches

by Serverguy
Sat May 01, 2021 8:53 am
Forum: ESP32 Arduino
Topic: ESP32 malloc gives memory in invalid location or guru meditation
Replies: 5
Views: 8190

Re: ESP32 malloc gives memory in invalid location or guru meditation

I am allocating exactly what I need. If you read what is allocated, it is 76816 bytes from the heap. Apparently, there is 16 bytes of housekeeping. Do you still say that is the wrong size? I can actually read and write about 64% of this area before it blows up. Please look, again, carefully, at what...
by Serverguy
Fri Apr 30, 2021 11:34 am
Forum: ESP32 Arduino
Topic: ESP32 malloc gives memory in invalid location or guru meditation
Replies: 5
Views: 8190

ESP32 malloc gives memory in invalid location or guru meditation

The ESP32 is allocating memory in an unusable area. There are variations of this error. The first variation is the one I want to work. I am allocating 76800 integers in a single array from the heap. The heap, to start with, is almost 300K. So giving me 76800 is not a problem. It does that. Then I lo...