|
| 1 | +; PlatformIO Project Configuration File |
| 2 | +; |
| 3 | +; Build options: build flags, source filter |
| 4 | +; Upload options: custom upload port, speed and extra flags |
| 5 | +; Library options: dependencies, extra library storages |
| 6 | +; Advanced options: extra scripting |
| 7 | +; |
| 8 | +; Please visit documentation for the other options and examples |
| 9 | +; https://docs.platformio.org/en/latest/platforms/espressif32.html |
| 10 | + |
| 11 | +[env:esp32dev] |
| 12 | +platform = https://github.com/platformio/platform-espressif32.git#v6.2.0 ; ESP-IDF v4.4.4 |
| 13 | +platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.8 |
| 14 | + |
| 15 | +;framework = arduino |
| 16 | +framework = arduino, espidf |
| 17 | + |
| 18 | + |
| 19 | +board = esp32dev ;chipmodel ESP32, 4M FLASH, USBtoTTL |
| 20 | +;board = um_tinys3 ;chipmodel ESP32S3, 8M FLASH, HAS_PSRAM, SerialUSB |
| 21 | +;board = esp32-12k ;chipmodel ESP32S3, 8M FLASH, HAS_PSRAM, USBtoTTL |
| 22 | + |
| 23 | +board_build.f_cpu = 240000000L |
| 24 | +board_build.flash_size=4MB |
| 25 | +board_build.flash_freq=80M |
| 26 | +board_build.spiram_mode=2 |
| 27 | +monitor_speed = 115200 |
| 28 | +monitor_filters = esp32_exception_decoder |
| 29 | +board_build.partitions = partitions.csv |
| 30 | +upload_speed = 460800 ; 921600, 512000, 460800, 256000, 115200 |
| 31 | + |
| 32 | + |
| 33 | +lib_deps = |
| 34 | + https://github.com/schreibfaul1/ESP32-audioI2S.git |
| 35 | + |
| 36 | + |
| 37 | +board_upload.maximum_size = 3145728 |
| 38 | +board_upload.flash_size = 4MB |
| 39 | +board_build.flash_mode = qio |
| 40 | +board_build.bootloader = dio |
| 41 | +board_build.arduino.upstream_packages = no |
| 42 | + |
| 43 | +;build_flags = -DCORE_DEBUG_LEVEL=0 ; None |
| 44 | +;build_flags = -DCORE_DEBUG_LEVEL=1 ; Error |
| 45 | +;build_flags = -DCORE_DEBUG_LEVEL=2 ; Warn |
| 46 | +;build_flags = -DCORE_DEBUG_LEVEL=3 ; Info |
| 47 | +;build_flags = -DCORE_DEBUG_LEVEL=4 ; Debug |
| 48 | +;build_flags = -DCORE_DEBUG_LEVEL=5 ; Verbose |
| 49 | + |
| 50 | +build_flags = |
| 51 | + -Wall |
| 52 | + -Wextra |
| 53 | + -DCORE_DEBUG_LEVEL=3 |
| 54 | + -DCONFIG_ARDUHAL_LOG_COLORS |
| 55 | + -DBOARD_HAS_PSRAM |
| 56 | +; -DAUDIO_LOG |
| 57 | + -DARDUINO_RUNNING_CORE=1 ; Arduino Runs On Core (setup, loop) |
| 58 | + -DARDUINO_EVENT_RUNNING_CORE=1 ; Events Run On Core |
| 59 | + |
| 60 | +build_unflags = |
| 61 | +; -DARDUINO_USB_CDC_ON_BOOT=0 ; traditional log |
| 62 | +; -DBOARD_HAS_PSRAM |
0 commit comments