Hi, I get a runtime error "lock_acquire_generic at .....". The ESP-IDF system suggests: Tried to block on mutex from ISR, couldn't ....
rewrite your program to avoid libc interactions in ISRs!
Is there a way to identify the conflicting parts of the code?
I have the backtrace information on my screen.
Thanks !
Fred
Tried to block on mutex from ISR....
Re: Tried to block on mutex from ISR....
The post mortem screendump points at lines of code where Float/Real is involved.
I've read the following in ESP-IDF specficifics for freeRTOS:
Floating Point Arithmetic: The ESP32 supports hardware acceleration of single precision floating point arithmetic (float). However the use of hardware acceleration leads to some behavioral restrictions in ESP-IDF FreeRTOS. Therefore, tasks that utilize float will automatically be pinned to a core if not done so already. Furthermore, float cannot be used in interrupt service routines.
I've read the following in ESP-IDF specficifics for freeRTOS:
Floating Point Arithmetic: The ESP32 supports hardware acceleration of single precision floating point arithmetic (float). However the use of hardware acceleration leads to some behavioral restrictions in ESP-IDF FreeRTOS. Therefore, tasks that utilize float will automatically be pinned to a core if not done so already. Furthermore, float cannot be used in interrupt service routines.
Who is online
Users browsing this forum: No registered users and 179 guests