ESP32 Threading

Posts: 1
Joined: Wed May 15, 2019 8:01 am

ESP32 Threading

Postby Obejaris » Wed May 15, 2019 8:06 am

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.

Posts: 22
Joined: Wed Mar 27, 2019 11:50 am

Re: ESP32 Threading

Postby markkuk » Wed May 15, 2019 12:26 pm

There are no separate kernel and user modes, so there are no separate kernel threads and user threads either.

Posts: 15
Joined: Thu May 02, 2019 3:16 pm

Re: ESP32 Threading

Postby warren » Thu May 23, 2019 6:25 pm

To create a "thread", which is a "task" in FreeRTOS lingo, you use one of the API calls described here: ... ertos.html

  • xTaskCreatePinnedToCore
  • xTaskCreate
There are examples shown there.

Who is online

Users browsing this forum: nikita and 21 guests