-
Notifications
You must be signed in to change notification settings - Fork 675
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhance development environment (#1841)
* add sdkconfig.defaults per environment platformio/platform-espressif32#638 * add env to platformio * add sdkconfig.<pioenv>.defaults * Update platformio.ini * Update .gitignore * Delete sdkconfig.esp32cam-cpu-freq-240.defaults * Delete sdkconfig.esp32cam-dev-himem.defaults * Delete sdkconfig.esp32cam-dev.defaults * Delete sdkconfig.esp32cam-no-softap.defaults * Add files via upload * Update sdkconfig.esp32cam-cpu-freq-240.defaults * Update platformio.ini * Update platformio.ini * Update CMakeLists.txt * Update sdkconfig.esp32cam-dev.defaults * Update platformio.ini
- Loading branch information
Showing
9 changed files
with
267 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CONFIG_ESP32_REV_MIN_0=n | ||
|
||
ESP32_REV_MIN_3=y | ||
CONFIG_ESP32_REV_MIN_3=y | ||
|
||
#https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/kconfig.html#config-spiram-cache-workaround | ||
CONFIG_ESP32_DPORT_WORKAROUND=n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CONFIG_FREERTOS_UNICORE=n | ||
CONFIG_FREERTOS_HZ=1000 | ||
CONFIG_ESP32_DEFAULT_CPU_FREQ_240=y | ||
CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ=240 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#enable bootloader logging | ||
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE=n | ||
CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL=2 | ||
CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=n | ||
CONFIG_FREERTOS_ASSERT_DISABLE=yn | ||
CONFIG_HAL_DEFAULT_ASSERTION_LEVEL=n | ||
#CONFIG_LOG_DEFAULT_LEVEL_NONE=y | ||
#CONFIG_LOG_DEFAULT_LEVEL=0 | ||
CONFIG_LOG_MAXIMUM_EQUALS_DEFAULT=y | ||
CONFIG_LWIP_ESP_LWIP_ASSERT=n | ||
CONFIG_OPTIMIZATION_ASSERTIONS_DISABLED=n | ||
CONFIG_OPTIMIZATION_ASSERTION_LEVEL=2 | ||
# CONFIG_LOG_COLORS is not set | ||
|
||
#set default loggin to | ||
CONFIG_BOOTLOADER_LOG_LEVEL_ERROR=y | ||
# CONFIG_BOOTLOADER_LOG_LEVEL_WARN is not set | ||
# CONFIG_BOOTLOADER_LOG_LEVEL_INFO is not set | ||
# CONFIG_BOOTLOADER_LOG_LEVEL_DEBUG is not set | ||
# CONFIG_BOOTLOADER_LOG_LEVEL_VERBOSE is not set | ||
CONFIG_BOOTLOADER_LOG_LEVEL=2 | ||
|
||
#disable lookup function | ||
CONFIG_ESP_ERR_TO_NAME_LOOKUP=y | ||
# CONFIG_ESP_ERR_TO_NAME_LOOKUP is not set | ||
|
||
#no panic message | ||
ESP_SYSTEM_PANIC_SILENT_REBOOT=n | ||
|
||
#disable ADC calibration (needed for external sensors) | ||
CONFIG_ADC_CAL_EFUSE_TP_ENABLE=y | ||
CONFIG_ADC_CAL_EFUSE_VREF_ENABLE=y | ||
CONFIG_ADC_CAL_LUT_ENABLE=needed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#### https://github.com/espressif/esp-idf/blob/master/examples/system/himem/sdkconfig.defaults | ||
CONFIG_SPIRAM=y | ||
CONFIG_SPIRAM_SUPPORT=y | ||
CONFIG_SPIRAM_BOOT_INIT=y | ||
CONFIG_SPIRAM_IGNORE_NOTFOUND=n | ||
CONFIG_SPIRAM_USE_MALLOC=y | ||
CONFIG_SPIRAM_TYPE_AUTO=y | ||
CONFIG_SPIRAM_SIZE=-1 | ||
CONFIG_SPIRAM_SPEED_40M=y | ||
CONFIG_SPIRAM_MEMTEST=y | ||
CONFIG_SPIRAM_CACHE_WORKAROUND=y | ||
CONFIG_SPIRAM_BANKSWITCH_ENABLE=y | ||
CONFIG_SPIRAM_BANKSWITCH_RESERVE=4 | ||
|
||
CONFIG_SPIRAM_USE_CAPS_ALLOC=y | ||
|
||
/* some references for testing | ||
|
||
# https://github.com/platformio/platform-espressif32/issues/185 | ||
|
||
#define CONFIG_SPIRAM_SUPPORT 1 | ||
#define CONFIG_PICO_PSRAM_CS_IO 10 | ||
#define CONFIG_ESP32_SPIRAM_SUPPORT 1 | ||
#define CONFIG_SPIRAM_BOOT_INIT 1 | ||
#define CONFIG_SPIRAM_IGNORE_NOTFOUND 0 | ||
#define CONFIG_SPIRAM_TYPE_AUTO 1 | ||
#define CONFIG_SPIRAM_SIZE -1 | ||
#define CONFIG_SPIRAM_USE_MEMMAP 1 | ||
#define CONFIG_SPIRAM_SPEED_40M 1 | ||
#define SPIRAM_USE_MALLOC 1 | ||
#define CONFIG_SPIRAM_CACHE_WORKAROUND 1 | ||
#define CONFIG_SPIRAM_BANKSWITCH_ENABLE 1 | ||
#define CONFIG_SPIRAM_BANKSWITCH_RESERVE 8 | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CONFIG_FREERTOS_USE_TRACE_FACILITY=1 | ||
CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y | ||
CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
### nothing actually | ||
|
||
|
||
/* #disabled | ||
|
||
#### recommended optimizations to test | ||
#https://docs.espressif.com/projects/esp-at/en/latest/esp32/Compile_and_Develop/How_to_optimize_throughput.html | ||
|
||
# System | ||
CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=4096 | ||
CONFIG_FREERTOS_UNICORE=n | ||
CONFIG_FREERTOS_HZ=1000 | ||
#CONFIG_ESP32_DEFAULT_CPU_FREQ_240=y | ||
#CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ=240 | ||
#CONFIG_ESPTOOLPY_FLASHMODE_QIO=y | ||
#CONFIG_ESPTOOLPY_FLASHFREQ_80M=y | ||
|
||
# LWIP | ||
CONFIG_LWIP_TCP_SND_BUF_DEFAULT=65534 | ||
CONFIG_LWIP_TCP_WND_DEFAULT=65534 | ||
CONFIG_LWIP_TCP_RECVMBOX_SIZE=12 | ||
CONFIG_LWIP_UDP_RECVMBOX_SIZE=12 | ||
CONFIG_LWIP_TCPIP_RECVMBOX_SIZE=64 | ||
|
||
# Wi-Fi | ||
#CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=16 | ||
#CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=64 | ||
#CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=64 | ||
#CONFIG_ESP32_WIFI_TX_BA_WIN=32 | ||
#CONFIG_ESP32_WIFI_RX_BA_WIN=32 | ||
#CONFIG_ESP32_WIFI_AMPDU_TX_ENABLED=y | ||
#CONFIG_ESP32_WIFI_AMPDU_RX_ENABLED=y | ||
|
||
## end of recommended optimizations | ||
|
||
*/ |