Search found 7 matches

by pablo1610
Fri Apr 22, 2022 7:23 am
Forum: ESP32 Arduino
Topic: Corrupt Heap Error
Replies: 2
Views: 3182

Re: Corrupt Heap Error


That's likely either a buffer you're overflowing, or some use-after-free condition. It's not entirely applicable to Arduino, but perhaps the ESP-IDF heap debugging chapter can help. If you can post your code, people here can possibly also help.


Hi,

Thank you, but I have solved my error. I was ...
by pablo1610
Thu Apr 21, 2022 10:34 am
Forum: ESP32 Arduino
Topic: Corrupt Heap Error
Replies: 2
Views: 3182

Corrupt Heap Error

Hi,

I'm having the next problem but I don't know from where it's comming. It's always the same position, I'm checking the heap integrity every ten seconds and it always return true.


CORRUPT HEAP: Bad head at 0x3ffafac8. Expected 0xabba1234 got 0x3ffafefc
abort() was called at PC 0x40087361 on ...
by pablo1610
Tue Nov 16, 2021 9:36 am
Forum: General Discussion
Topic: Espressif software reset load unhanled
Replies: 5
Views: 4232

Re: Espressif software reset load unhanled


That should work... are you sure size_req is also initialized? Also note that nvs_get_blob doesn't necessarily return a null-terminated string; that could lead to issues.


Yes, the variable was initializaed to 20 (uint32_t size_req = 20;), also before I found the solution to the problem, that ...
by pablo1610
Tue Nov 16, 2021 8:20 am
Forum: General Discussion
Topic: Espressif software reset load unhanled
Replies: 5
Views: 4232

Re: Espressif software reset load unhanled

Hi all,

I have found a solution to this error. The problem was related to the destination buffer for the function nvs_get_blob. Although the output buffer was initialized, it looks like the Espressif does't like it.

I have created a pointer to a reserved memory space:

char *ssid = malloc(20 ...
by pablo1610
Mon Nov 15, 2021 8:32 am
Forum: General Discussion
Topic: Espressif software reset load unhanled
Replies: 5
Views: 4232

Re: Espressif software reset load unhanled


That's hard to say. Can you post the entire error, if possible including the backtrace?


The problem happens when I do the nvs_get_blob instrucction. The first time Ithe program executes it, it does it well, but when the espressif reboots, the error happens. I do the nvs initialization as it is ...
by pablo1610
Fri Nov 12, 2021 11:04 am
Forum: General Discussion
Topic: Espressif software reset load unhanled
Replies: 5
Views: 4232

Espressif software reset load unhanled

Hi all,

Currently I'm developing a C program to run in the Espressif. The first time I start the program well, but when I do a software reset the Espressif gets stuck in an error loop with the next error code:

Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.

I don ...
by pablo1610
Thu Oct 28, 2021 9:37 am
Forum: Hardware
Topic: ESP32 fixed variables in ROM
Replies: 2
Views: 3172

ESP32 fixed variables in ROM

Hi,

I would like to allocate some variables in the ROM memory address of the Espressif, so I can acess to them, change it's value and keep its value constant between each turn off-on process.

I know I can do it with an EEPROM memory, but I would prefer not using this peripheral.

How do I allocate ...

Go to advanced search