From 8d2edc40cadff7700c729448124b53ff1ab1e6e0 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Mon, 27 Nov 2023 23:19:14 +0100 Subject: [PATCH] Fix boards --- boards/btclock.json | 9 +++++++-- platformio.ini | 1 - sdkconfig.defaults | 4 ++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/boards/btclock.json b/boards/btclock.json index 8de370b..bee4064 100644 --- a/boards/btclock.json +++ b/boards/btclock.json @@ -9,6 +9,7 @@ "extra_flags": [ "-DBOARD_HAS_PSRAM", "-DARDUINO_BTCLOCK", + "-DARDUINO_ESP32S3_DEV", "-DIS_BTCLOCK_S3", "-DARDUINO_USB_MODE=1", "-DARDUINO_RUNNING_CORE=1", @@ -18,6 +19,10 @@ "f_cpu": "240000000L", "f_flash": "80000000L", "flash_mode": "qio", + "psram_type": "opi", + "espidf": { + "sdkconfig_path": "boards" + }, "hwids": [ [ "0x303A", @@ -25,7 +30,7 @@ ] ], "mcu": "esp32s3", - "variant": "btclock" + "variant": "esp32s3" }, "connectivity": [ "bluetooth", @@ -54,4 +59,4 @@ }, "url": "http://github.com/btclock", "vendor": "BTClock" -} +} \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index 7f09b00..a9b497c 100644 --- a/platformio.ini +++ b/platformio.ini @@ -14,7 +14,6 @@ data_dir = data/build_gz platform = https://github.com/platformio/platform-espressif32.git framework = arduino, espidf monitor_speed = 115200 -upload_speed = 921600 monitor_filters = esp32_exception_decoder, colorize board_build.filesystem = littlefs diff --git a/sdkconfig.defaults b/sdkconfig.defaults index 1bdc874..09888de 100644 --- a/sdkconfig.defaults +++ b/sdkconfig.defaults @@ -29,6 +29,10 @@ CONFIG_COMPILER_CXX_EXCEPTIONS=y #CONFIG_BOOTLOADER_WDT_ENABLE=n #CONFIG_TASK_WDT=n +#Required for BTClock +#CONFIG_SPIRAM_MODE_OCT=y +#CONFIG_SPIRAM_MODE_QUAD=n + # Save RAM CONFIG_LWIP_IPV4=y CONFIG_LWIP_IPV6=y