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

kokuam
Posts: 3
Joined: Mon Oct 21, 2019 10:01 pm

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

Postby kokuam » Sun Apr 05, 2020 9:58 pm

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!

boarchuz
Posts: 605
Joined: Tue Aug 21, 2018 5:28 am

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

Postby boarchuz » Mon Apr 06, 2020 10:16 am

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

kokuam
Posts: 3
Joined: Mon Oct 21, 2019 10:01 pm

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

Postby kokuam » Thu Apr 09, 2020 11:23 am

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(){};

Who is online

Users browsing this forum: No registered users and 111 guests