diff --git a/docs/reference/boards.md b/docs/reference/boards.md index 1d0e4b5..fedd3ac 100644 --- a/docs/reference/boards.md +++ b/docs/reference/boards.md @@ -15,7 +15,7 @@ top. Add `--modules` to any of these: | Waveshare ESP32-S3-Touch-LCD-7 | `--port esp32 --board ESP32_GENERIC_S3 --variant LCD_7 --flash 8MB` | | Waveshare ESP32-S3-Touch-LCD-4.3 | `--port esp32 --board ESP32_GENERIC_S3 --variant LCD_4_3 --flash 8MB` | | LilyGO T-Embed S3 | `--port esp32 --board ESP32_GENERIC_S3 --variant T_EMBED --flash 16MB` | -| Ai-Thinker ESP32-Audio-Kit (ESP32-A1S), flash and PSRAM at 80 MHz | `--port esp32 --board ESP32_GENERIC --variant AUDIO_KIT --flash 4MB` (write the bootloader with the app) | +| Ai-Thinker ESP32-Audio-Kit (ESP32-A1S), CPU at 240 MHz, flash and PSRAM at 80 MHz | `--port esp32 --board ESP32_GENERIC --variant AUDIO_KIT --flash 4MB` (write the bootloader with the app) | | WT32-SC01 Plus | `--port esp32 --board ESP32_GENERIC_S3 --flash 16MB` | | Adafruit QT Py ESP32 Pico (8 MB flash, 2 MB PSRAM), flash and PSRAM at 80 MHz | `--port esp32 --board ESP32_GENERIC --variant QTPY_PICO --flash 8MB` (write the bootloader with the app) | | Raspberry Pi Pico (RP2040) | `--port rp2 --board RPI_PICO` (not `--modules all`: [it doesn't fit](../guides/fit-firmware-on-a-small-flash.md)) | @@ -43,7 +43,7 @@ Our variants, in [`variants/`](https://github.com/PyDevices/micropython-pydevice | windows | `pydevices` | The same as unix `pydevices`, with the Windows display and audio backends (`displaydev.windisplay`, `audiodev.win_audio`). | | windows | `vst3-engine` | The same as unix `vst3-engine`. | | webassembly | `pydevices` | The browser runtime, with the `wasmbridge` module and a Fetch-backed `requests`. | -| esp32 | `ESP32_GENERIC` `AUDIO_KIT` | The ESP32 Audio Kit: upstream's PSRAM variant with flash and PSRAM at 80 MHz, which keeps Bluetooth call audio whole while a program is busy. | +| esp32 | `ESP32_GENERIC` `AUDIO_KIT` | The ESP32 Audio Kit: upstream's PSRAM variant with flash and PSRAM at 80 MHz, which keeps Bluetooth call audio whole while a program is busy, and the CPU at 240 MHz, which lets a 48 kHz synth run with its reverb. | | esp32 | `ESP32_GENERIC_S3` `LCD_4_3`, `LCD_7`, `T_EMBED` | The S3 boards in the table above. | | esp32 | `ESP32_GENERIC_P4` `WIFI6_DEV_KIT`, `WIFI6_DEV_KIT_H2` | The P4 DEV-KIT, with the USB device on the two different connectors in the table above. | | esp32 | `ESP32_GENERIC_P4` `P4X_EYE` | The ESP32-P4X-EYE: `C6_WIFI` with ESP-Hosted on the pins its C6 uses, the OV2710 sensor driver, the USB device on the port marked "USB 2.0" and the REPL on "Debug", and a 9 MB app slot for the camera and vision modules. | diff --git a/variants/esp32/ESP32_GENERIC/AUDIO_KIT/sdkconfig b/variants/esp32/ESP32_GENERIC/AUDIO_KIT/sdkconfig index 3c1b9da..1d6ec05 100644 --- a/variants/esp32/ESP32_GENERIC/AUDIO_KIT/sdkconfig +++ b/variants/esp32/ESP32_GENERIC/AUDIO_KIT/sdkconfig @@ -9,6 +9,13 @@ CONFIG_ESPTOOLPY_FLASHFREQ_40M=n CONFIG_SPIRAM_SPEED_80M=y CONFIG_SPIRAM_SPEED_40M=n +# The CPU at 240 MHz, the chip's rated clock, where upstream's default is 160. +# A 48 kHz synth with a reverb on it (soundmodule's default) needs about 5 ms +# of each 5.3 ms block at 160 MHz and clicks; at 240 it needs about 3.5 ms. +CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=n +CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y +CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=240 + # Logs, not features: Bluedroid's trace strings and every IDF log under ERROR # come out, which is about 220 KB of the image. Errors still print. CONFIG_BT_STACK_NO_LOG=y