Search found 4 matches

by andreaz98
Mon Oct 30, 2023 2:40 pm
Forum: ESP-IDF
Topic: assert failed: block_trim_free tlsf.c:502 (block_is_free(block) && "block must be free")
Replies: 2
Views: 1942

Re: assert failed: block_trim_free tlsf.c:502 (block_is_free(block) && "block must be free")

Yup, I found the error was in using a not malloc'd memory area. Thank you ESP_Sprite.
by andreaz98
Fri Oct 27, 2023 2:38 pm
Forum: ESP-IDF
Topic: assert failed: block_trim_free tlsf.c:502 (block_is_free(block) && "block must be free")
Replies: 2
Views: 1942

assert failed: block_trim_free tlsf.c:502 (block_is_free(block) && "block must be free")

Hello guys I am having a assert failed: block_trim_free tlsf.c:502 (block_is_free(block) && "block must be free"). I analyzed the backtrace and figured out the failing function is xTaskCreate: xTaskCreate((void *)z_task_wrapper, "", 5120, z_arg, configMAX_PRIORITIES / 2, task) The parameters are (le...
by andreaz98
Fri Jun 03, 2022 10:53 am
Forum: ESP-IDF
Topic: Save array of bytes in the RTC Fast Memory
Replies: 2
Views: 2161

Re: Save array of bytes in the RTC Fast Memory

Ok, I understand. I must set a static size.

Thank you for the clear answer ESP_Sprite
by andreaz98
Fri Jun 03, 2022 8:20 am
Forum: ESP-IDF
Topic: Save array of bytes in the RTC Fast Memory
Replies: 2
Views: 2161

Save array of bytes in the RTC Fast Memory

Hello I'm developing an application that must save some buffers in the RTC Fast Memory in order to persist data between deep sleeps. My code is something like RTC_DATA_ATTR static uint8_t * buffer; RTC_DATA_ATTR static int flag = 0; void app_main(void) { /*compute the dimension of the buffer if and ...