Skip to content

M5Capsule: Speaker works with ESP-IDF v5.4.2 but not with ESP-IDF v5.5.1 #193

@sylque

Description

@sylque

This is my code:

#include <M5Capsule.h>

void setup() {
  auto cfg = M5.config();
  M5Capsule.begin(cfg);
}

void loop() {
  M5Capsule.update();
  if (M5Capsule.BtnA.wasPressed()) {
    printf("Button Pushed!\n");
    M5Capsule.Speaker.tone(4000, 20);
  }
  delay(100);
}

This is my platformio.ini file:

[platformio]
default_envs = capsule

[env:capsule]
;platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.31/platform-espressif32.zip SPEAKER DOESN'T WORK!
platform = https://github.com/pioarduino/platform-espressif32/releases/download/54.03.21-2/platform-espressif32.zip
board = m5stack-stamps3
framework = arduino
monitor_speed = 115200
board_build.partitions = huge_app.csv
monitor_filters = esp32_exception_decoder
build_unflags = -Werror=all
build_flags = 
  -DARDUINO_USB_CDC_ON_BOOT=1 ; Enable Serial. See https://community.platformio.org/t/m5dial-no-serial-output-m5stamp-s3-board/37801/3
  -Wno-vla
lib_deps = M5Capsule M5Unified
build_type = debug

The sound is played back correctly with ESP-IDF v5.4.2:

platform = https://github.com/pioarduino/platform-espressif32/releases/download/54.03.21-2/platform-espressif32.zip

but I hear nothing with ESP-IDF v5.5.1:

platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.31/platform-espressif32.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions