<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[PlatformIO + pioarduino + M5StickC Plus2: Cannot compile due to I2S v2 API incompatibility]]></title><description><![CDATA[<p dir="auto">I’m using an M5StickC Plus2 and the M5Stack SPK2 Hat (I2S speaker).<br />
In the Arduino IDE, everything works perfectly using ESP32-audioI2S with Arduino core 3.x.<br />
Now I’m trying to use PlatformIO with pioarduino (ESP32 core 3.x fork) to get the same audio playback working.</p>
<p dir="auto">❌ Problem<br />
Compilation fails due to:</p>
<p dir="auto">error: 'i2s_chan_handle_t' does not name a type<br />
This comes from code that uses the new I2S v2 API (i2s_std_config_t, i2s_chan_handle_t, etc.).</p>
<p dir="auto">This seems related to PlatformIO’s use of its own build system and lack of ESP-IDF header propagation or mismatched SDKs.</p>
<p dir="auto">⚙️ My Setup<br />
PlatformIO platformio.ini:<br />
platform = <a href="https://github.com/pioarduino/platform-espressif32.git" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/pioarduino/platform-espressif32.git</a><br />
board = m5stick-c<br />
framework = arduino<br />
monitor_speed = 115200<br />
lib_deps =<br />
<a href="https://github.com/m5stack/M5Unified.git#8b25496" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Unified.git#8b25496</a><br />
<a href="https://github.com/m5stack/M5GFX.git#develop" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5GFX.git#develop</a><br />
arduino-libraries/Arduino_BMI270_BMM150<br />
paulstoffregen/Mahony<br />
adafruit/Adafruit Unified Sensor<br />
adafruit/Adafruit BusIO<br />
adafruit/Adafruit BMP280 Library<br />
arduino-libraries/WiFi<br />
schreibfaul1/ESP32-audioI2S<br />
m5stack/M5Unified<br />
🔍 What I've Tried<br />
Works in Arduino IDE with Arduino core 3.0.0</p>
<p dir="auto">Fails in PlatformIO (even with pioarduino)</p>
<p dir="auto">Tried modifying library includes to manually pull in ESP-IDF 5 headers — no success<br />
Tried every other audio library I could find but all fail, both on espressif32 and pioarduino<br />
💡 Feature Request<br />
Could you provide:</p>
<p dir="auto">Either a backwards-compatible version using the I2S v1 API (e.g., i2s_config_t)</p>
<p dir="auto">Or guidance for PlatformIO+pioarduino users to get this compiling?</p>
]]></description><link>https://community.m5stack.com/topic/7625/platformio-pioarduino-m5stickc-plus2-cannot-compile-due-to-i2s-v2-api-incompatibility</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Mar 2026 11:13:51 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7625.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Jun 2025 06:33:41 GMT</pubDate><ttl>60</ttl></channel></rss>