Sorry, i can't find the issue in your example.
But this simple example demonstrates how to use ULP interrupt:
https://gist.github.com/igrr/4b002047fc ... 01858e1de5
Handle internal interrupt
Re: Handle internal interrupt
I discovered the "mistake" too, anyway thanks for the example, ended up confirming the "error".ESP_igrr wrote:Sorry, i can't find the issue in your example.
But this simple example demonstrates how to use ULP interrupt:
https://gist.github.com/igrr/4b002047fc ... 01858e1de5
The ISR definition must be made before ulp_run(), and if you see the code I posted earlier, the ISR definition was after ulp_run(). The problem was just that, all the registers were correct, thanks for the attention!
With this your code, you could add the list of ULP examples in ESP-IDF!
Re: Handle internal interrupt
xSemaphoreGiveFromISRESP_igrr wrote:Sorry, i can't find the issue in your example.
But this simple example demonstrates how to use ULP interrupt:
https://gist.github.com/igrr/4b002047fc ... 01858e1de5
Re: Handle internal interrupt
Thanks WiFive. We should add configASSERT( !xPortInIsrContext() ); into xQueueGenericSend...
Who is online
Users browsing this forum: Bing [Bot] and 107 guests