mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-28 04:07:47 +00:00
[ESP32S3] Fix bootloop on ESP32S3 with OPI PSRAM
This commit is contained in:
@@ -5,10 +5,11 @@
|
|||||||
"memory_type": "qio_opi"
|
"memory_type": "qio_opi"
|
||||||
},
|
},
|
||||||
"core": "esp32",
|
"core": "esp32",
|
||||||
"extra_flags": "-DARDUINO_TASMOTA -DBOARD_HAS_PSRAM -DARDUINO_USB_MODE=1 -DUSE_USB_CDC_CONSOLE -DESP32_16M -DESP32S3 -DARDUINO_USB_CDC_ON_BOOT=1",
|
|
||||||
"f_cpu": "240000000L",
|
"f_cpu": "240000000L",
|
||||||
"f_flash": "80000000L",
|
"f_flash": "80000000L",
|
||||||
|
"boot": "opi",
|
||||||
"flash_mode": "qio",
|
"flash_mode": "qio",
|
||||||
|
"extra_flags": "-DARDUINO_TASMOTA -DBOARD_HAS_PSRAM -DARDUINO_USB_MODE=1 -DUSE_USB_CDC_CONSOLE -DESP32_16M -DESP32S3 -DARDUINO_USB_CDC_ON_BOOT=1",
|
||||||
"hwids": [
|
"hwids": [
|
||||||
[
|
[
|
||||||
"0x303A",
|
"0x303A",
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"build": {
|
||||||
|
"arduino": {
|
||||||
|
"ldscript": "eagle.flash.4m1m.ld"
|
||||||
|
},
|
||||||
|
"core": "esp8266",
|
||||||
|
"extra_flags": "-DARDUINO_TASMOTA -DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_ESP01 -DESP8266_4M -DESP8266_4M1M",
|
||||||
|
"f_cpu": "120000000L",
|
||||||
|
"f_flash": "40000000L",
|
||||||
|
"flash_mode": "dout",
|
||||||
|
"mcu": "esp8266",
|
||||||
|
"variant": "generic"
|
||||||
|
},
|
||||||
|
"connectivity": [
|
||||||
|
"wifi"
|
||||||
|
],
|
||||||
|
"frameworks": [
|
||||||
|
"arduino"
|
||||||
|
],
|
||||||
|
"name": "Espressif Generic ESP8266 ESPEasy 4M Flash 1M FS",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 81920,
|
||||||
|
"maximum_size": 1040316,
|
||||||
|
"require_upload_port": true,
|
||||||
|
"resetmethod": "nodemcu",
|
||||||
|
"speed": 115200
|
||||||
|
},
|
||||||
|
"url": "http://www.esp8266.com/wiki/doku.php?id=esp8266-module-family",
|
||||||
|
"vendor": "Espressif"
|
||||||
|
}
|
||||||
|
|
||||||
@@ -217,9 +217,9 @@ build_flags = ${esp32s3_common_LittleFS.build_flags}
|
|||||||
-DPLUGIN_BUILD_IR_EXTENDED
|
-DPLUGIN_BUILD_IR_EXTENDED
|
||||||
-DCONFIG_PM_LIGHTSLEEP_RTC_OSC_CAL_INTERVAL=1
|
-DCONFIG_PM_LIGHTSLEEP_RTC_OSC_CAL_INTERVAL=1
|
||||||
extra_scripts = ${esp32s3_common_LittleFS.extra_scripts}
|
extra_scripts = ${esp32s3_common_LittleFS.extra_scripts}
|
||||||
custom_sdkconfig =
|
;custom_sdkconfig =
|
||||||
CONFIG_RMT_ISR_CACHE_SAFE=y
|
; CONFIG_RMT_ISR_CACHE_SAFE=y
|
||||||
CONFIG_PM_LIGHTSLEEP_RTC_OSC_CAL_INTERVAL=1
|
; CONFIG_PM_LIGHTSLEEP_RTC_OSC_CAL_INTERVAL=1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -302,6 +302,7 @@ lib_ignore = ${normal.lib_ignore}
|
|||||||
|
|
||||||
[env:normal_beta_2ndheap_ESP8266_4M1M]
|
[env:normal_beta_2ndheap_ESP8266_4M1M]
|
||||||
extends = esp8266_4M1M
|
extends = esp8266_4M1M
|
||||||
|
board = esp8266_160MHz_4M1M_board
|
||||||
platform = ${normal_beta_2ndheap.platform}
|
platform = ${normal_beta_2ndheap.platform}
|
||||||
platform_packages = ${normal_beta_2ndheap.platform_packages}
|
platform_packages = ${normal_beta_2ndheap.platform_packages}
|
||||||
build_flags = ${normal_beta_2ndheap.build_flags}
|
build_flags = ${normal_beta_2ndheap.build_flags}
|
||||||
@@ -312,6 +313,7 @@ lib_ignore = ${normal_beta_2ndheap.lib_ignore}
|
|||||||
|
|
||||||
[env:normal_beta_2ndheap_ESP8266_4M1M_VCC]
|
[env:normal_beta_2ndheap_ESP8266_4M1M_VCC]
|
||||||
extends = esp8266_4M1M
|
extends = esp8266_4M1M
|
||||||
|
board = esp8266_160MHz_4M1M_board
|
||||||
platform = ${normal_beta_2ndheap.platform}
|
platform = ${normal_beta_2ndheap.platform}
|
||||||
platform_packages = ${normal_beta_2ndheap.platform_packages}
|
platform_packages = ${normal_beta_2ndheap.platform_packages}
|
||||||
build_flags = ${normal_beta_2ndheap.build_flags}
|
build_flags = ${normal_beta_2ndheap.build_flags}
|
||||||
|
|||||||
@@ -129,6 +129,10 @@ void sw_watchdog_callback(void *arg)
|
|||||||
\*********************************************************************************************/
|
\*********************************************************************************************/
|
||||||
void ESPEasy_setup()
|
void ESPEasy_setup()
|
||||||
{
|
{
|
||||||
|
# ifdef BOARD_HAS_PSRAM
|
||||||
|
psramInit();
|
||||||
|
# endif // ifdef BOARD_HAS_PSRAM
|
||||||
|
|
||||||
#if defined(ESP8266_DISABLE_EXTRA4K) || defined(USE_SECOND_HEAP)
|
#if defined(ESP8266_DISABLE_EXTRA4K) || defined(USE_SECOND_HEAP)
|
||||||
|
|
||||||
// disable_extra4k_at_link_time();
|
// disable_extra4k_at_link_time();
|
||||||
@@ -144,9 +148,6 @@ void ESPEasy_setup()
|
|||||||
DisableBrownout(); // Workaround possible weak LDO resulting in brownout detection during Wifi connection
|
DisableBrownout(); // Workaround possible weak LDO resulting in brownout detection during Wifi connection
|
||||||
# endif // DISABLE_ESP32_BROWNOUT
|
# endif // DISABLE_ESP32_BROWNOUT
|
||||||
|
|
||||||
# ifdef BOARD_HAS_PSRAM
|
|
||||||
psramInit();
|
|
||||||
# endif // ifdef BOARD_HAS_PSRAM
|
|
||||||
|
|
||||||
# if CONFIG_IDF_TARGET_ESP32
|
# if CONFIG_IDF_TARGET_ESP32
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user