Page 1 of 1

ESP32 Threading

Posted: Wed May 15, 2019 8:06 am
by Obejaris
I am new to the ESP32 and I was wondering, how does the ESP32 handle threading? My understandig is that it runs on FreeRTOS, but I can't find any information on its thread model. When creating a new thread, how are the user threads mapped to kernel threads?

Thank you.

Re: ESP32 Threading

Posted: Wed May 15, 2019 12:26 pm
by markkuk
There are no separate kernel and user modes, so there are no separate kernel threads and user threads either.

Re: ESP32 Threading

Posted: Thu May 23, 2019 6:25 pm
by warren
To create a "thread", which is a "task" in FreeRTOS lingo, you use one of the API calls described here:

https://docs.espressif.com/projects/esp ... ertos.html

Either:
  • xTaskCreatePinnedToCore
  • xTaskCreate
There are examples shown there.