lbernstone / arduino-esp32-solo

Compiled libraries for ESP32-SOLO
58 stars 19 forks source link

error: 'CONFIG_ARDUINO_RUNNING_CORE' was not declared in this scope #2

Closed art-in closed 5 years ago

art-in commented 5 years ago

Hi, I'm trying to shut down second core to lower current consumption on my esp32.

I've replaced files in esp32 directory as said in readme, but after that build fails with the error.

[Starting] Upload sketch - main.ino
[Warning] Output path is not specified. Unable to reuse previously compiled files. Upload could be slow. See README.
Loading configuration...
Initializing packages...
Preparing boards...
Verifying...
C:\Users\Artin\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2\cores\esp32\main.cpp: In function 'void app_main()':

C:\Users\Artin\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2\cores\esp32\main.cpp:27:80: error: 'CONFIG_ARDUINO_RUNNING_CORE' was not declared in this scope

     xTaskCreateUniversal(loopTask, "loopTask", 8192, NULL, 1, &loopTaskHandle, CONFIG_ARDUINO_RUNNING_CORE);

                                                                                ^

exit status 1
[Error] Exit with code=1