Page 1 of 1

How to update GCC for Arduino core? (5.2->7.x/8.x)

Posted: Sun Apr 05, 2020 9:58 pm
by kokuam
Hi, I noticed that the latest Arduino Core for ESP32 (1.0.4) has a very old GCC 5.2. Could anyone please tell me how to update it to 7.x or 8.x ? Thank you!

Re: How to update GCC for Arduino core? (5.2->7.x/8.x)

Posted: Mon Apr 06, 2020 10:16 am
by boarchuz
I believe Arduino-ESP32 is in the process of updating to IDF 4.x which uses 8.2. Wait a little longer for that update to release.

If you're really impatient then I see there's this branch but I have no idea what state it's in:
https://github.com/espressif/arduino-es ... lease/v4.0

Re: How to update GCC for Arduino core? (5.2->7.x/8.x)

Posted: Thu Apr 09, 2020 11:23 am
by kokuam
Thanks! it seems to be working :

#include <Arduino.h>

void setup() {
Serial.begin(115200);
Serial.println("__GNUC__ = "+String(__GNUC__)+"."+String(__GNUC_MINOR__)); // got __GNUC__ = 8.2
};
void loop(){};