Esp32 Task concurrent problems
Posted: Tue May 05, 2020 6:13 am
There are two cpu cores in esp32.I have a few questions about esp-idf task.
1.when two task running by each core calling uart_write_bytes() at the same time,will it cause data disorder or loss? Is uart_write_bytes() task/thread safe?
2. A while(1){ do something} loop in app_main,is this loop running by pro core or both core ?
3. Callback funtion set by esp_wifi_set_promiscuous_rx_cb() running by pro core or both core ?
Thanks.
1.when two task running by each core calling uart_write_bytes() at the same time,will it cause data disorder or loss? Is uart_write_bytes() task/thread safe?
2. A while(1){ do something} loop in app_main,is this loop running by pro core or both core ?
3. Callback funtion set by esp_wifi_set_promiscuous_rx_cb() running by pro core or both core ?
Thanks.