You can chat about native SDK questions and issues here.

User avatar
By Illivion
#80934 I've suspected that freertos examples from SDK don't have vtaskstartscheduler() call on the end of main function. And more, if I include this call in my app, I become crash. If I just create new tasks and timers they work perfectly. Can somebody explain the strange behavior?
User avatar
By LPG
#83603 It is in the file "ESP8266_RTOS_SDK⁩ ▸ ⁨components⁩ ▸ ⁨esp8266⁩ ▸ ⁨source⁩ ▸ ⁨startup.c":

In this startup file, a single task is created and then vTaskStartScheduler() is called. From within this task, your "app_main()" is called. So "app_main()" is already running from a task context, which is why you must not call vTaskStartScheduler() again.