Upgrade GCC ESP32-WROOM-32

Hello everybody.

I'm having a problem running a code on my ESP32, which errors are multiple and are almost identical (only the variable names change): 'audio_tools::mime_pcm' declared as an 'inline' variable INLINE_VAR const char* mime_pcm = "audio/pcm";

This is the code in question that I'm trying to run on the ESP32:

/**
 * @file streams-audiokit-webserver_wav.ino
 *
 *  This sketch reads sound data from the AudioKit. The result is provided as WAV stream which can be listened to in a Web Browser
 *
 * @author Phil Schatzmann
 * @copyright GPLv3
 */

#include "AudioTools.h"
//#include "AudioLibs/AudioKit.h"

AudioWAVServer server("ssid","pasw");  

I2SStream i2sStream;
ConverterFillLeftAndRight<int16_t>filler(LeftIsEmpty);

// Arduino setup
void setup(){
  Serial.begin(115200);
  AudioLogger::instance().begin(Serial, AudioLogger::Info);

  // start i2s input with default configuration
  Serial.println("starting I2S...");
  auto config = i2sStream.defaultConfig(RX_MODE);
  config.i2s_format = audio_tools::I2S_STD_FORMAT;
  config.sample_rate = 22050;
  config.channels = 2;
  config.bits_per_sample =16;
  i2sStream.begin(config);
  Serial.println("I2S started");

  // start data sink
  server.begin(i2sStream, config, &filler);
}

// Arduino loop  
void loop() {
  // Handle new connections
  server.doLoop();  
}

Click here to have the zip with the examples and the other file of Phil Schatzmann

I searched on the internet and from what I understand it's a GCC problem (currently I have version 5.2), but I don't know how to upgrade.
I also looked at the Espressif documentation and other Topic of Arduino Forum but I don't understand where I have to change the things and what to really do.

Can anyone help me? I can not go on.

Thank you for your availability and attention

Your topic has been moved to a more suitable location on the forum as this has nothing to do with Avrdude, stk500 or Bootloader.

I fixed the problem in this GitHub Topic.

Warning: I have not updated the GCC, but I have changed a parameter of a file.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.