From 49f19b7b6568e0af1c3aad1f987f07d4da1fcf16 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Tue, 5 Jan 2021 17:19:15 +0100 Subject: [PATCH 1/4] SD Card support for Odroid --- tasmota/tasmota_configurations_ESP32.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasmota/tasmota_configurations_ESP32.h b/tasmota/tasmota_configurations_ESP32.h index 3ce9881f6..a9eac0acb 100644 --- a/tasmota/tasmota_configurations_ESP32.h +++ b/tasmota/tasmota_configurations_ESP32.h @@ -52,6 +52,9 @@ #define FALLBACK_MODULE ODROID_GO // [Module2] Select default module on fast reboot where USER_MODULE is user template #define USE_ODROID_GO // Add support for Odroid Go +#define USE_UFILESYS +#define USE_SDCARD +//#define SDCARD_CS_PIN 4 // Need to look which is the Odroid Gpio for #define USE_ADC #define USE_SPI #define USE_DISPLAY // Add SPI Display Support (+2k code) From ffb79635c13f908a0c1802fe723977076823ccb0 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Tue, 5 Jan 2021 18:38:50 +0100 Subject: [PATCH 2/4] GPIO22 for CS SD Card --- tasmota/tasmota_configurations_ESP32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_configurations_ESP32.h b/tasmota/tasmota_configurations_ESP32.h index a9eac0acb..c6d5bb06e 100644 --- a/tasmota/tasmota_configurations_ESP32.h +++ b/tasmota/tasmota_configurations_ESP32.h @@ -54,7 +54,7 @@ #define USE_ODROID_GO // Add support for Odroid Go #define USE_UFILESYS #define USE_SDCARD -//#define SDCARD_CS_PIN 4 // Need to look which is the Odroid Gpio for +#define SDCARD_CS_PIN 22 #define USE_ADC #define USE_SPI #define USE_DISPLAY // Add SPI Display Support (+2k code) From 57870cd130d2d46371413baf9c03474194475e00 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Tue, 5 Jan 2021 22:34:48 +0100 Subject: [PATCH 3/4] -mfix-esp32-psram-cache-issue --- platformio_tasmota_env32.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio_tasmota_env32.ini b/platformio_tasmota_env32.ini index a446dad17..108792fce 100644 --- a/platformio_tasmota_env32.ini +++ b/platformio_tasmota_env32.ini @@ -41,7 +41,7 @@ extends = env:tasmota32 board = odroid_esp32 board_build.f_cpu = 240000000L board_build.partitions = esp32_partition_app1984k_spiffs12M.csv -build_flags = ${common32.build_flags} -DBOARD_HAS_PSRAM=true -DFIRMWARE_ODROID_GO +build_flags = ${common32.build_flags} -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -DFIRMWARE_ODROID_GO lib_extra_dirs = lib/libesp32, lib/lib_basic, lib/lib_i2c, lib/lib_rf, lib/lib_div, lib/lib_ssl, lib/lib_display [env:tasmota32-minimal] From fefc6d992cccbace32a1979f7ee9421187137c1c Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Wed, 6 Jan 2021 11:13:01 +0100 Subject: [PATCH 4/4] remove gpio hard config --- tasmota/tasmota_configurations_ESP32.h | 1 - 1 file changed, 1 deletion(-) diff --git a/tasmota/tasmota_configurations_ESP32.h b/tasmota/tasmota_configurations_ESP32.h index c6d5bb06e..63a973e19 100644 --- a/tasmota/tasmota_configurations_ESP32.h +++ b/tasmota/tasmota_configurations_ESP32.h @@ -54,7 +54,6 @@ #define USE_ODROID_GO // Add support for Odroid Go #define USE_UFILESYS #define USE_SDCARD -#define SDCARD_CS_PIN 22 #define USE_ADC #define USE_SPI #define USE_DISPLAY // Add SPI Display Support (+2k code)