void setup1()
void loop1()
void setup2()
void loop2()
how? thanks!
Code: Select all
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_tasks.h"
No it will create task with no affinity meaning it will run on either core, whichever is available.As per my understanding, By default if you will directly use xTaskCreate API then it will create task for CPU1 as CPU0 is dedicated for WiFi and Bluetooth by default.
Ok. But WiFi and Bluetooth Core is CPU0 for dedicated purpose. Correct?No it will create task with no affinity meaning it will run on either core, whichever is available.As per my understanding, By default if you will directly use xTaskCreate API then it will create task for CPU1 as CPU0 is dedicated for WiFi and Bluetooth by default.
and, if i want to call a X function in core 1, i need to call this function in corr 0, but, if code is slowly in core 0, this affect core 1 functionz?No it will create task with no affinity meaning it will run on either core, whichever is available.As per my understanding, By default if you will directly use xTaskCreate API then it will create task for CPU1 as CPU0 is dedicated for WiFi and Bluetooth by default.
Hi,thanks!
if i not use this functions, the code is usually run in core 0? core 1? or in two in same time? any datasheet for this informations?
no, i possible never really need dual core, BUT, i like to make benchmark's and compare mcu's,etc.. in my home automation, i have +10 sensor's and 2 hmi interface, dual core could help me.Hi,thanks!
if i not use this functions, the code is usually run in core 0? core 1? or in two in same time? any datasheet for this informations?
If you have looked into make menuconfig configurations for your application then there is one options defined into configuration like "[*] Run FreeRTOS only on first core" in freeRTOS section in which you can explicitly execute freeRTOS stuffs (like Tasks, Queues and other stuffs) into CPU0 core.
If you will not use this function and also not select above configuration from make menuconfig configuration then whatever task you have created might be executed either on core 0 or core 1 which is dependent on stack availability.
Users browsing this forum: Google [Bot], Qwantbot and 23 guests