Memory allocation failed hook
Posted: Wed Jun 03, 2020 4:07 am
Hello,
I am one of a team developing a commercial product based on the ESP_WROVER module. Up until now we have been using IDF v3.3, but are now moving to IDF v4, specifically I am currently using: ESP-IDF v4.2-dev-1320-g1aebfdf6a.
I have been seeing some malloc failures, so I thought I would implement the malloc failure hook as described in the IDF documentation:
https://docs.espressif.com/projects/esp ... ailed-hook
https://docs.espressif.com/projects/esp ... allocation
but when I attempt to compile this various errors are generated, two of which are:
Regards,
Neil
I am one of a team developing a commercial product based on the ESP_WROVER module. Up until now we have been using IDF v3.3, but are now moving to IDF v4, specifically I am currently using: ESP-IDF v4.2-dev-1320-g1aebfdf6a.
I have been seeing some malloc failures, so I thought I would implement the malloc failure hook as described in the IDF documentation:
https://docs.espressif.com/projects/esp ... ailed-hook
https://docs.espressif.com/projects/esp ... allocation
but when I attempt to compile this various errors are generated, two of which are:
error: implicit declaration of function 'heap_caps_register_failed_alloc_callback' [-Werror=implicit-function-declaration]
It seems that the heap tracing code has not been ported to the new IDF properly as yet. Is this correct, and are there any plans to do so?error: 'TaskHandle_t' does not name a type; did you mean 'xTaskHandle'?
Regards,
Neil