Hi there,
I have trouble running a simple application in ESP-32 board.
Here is the code:
void app_main(void)
{
BaseType_t baseType=0;
TaskHandle_t xConsoleHandle = NULL;
printf("Calling vTaskStartScheduler\n");
vTaskStartScheduler();
printf("Called vTaskStartScheduler\n");
/*
* Create tasks
*/
baseType = xTaskCreate(tskConsole,
"console",
10240,
( void * ) 1,
tskIDLE_PRIORITY,
&xConsoleHandle);
while (1) {
printf("Main task\n");
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
}
//--------
void tskConsole( void *pv )
{
printf("Entering in console task\n");
while (1) {
printf("Console task\n");
//vTaskDelay(1000 / portTICK_PERIOD_MS);
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
}
I receive this error:
Calling vTaskStartScheduler
f
assert failed: lock_release_generic locks.c:186 (h)
What is wrong and how to fix it?
Thanks in advance for your reply.
Andrea