Handle missing CONFIG_FREERTOS_NUMBER_OF_CORES define for some build environments#808
Handle missing CONFIG_FREERTOS_NUMBER_OF_CORES define for some build environments#808TCWORLD wants to merge 1 commit into
Conversation
When building with platformio, this define does not appear to exist. Based on an example on the Arduino community forum, they use `configNUM_CORES` for this purpose, which the Arduino ESP32 libs define as 2 (same as original value before this define was used). Add a failback define in case the former is not defined.
|
Hm, I'm using platformio (with pioarduino) as well, and the definement can be found in |
|
I did wonder whether it was some versioning issue. I've been using: It's possible I've missed it somewhere (did check the docs), but could you let me know what settings you have in your |
|
You're using version 3.0.4 which is quite outdated. BSB-LAN requires currently(!) at least 3.0.7. Besides, PlatformIO no longer supports Espressif/ESP32, so there is a community project (pioarduino) that has taken over. Here's my config for the Olimex EVB: |
|
Thanks. I'll update. Wasn't aware of |
When building with
PlatformIO, this define does not appear to exist in the available libraries. I'm guessing related to which version of the Arduino ESP32 libraries are used for the build.While trying to fix the build issue, I found an example on the Arduino community forum here, in which the example for this watchdog initialisation uses
configNUM_CORES. This define does exist inFreeRTOSConfig.hin the ESP32 libraries, and is defined in my case as 2 which matches the original hard-coded value before this define was used.I wasn't sure of the source of the selected define, but clearly it exists somewhere in the Arduino IDE otherwise somebody would have noticed by now. So instead of just replacing it, I'm proposing we set a failback define in case the former is missing.