I encountered the same error… but am not sure what caused it. Nothing special in the code - I was only compiling the included ESP_IDF blink example, and added #define CONFIG_BLINK_GPIO 1
to the top to let it compile.
For some reason… that commented out define snuck in at line 23 - removal of which also made the build complete successfully. I have no idea how that happened - I have been playing around with both the stable and beta versions of platformio, and did edit the default sdkconfig.h
it pulls in (to identify which file it was using, and by adding some text to the top header block). I’m not sure if reverting that change made any difference, as I now can’t reproduce this error.
Hopefully this will help anyone else who encounters it - do check the .pioenvs (soon to be .pio\build) and check the line of the esp32_out.ld
mentioned in the error - if it’s a commented out define, you can safely remove it and try the build again.
20: * Espressif IoT Development Framework Configuration
21: *
22: */
23: //#define CONFIG_ESP32_RTC_CLOCK_SOURCE_INTERNAL_RC 1
24: /* If BT is not built at all */
25: MEMORY
26:{