Search found 445 matches

by snahmad75
Mon Apr 08, 2019 9:37 pm
Forum: ESP32 IDF
Topic: heap corruption any idea?
Replies: 9
Views: 1216

Re: heap corruption any idea?

"Bad head at 0x3ffcfe24" If you search the IDF for "head != NULL" and look at the ones that are an assert in the heap section, you will see the function "verify_allocated_region" is finding the header to the allocated region has been overwritten and the sanity check "(head->head_canary != HEAD_CANA...
by snahmad75
Mon Apr 08, 2019 2:23 pm
Forum: ESP32 IDF
Topic: heap corruption any idea?
Replies: 9
Views: 1216

heap corruption any idea?

Hi, Kindly help in diagnosis. when I delete my big application object before esp_restart(); then I get this trace. CORRUPT HEAP: Bad head at 0x3ffcfe24. Expected 0xabba1234 got 0x00000001 assertion "head != NULL" failed: file "C:/Work/library/esp32/master/esp-idf/components/heap/multi_heap_poisoning...
by snahmad75
Mon Apr 08, 2019 9:23 am
Forum: ESP32 IDF
Topic: Logging thread safe?
Replies: 2
Views: 459

Re: Logging thread safe?

ESP_Sprite wrote:
Mon Apr 08, 2019 3:10 am
Yes.
Thanks.
by snahmad75
Mon Apr 08, 2019 9:22 am
Forum: ESP32 IDF
Topic: NVS functions thread-safe?
Replies: 4
Views: 1609

Re: NVS functions thread-safe?

Sorry bothering again. Is it thread safe against same namespace.
by snahmad75
Sat Apr 06, 2019 7:54 pm
Forum: ESP32 IDF
Topic: Internal fastfs file gets corrupt some time after re-power.
Replies: 13
Views: 1507

Re: Internal fastfs file gets corrupt some time after re-power.

Yes, FATFS is thread safe as long as the threads access different files. NVS is also thread safe (all operations are serialized). If you can enable debug log level and post the logs (before powering off the device, and after powering it up again) then it might help figure out where the issue is. ok...
by snahmad75
Fri Apr 05, 2019 9:03 pm
Forum: ESP32 IDF
Topic: Logging thread safe?
Replies: 2
Views: 459

Logging thread safe?

by snahmad75
Fri Apr 05, 2019 9:00 pm
Forum: ESP32 IDF
Topic: NVS functions thread-safe?
Replies: 4
Views: 1609

Re: NVS functions thread-safe?

Can some one confirm it that it is thread safe. we found internal fatfs gets corrupted easily. does not sound thread safe.
by snahmad75
Fri Apr 05, 2019 8:59 pm
Forum: ESP32 IDF
Topic: Internal fastfs file gets corrupt some time after re-power.
Replies: 13
Views: 1507

Re: Internal fastfs file gets corrupt some time after re-power.

It could be we have multiple Tasks/threads accessing fatfs simultaneously. Do I need mutex. I access different files. Is fatfs is thread safe for internal fatfs and sd card fatfs.

Now We are using NVS. Is NVS read/write or commit is thread safe
by snahmad75
Fri Apr 05, 2019 8:26 am
Forum: ESP32 IDF
Topic: Internal fastfs file gets corrupt some time after re-power.
Replies: 13
Views: 1507

Re: Internal fastfs file gets corrupt some time after re-power.

Are you using performance or safety mode? How long after closing the file is the power being cut? Are you unmounting? I am using safety mode. never check power cut after how long. I am unmounting as well. Any idea? I am going to use NVS and backup on sd card as files as well. we found ad card and N...
by snahmad75
Thu Apr 04, 2019 4:44 pm
Forum: ESP32 IDF
Topic: Internal fastfs file gets corrupt some time after re-power.
Replies: 13
Views: 1507

Internal fastfs file gets corrupt some time after re-power.

Hi, We found internal fatfs is not very resilient. It could be two threads are access file simultaneous. It is just small json of 500 bytes I need to save. After hard re-power. It corrupt the file some times. We found NVS is more resilient power down and brown out as compare to internal fastfs Savin...

Go to advanced search