Hi,
I have a question:
How to change app_main and all app code to run in APP_CPU (without FreeRTOS task), instead the default PRO_CPU,
if ESP32 is dual core ?
Its is possible, or have any reason to app_main stay in PRO_CPU ?
Regards
Joao Lopes
app_main and APP_CPU
Re: app_main and APP_CPU
app_main is already inside freertos task so not sure why you want to avoid a new task pinned to cpu1
-
- Posts: 59
- Joined: Thu Aug 17, 2017 5:40 pm
Re: app_main and APP_CPU
Hi WiFive, I agree that, and after I post it, I migrate all code in app_main to an task in CPU 1, and works very wellWiFive wrote:app_main is already inside freertos task so not sure why you want to avoid a new task pinned to cpu1
but a question still in the air, what app_main is not in cpu 1, the APP_CPU ?
I think for novices, including me, it is confuse.
Thanks for response
Regards
Joao Lopes
-
- Posts: 9708
- Joined: Thu Nov 26, 2015 4:08 am
Re: app_main and APP_CPU
This is because effectively, APP_CPU and PRO_CPU are legacy names, from back when the ESP32 was envisioned as an AMP processor (a processor which runs two entirely separate programs, with only limited interaction between the two). When we switched to SMP, the processors effectively became interchangable, but because the nomenclature already was in everything (register sets, startup code, ...) we decided it was easier to just keep it.
-
- Posts: 59
- Joined: Thu Aug 17, 2017 5:40 pm
Re: app_main and APP_CPU
Hi ESP_Sprite,
Thanks for this response
Regards
Joao Lopes
Thanks for this response
Regards
Joao Lopes
Who is online
Users browsing this forum: Bing [Bot] and 77 guests