[Solved] ESP32S3 SPIRAM: Reading memory in GDB returns always zeros

espnoob
Posts: 13
Joined: Mon Oct 31, 2022 3:22 pm

[Solved] ESP32S3 SPIRAM: Reading memory in GDB returns always zeros

Postby espnoob » Mon Oct 31, 2022 3:43 pm

Hi all,

I have an ESP32S3-WROOM-1 with 8MB external RAM and have followed https://docs.espressif.com/projects/esp ... ternal-ram.

When data arrives it is written to a malloc'd buffer of 1MB. A little utility dump function shows that the data is indeed written to that buffer but I cannot see the data from within GDB: the pointer returned from malloc seems to have a correct address (0x3d800b38). Printing the memory with

Code: Select all

p/x *buffer@128
for example returns

Code: Select all

'\000' <repeats 127 times>
.

Can somebody shed light on what I do wrong here?

Thanks!
Last edited by espnoob on Thu Nov 17, 2022 12:24 pm, edited 1 time in total.

ESP_Alexey
Posts: 24
Joined: Fri Dec 02, 2016 8:55 pm

Re: ESP32S3 SPIRAM: Reading memory in GDB returns always zeros

Postby ESP_Alexey » Tue Nov 01, 2022 8:28 am

HI,

As far as I remember we had some problems with SPIRAM data corruption on ESP32. We will check this for ESP32-S3.

espnoob
Posts: 13
Joined: Mon Oct 31, 2022 3:22 pm

Re: ESP32S3 SPIRAM: Reading memory in GDB returns always zeros

Postby espnoob » Tue Nov 01, 2022 10:53 am

Hi,

to clarify, I cannot see any corruption of data (dumping the memory on the monitor shows expected values), but when I try to print the respective memory region in GDB only zeros are shown.

Thanks again!
Last edited by espnoob on Wed Nov 02, 2022 1:16 pm, edited 1 time in total.

ESP_Alexey
Posts: 24
Joined: Fri Dec 02, 2016 8:55 pm

Re: ESP32S3 SPIRAM: Reading memory in GDB returns always zeros

Postby ESP_Alexey » Wed Nov 02, 2022 10:51 am

Hi espnoob,

I checked this with the latest OpenOCD (https://github.com/espressif/openocd-es ... 2-20221026) and it works at my side. I allocate memory with 'heap_caps_malloc', initiliaze it with 'memset' to '0xEA'.

Code: Select all

(gdb) p/x p
$1 = 0x3c030900
(gdb) x/32bx p
0x3c030900:	0xea	0xea	0xea	0xea	0xea	0xea	0xea	0xea
0x3c030908:	0xea	0xea	0xea	0xea	0xea	0xea	0xea	0xea
0x3c030910:	0xea	0xea	0xea	0xea	0xea	0xea	0xea	0xea
0x3c030918:	0xea	0xea	0xea	0xea	0xea	0xea	0xea	0xea
(gdb) p/x *(char *)p@32
$1 = {0xea <repeats 32 times>}
(gdb) q
What OpenOCD version do you use?

ESP_Alexey
Posts: 24
Joined: Fri Dec 02, 2016 8:55 pm

Re: ESP32S3 SPIRAM: Reading memory in GDB returns always zeros

Postby ESP_Alexey » Wed Nov 02, 2022 11:02 am

Hmm, looks like in my example heap_caps_malloc returns address from different address range "3c030900".

Code: Select all

    void *p = heap_caps_malloc(spi_block_sz, MALLOC_CAP_DEFAULT|MALLOC_CAP_SPIRAM);
    assert(p);
    printf("Allocated SPIRAM @ %x\n", p);
    memset(p, 0xEA, spi_block_sz);
But acc to the docs it should be from `0x3D000000`. Allocating it as 'heap_caps_malloc(spi_block_sz, MALLOC_CAP_SPIRAM)' has the same results.
Need to check this.

espnoob
Posts: 13
Joined: Mon Oct 31, 2022 3:22 pm

Re: ESP32S3 SPIRAM: Reading memory in GDB returns always zeros

Postby espnoob » Wed Nov 02, 2022 1:15 pm

Hi Alexey,
thanks for the info.
ESP_Alexey wrote:
Wed Nov 02, 2022 10:51 am
What OpenOCD version do you use?
The version of openocd is `Open On-Chip Debugger v0.11.0-esp32-20220411` from the latest stable IDF 4.4.2.
I allocate memory with 'heap_caps_malloc', initiliaze it with 'memset' to '0xEA'.
OK, that is another difference: I use plain `malloc` (with the CONFIG option in menuconfig to make external RAM available to malloc).
heap_caps_malloc returns address from different address range "3c030900".
That is interesting because, as you said, the docs say that external RAM is mapped from `0x3D000000` (with current 16MB limit).
Should I always use `caps_malloc`? I thought that in order to leave old code untouched, plain malloc could be used with
"Make RAM allocatable using malloc() as well" option from menuconfig.


Thanks a bunch again!

espnoob
Posts: 13
Joined: Mon Oct 31, 2022 3:22 pm

Re: ESP32S3 SPIRAM: Reading memory in GDB returns always zeros

Postby espnoob » Thu Nov 03, 2022 9:58 am

Sorry to check the obvious things too late, but with the latest release version of openocd the issue persists.

And further infos/test results:
  • The allocated buffer is part of a struct, and the struct is in internal memory `0x3fcb1298`
  • From GDB I cannot set any value in the malloc'd buffer: "Cannot access memory at address 0x3d800b38"

ESP_Alexey
Posts: 24
Joined: Fri Dec 02, 2016 8:55 pm

Re: ESP32S3 SPIRAM: Reading memory in GDB returns always zeros

Postby ESP_Alexey » Thu Nov 03, 2022 10:11 am

Could you collect OpenOCD log by adding `-d3 -l oocd.log` to its command line? Post it here please.

espnoob
Posts: 13
Joined: Mon Oct 31, 2022 3:22 pm

Re: ESP32S3 SPIRAM: Reading memory in GDB returns always zeros

Postby espnoob » Thu Nov 03, 2022 11:58 am

I modified the "hello-world" example to make the issue visible.

It allocates a buffer and sets the first byte. Then it continues to dump a region from the buffer.
Note, that the modified example uses `heap_caps_malloc` but it behaves the same with plain malloc.
  1. /* Hello World Example
  2.  
  3.    This example code is in the Public Domain (or CC0 licensed, at your option.)
  4.  
  5.    Unless required by applicable law or agreed to in writing, this
  6.    software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
  7.    CONDITIONS OF ANY KIND, either express or implied.
  8. */
  9. #include <stdio.h>
  10. #include <string.h>
  11. #include <stdlib.h>
  12. #include "esp_heap_caps.h"
  13. #include "sdkconfig.h"
  14. #include "freertos/FreeRTOS.h"
  15. #include "freertos/task.h"
  16. #include "esp_system.h"
  17. #include "esp_spi_flash.h"
  18.  
  19. struct context {
  20.   uint32_t size;
  21.   uint8_t *buffer;
  22. };
  23.  
  24. static struct context sContext;
  25.  
  26. void dump() {
  27.   char buffer[35];
  28.  
  29.   uint8_t *p = sContext.buffer;  
  30.  
  31.   for (int j=0; j<8; ++j) {
  32.     for (int i=0; i<16; ++i) {
  33.       sprintf(buffer+2*i, "%02x", p[j*16+i]);
  34.     }
  35.  
  36.     buffer[32] = '\r';
  37.     buffer[33] = '\n';
  38.     buffer[34] = '\0';
  39.  
  40.     printf(buffer);
  41.     memset(buffer, 0, sizeof(buffer));
  42.   }
  43.   puts("----------------\r\n");
  44. }
  45.  
  46. void app_main(void)
  47. {
  48.     printf("Minimum free heap size: %d bytes\n", esp_get_minimum_free_heap_size());
  49.  
  50.     sContext.buffer = heap_caps_malloc(1024*1024, MALLOC_CAP_DEFAULT|MALLOC_CAP_SPIRAM);
  51.  
  52.     memset(sContext.buffer, 0, 16);
  53.  
  54.     sContext.buffer[0] = 0xAA;
  55.  
  56.     dump();
  57.  
  58.     /* Print chip information */
  59.     esp_chip_info_t chip_info;
  60.     esp_chip_info(&chip_info);
  61.     printf("This is %s chip with %d CPU core(s), WiFi%s%s, ",
  62.             CONFIG_IDF_TARGET,
  63.             chip_info.cores,
  64.             (chip_info.features & CHIP_FEATURE_BT) ? "/BT" : "",
  65.             (chip_info.features & CHIP_FEATURE_BLE) ? "/BLE" : "");
  66.  
  67.     printf("silicon revision %d, ", chip_info.revision);
  68.  
  69.     printf("%dMB %s flash\n",
  70.            spi_flash_get_chip_size() / (1024 * 1024),
  71.            (chip_info.features & CHIP_FEATURE_EMB_FLASH) ? "embedded" : "external");
  72.  
  73.     printf("Minimum free heap size: %d bytes\n", esp_get_minimum_free_heap_size());
  74.  
  75.     while(true)
  76.     {
  77.       dump();
  78.       vTaskDelay(1000 / portTICK_PERIOD_MS);
  79.     }    
  80. }
Furthermore, this is the SDKCONFIG used:
  1. #
  2. # Automatically generated file. DO NOT EDIT.
  3. # Espressif IoT Development Framework (ESP-IDF) Project Configuration
  4. #
  5. CONFIG_IDF_CMAKE=y
  6. CONFIG_IDF_TARGET_ARCH_XTENSA=y
  7. CONFIG_IDF_TARGET="esp32s3"
  8. CONFIG_IDF_TARGET_ESP32S3=y
  9. CONFIG_IDF_FIRMWARE_CHIP_ID=0x0009
  10.  
  11. #
  12. # SDK tool configuration
  13. #
  14. CONFIG_SDK_TOOLPREFIX="xtensa-esp32s3-elf-"
  15. # CONFIG_SDK_TOOLCHAIN_SUPPORTS_TIME_WIDE_64_BITS is not set
  16. # end of SDK tool configuration
  17.  
  18. #
  19. # Build type
  20. #
  21. CONFIG_APP_BUILD_TYPE_APP_2NDBOOT=y
  22. # CONFIG_APP_BUILD_TYPE_ELF_RAM is not set
  23. CONFIG_APP_BUILD_GENERATE_BINARIES=y
  24. CONFIG_APP_BUILD_BOOTLOADER=y
  25. CONFIG_APP_BUILD_USE_FLASH_SECTIONS=y
  26. # end of Build type
  27.  
  28. #
  29. # Application manager
  30. #
  31. CONFIG_APP_COMPILE_TIME_DATE=y
  32. # CONFIG_APP_EXCLUDE_PROJECT_VER_VAR is not set
  33. # CONFIG_APP_EXCLUDE_PROJECT_NAME_VAR is not set
  34. # CONFIG_APP_PROJECT_VER_FROM_CONFIG is not set
  35. CONFIG_APP_RETRIEVE_LEN_ELF_SHA=16
  36. # end of Application manager
  37.  
  38. #
  39. # Bootloader config
  40. #
  41. CONFIG_BOOTLOADER_OFFSET_IN_FLASH=0x0
  42. CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y
  43. # CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_DEBUG is not set
  44. # CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_PERF is not set
  45. # CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_NONE is not set
  46. # CONFIG_BOOTLOADER_LOG_LEVEL_NONE is not set
  47. # CONFIG_BOOTLOADER_LOG_LEVEL_ERROR is not set
  48. # CONFIG_BOOTLOADER_LOG_LEVEL_WARN is not set
  49. CONFIG_BOOTLOADER_LOG_LEVEL_INFO=y
  50. # CONFIG_BOOTLOADER_LOG_LEVEL_DEBUG is not set
  51. # CONFIG_BOOTLOADER_LOG_LEVEL_VERBOSE is not set
  52. CONFIG_BOOTLOADER_LOG_LEVEL=3
  53. CONFIG_BOOTLOADER_VDDSDIO_BOOST_1_9V=y
  54. # CONFIG_BOOTLOADER_FACTORY_RESET is not set
  55. # CONFIG_BOOTLOADER_APP_TEST is not set
  56. CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE=y
  57. CONFIG_BOOTLOADER_WDT_ENABLE=y
  58. # CONFIG_BOOTLOADER_WDT_DISABLE_IN_USER_CODE is not set
  59. CONFIG_BOOTLOADER_WDT_TIME_MS=9000
  60. # CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE is not set
  61. # CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP is not set
  62. # CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON is not set
  63. # CONFIG_BOOTLOADER_SKIP_VALIDATE_ALWAYS is not set
  64. CONFIG_BOOTLOADER_RESERVE_RTC_SIZE=0
  65. # CONFIG_BOOTLOADER_CUSTOM_RESERVE_RTC is not set
  66. CONFIG_BOOTLOADER_FLASH_XMC_SUPPORT=y
  67. # end of Bootloader config
  68.  
  69. #
  70. # Security features
  71. #
  72. CONFIG_SECURE_BOOT_SUPPORTS_RSA=y
  73. CONFIG_SECURE_TARGET_HAS_SECURE_ROM_DL_MODE=y
  74. # CONFIG_SECURE_SIGNED_APPS_NO_SECURE_BOOT is not set
  75. # CONFIG_SECURE_BOOT is not set
  76. # CONFIG_SECURE_FLASH_ENC_ENABLED is not set
  77. # end of Security features
  78.  
  79. #
  80. # Boot ROM Behavior
  81. #
  82. CONFIG_BOOT_ROM_LOG_ALWAYS_ON=y
  83. # CONFIG_BOOT_ROM_LOG_ALWAYS_OFF is not set
  84. # CONFIG_BOOT_ROM_LOG_ON_GPIO_HIGH is not set
  85. # CONFIG_BOOT_ROM_LOG_ON_GPIO_LOW is not set
  86. # end of Boot ROM Behavior
  87.  
  88. #
  89. # Serial flasher config
  90. #
  91. CONFIG_ESPTOOLPY_BAUD_OTHER_VAL=115200
  92. # CONFIG_ESPTOOLPY_NO_STUB is not set
  93. # CONFIG_ESPTOOLPY_OCT_FLASH is not set
  94. # CONFIG_ESPTOOLPY_FLASHMODE_QIO is not set
  95. # CONFIG_ESPTOOLPY_FLASHMODE_QOUT is not set
  96. CONFIG_ESPTOOLPY_FLASHMODE_DIO=y
  97. # CONFIG_ESPTOOLPY_FLASHMODE_DOUT is not set
  98. CONFIG_ESPTOOLPY_FLASH_SAMPLE_MODE_STR=y
  99. CONFIG_ESPTOOLPY_FLASHMODE="dio"
  100. # CONFIG_ESPTOOLPY_FLASHFREQ_120M is not set
  101. CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
  102. # CONFIG_ESPTOOLPY_FLASHFREQ_40M is not set
  103. # CONFIG_ESPTOOLPY_FLASHFREQ_20M is not set
  104. CONFIG_ESPTOOLPY_FLASHFREQ="80m"
  105. # CONFIG_ESPTOOLPY_FLASHSIZE_1MB is not set
  106. # CONFIG_ESPTOOLPY_FLASHSIZE_2MB is not set
  107. # CONFIG_ESPTOOLPY_FLASHSIZE_4MB is not set
  108. # CONFIG_ESPTOOLPY_FLASHSIZE_8MB is not set
  109. CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
  110. # CONFIG_ESPTOOLPY_FLASHSIZE_32MB is not set
  111. # CONFIG_ESPTOOLPY_FLASHSIZE_64MB is not set
  112. # CONFIG_ESPTOOLPY_FLASHSIZE_128MB is not set
  113. CONFIG_ESPTOOLPY_FLASHSIZE="16MB"
  114. CONFIG_ESPTOOLPY_FLASHSIZE_DETECT=y
  115. CONFIG_ESPTOOLPY_BEFORE_RESET=y
  116. # CONFIG_ESPTOOLPY_BEFORE_NORESET is not set
  117. CONFIG_ESPTOOLPY_BEFORE="default_reset"
  118. CONFIG_ESPTOOLPY_AFTER_RESET=y
  119. # CONFIG_ESPTOOLPY_AFTER_NORESET is not set
  120. CONFIG_ESPTOOLPY_AFTER="hard_reset"
  121. # CONFIG_ESPTOOLPY_MONITOR_BAUD_CONSOLE is not set
  122. # CONFIG_ESPTOOLPY_MONITOR_BAUD_9600B is not set
  123. # CONFIG_ESPTOOLPY_MONITOR_BAUD_57600B is not set
  124. CONFIG_ESPTOOLPY_MONITOR_BAUD_115200B=y
  125. # CONFIG_ESPTOOLPY_MONITOR_BAUD_230400B is not set
  126. # CONFIG_ESPTOOLPY_MONITOR_BAUD_921600B is not set
  127. # CONFIG_ESPTOOLPY_MONITOR_BAUD_2MB is not set
  128. # CONFIG_ESPTOOLPY_MONITOR_BAUD_OTHER is not set
  129. CONFIG_ESPTOOLPY_MONITOR_BAUD_OTHER_VAL=115200
  130. CONFIG_ESPTOOLPY_MONITOR_BAUD=115200
  131. # end of Serial flasher config
  132.  
  133. #
  134. # Partition Table
  135. #
  136. CONFIG_PARTITION_TABLE_SINGLE_APP=y
  137. # CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE is not set
  138. # CONFIG_PARTITION_TABLE_TWO_OTA is not set
  139. # CONFIG_PARTITION_TABLE_CUSTOM is not set
  140. CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
  141. CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp.csv"
  142. CONFIG_PARTITION_TABLE_OFFSET=0x8000
  143. CONFIG_PARTITION_TABLE_MD5=y
  144. # end of Partition Table
  145.  
  146. #
  147. # Compiler options
  148. #
  149. CONFIG_COMPILER_OPTIMIZATION_DEFAULT=y
  150. # CONFIG_COMPILER_OPTIMIZATION_SIZE is not set
  151. # CONFIG_COMPILER_OPTIMIZATION_PERF is not set
  152. # CONFIG_COMPILER_OPTIMIZATION_NONE is not set
  153. CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE=y
  154. # CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT is not set
  155. # CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE is not set
  156. CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL=2
  157. # CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT is not set
  158. CONFIG_COMPILER_HIDE_PATHS_MACROS=y
  159. # CONFIG_COMPILER_CXX_EXCEPTIONS is not set
  160. # CONFIG_COMPILER_CXX_RTTI is not set
  161. CONFIG_COMPILER_STACK_CHECK_MODE_NONE=y
  162. # CONFIG_COMPILER_STACK_CHECK_MODE_NORM is not set
  163. # CONFIG_COMPILER_STACK_CHECK_MODE_STRONG is not set
  164. # CONFIG_COMPILER_STACK_CHECK_MODE_ALL is not set
  165. # CONFIG_COMPILER_WARN_WRITE_STRINGS is not set
  166. # CONFIG_COMPILER_DISABLE_GCC8_WARNINGS is not set
  167. # CONFIG_COMPILER_DUMP_RTL_FILES is not set
  168. # end of Compiler options
  169.  
  170. #
  171. # Component config
  172. #
  173.  
  174. #
  175. # Application Level Tracing
  176. #
  177. # CONFIG_APPTRACE_DEST_JTAG is not set
  178. CONFIG_APPTRACE_DEST_NONE=y
  179. CONFIG_APPTRACE_LOCK_ENABLE=y
  180. # end of Application Level Tracing
  181.  
  182. #
  183. # ESP-ASIO
  184. #
  185. # CONFIG_ASIO_SSL_SUPPORT is not set
  186. # end of ESP-ASIO
  187.  
  188. #
  189. # Bluetooth
  190. #
  191. # CONFIG_BT_ENABLED is not set
  192. # end of Bluetooth
  193.  
  194. #
  195. # CoAP Configuration
  196. #
  197. CONFIG_COAP_MBEDTLS_PSK=y
  198. # CONFIG_COAP_MBEDTLS_PKI is not set
  199. # CONFIG_COAP_MBEDTLS_DEBUG is not set
  200. CONFIG_COAP_LOG_DEFAULT_LEVEL=0
  201. # end of CoAP Configuration
  202.  
  203. #
  204. # Driver configurations
  205. #
  206.  
  207. #
  208. # ADC configuration
  209. #
  210. # CONFIG_ADC_FORCE_XPD_FSM is not set
  211. CONFIG_ADC_DISABLE_DAC=y
  212. # end of ADC configuration
  213.  
  214. #
  215. # MCPWM configuration
  216. #
  217. # CONFIG_MCPWM_ISR_IN_IRAM is not set
  218. # end of MCPWM configuration
  219.  
  220. #
  221. # SPI configuration
  222. #
  223. # CONFIG_SPI_MASTER_IN_IRAM is not set
  224. CONFIG_SPI_MASTER_ISR_IN_IRAM=y
  225. # CONFIG_SPI_SLAVE_IN_IRAM is not set
  226. CONFIG_SPI_SLAVE_ISR_IN_IRAM=y
  227. # end of SPI configuration
  228.  
  229. #
  230. # TWAI configuration
  231. #
  232. # CONFIG_TWAI_ISR_IN_IRAM is not set
  233. # end of TWAI configuration
  234.  
  235. #
  236. # UART configuration
  237. #
  238. # CONFIG_UART_ISR_IN_IRAM is not set
  239. # end of UART configuration
  240.  
  241. #
  242. # GDMA Configuration
  243. #
  244. # CONFIG_GDMA_CTRL_FUNC_IN_IRAM is not set
  245. # CONFIG_GDMA_ISR_IRAM_SAFE is not set
  246. # end of GDMA Configuration
  247. # end of Driver configurations
  248.  
  249. #
  250. # eFuse Bit Manager
  251. #
  252. # CONFIG_EFUSE_CUSTOM_TABLE is not set
  253. # CONFIG_EFUSE_VIRTUAL is not set
  254. CONFIG_EFUSE_MAX_BLK_LEN=256
  255. # end of eFuse Bit Manager
  256.  
  257. #
  258. # ESP-TLS
  259. #
  260. CONFIG_ESP_TLS_USING_MBEDTLS=y
  261. CONFIG_ESP_TLS_USE_DS_PERIPHERAL=y
  262. # CONFIG_ESP_TLS_CLIENT_SESSION_TICKETS is not set
  263. # CONFIG_ESP_TLS_SERVER is not set
  264. # CONFIG_ESP_TLS_PSK_VERIFICATION is not set
  265. # CONFIG_ESP_TLS_INSECURE is not set
  266. # end of ESP-TLS
  267.  
  268. #
  269. # ESP32S3-Specific
  270. #
  271. # CONFIG_ESP32S3_DEFAULT_CPU_FREQ_80 is not set
  272. CONFIG_ESP32S3_DEFAULT_CPU_FREQ_160=y
  273. # CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240 is not set
  274. CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ=160
  275.  
  276. #
  277. # Cache config
  278. #
  279. CONFIG_ESP32S3_INSTRUCTION_CACHE_16KB=y
  280. # CONFIG_ESP32S3_INSTRUCTION_CACHE_32KB is not set
  281. CONFIG_ESP32S3_INSTRUCTION_CACHE_SIZE=0x4000
  282. # CONFIG_ESP32S3_INSTRUCTION_CACHE_4WAYS is not set
  283. CONFIG_ESP32S3_INSTRUCTION_CACHE_8WAYS=y
  284. CONFIG_ESP32S3_ICACHE_ASSOCIATED_WAYS=8
  285. # CONFIG_ESP32S3_INSTRUCTION_CACHE_LINE_16B is not set
  286. CONFIG_ESP32S3_INSTRUCTION_CACHE_LINE_32B=y
  287. CONFIG_ESP32S3_INSTRUCTION_CACHE_LINE_SIZE=32
  288. # CONFIG_ESP32S3_INSTRUCTION_CACHE_WRAP is not set
  289. # CONFIG_ESP32S3_DATA_CACHE_16KB is not set
  290. CONFIG_ESP32S3_DATA_CACHE_32KB=y
  291. # CONFIG_ESP32S3_DATA_CACHE_64KB is not set
  292. CONFIG_ESP32S3_DATA_CACHE_SIZE=0x8000
  293. # CONFIG_ESP32S3_DATA_CACHE_4WAYS is not set
  294. CONFIG_ESP32S3_DATA_CACHE_8WAYS=y
  295. CONFIG_ESP32S3_DCACHE_ASSOCIATED_WAYS=8
  296. # CONFIG_ESP32S3_DATA_CACHE_LINE_16B is not set
  297. CONFIG_ESP32S3_DATA_CACHE_LINE_32B=y
  298. # CONFIG_ESP32S3_DATA_CACHE_LINE_64B is not set
  299. CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE=32
  300. # CONFIG_ESP32S3_DATA_CACHE_WRAP is not set
  301. # end of Cache config
  302.  
  303. CONFIG_ESP32S3_SPIRAM_SUPPORT=y
  304.  
  305. #
  306. # SPI RAM config
  307. #
  308. # CONFIG_SPIRAM_MODE_QUAD is not set
  309. CONFIG_SPIRAM_MODE_OCT=y
  310. CONFIG_SPIRAM_TYPE_AUTO=y
  311. # CONFIG_SPIRAM_TYPE_ESPPSRAM64 is not set
  312. CONFIG_SPIRAM_SIZE=-1
  313.  
  314. #
  315. # PSRAM Clock and CS IO for ESP32S3
  316. #
  317. CONFIG_DEFAULT_PSRAM_CLK_IO=30
  318. CONFIG_DEFAULT_PSRAM_CS_IO=26
  319. # end of PSRAM Clock and CS IO for ESP32S3
  320.  
  321. # CONFIG_SPIRAM_FETCH_INSTRUCTIONS is not set
  322. # CONFIG_SPIRAM_RODATA is not set
  323. # CONFIG_SPIRAM_SPEED_80M is not set
  324. CONFIG_SPIRAM_SPEED_40M=y
  325. CONFIG_SPIRAM=y
  326. CONFIG_SPIRAM_BOOT_INIT=y
  327. # CONFIG_SPIRAM_IGNORE_NOTFOUND is not set
  328. # CONFIG_SPIRAM_USE_MEMMAP is not set
  329. # CONFIG_SPIRAM_USE_CAPS_ALLOC is not set
  330. CONFIG_SPIRAM_USE_MALLOC=y
  331. CONFIG_SPIRAM_MEMTEST=y
  332. CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=16384
  333. # CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP is not set
  334. CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=32768
  335. # end of SPI RAM config
  336.  
  337. # CONFIG_ESP32S3_TRAX is not set
  338. CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM=0x0
  339. # CONFIG_ESP32S3_ULP_COPROC_ENABLED is not set
  340. CONFIG_ESP32S3_ULP_COPROC_RESERVE_MEM=0
  341. CONFIG_ESP32S3_DEBUG_OCDAWARE=y
  342. CONFIG_ESP32S3_BROWNOUT_DET=y
  343. CONFIG_ESP32S3_BROWNOUT_DET_LVL_SEL_7=y
  344. # CONFIG_ESP32S3_BROWNOUT_DET_LVL_SEL_6 is not set
  345. # CONFIG_ESP32S3_BROWNOUT_DET_LVL_SEL_5 is not set
  346. # CONFIG_ESP32S3_BROWNOUT_DET_LVL_SEL_4 is not set
  347. # CONFIG_ESP32S3_BROWNOUT_DET_LVL_SEL_3 is not set
  348. # CONFIG_ESP32S3_BROWNOUT_DET_LVL_SEL_2 is not set
  349. # CONFIG_ESP32S3_BROWNOUT_DET_LVL_SEL_1 is not set
  350. CONFIG_ESP32S3_BROWNOUT_DET_LVL=7
  351. CONFIG_ESP32S3_TIME_SYSCALL_USE_RTC_FRC1=y
  352. # CONFIG_ESP32S3_TIME_SYSCALL_USE_RTC is not set
  353. # CONFIG_ESP32S3_TIME_SYSCALL_USE_FRC1 is not set
  354. # CONFIG_ESP32S3_TIME_SYSCALL_USE_NONE is not set
  355. CONFIG_ESP32S3_RTC_CLK_SRC_INT_RC=y
  356. # CONFIG_ESP32S3_RTC_CLK_SRC_EXT_CRYS is not set
  357. # CONFIG_ESP32S3_RTC_CLK_SRC_EXT_OSC is not set
  358. # CONFIG_ESP32S3_RTC_CLK_SRC_INT_8MD256 is not set
  359. CONFIG_ESP32S3_RTC_CLK_CAL_CYCLES=1024
  360. CONFIG_ESP32S3_DEEP_SLEEP_WAKEUP_DELAY=2000
  361. # CONFIG_ESP32S3_NO_BLOBS is not set
  362. # CONFIG_ESP32S3_RTCDATA_IN_FAST_MEM is not set
  363. # CONFIG_ESP32S3_USE_FIXED_STATIC_RAM_SIZE is not set
  364. # end of ESP32S3-Specific
  365.  
  366. #
  367. # ADC-Calibration
  368. #
  369. # end of ADC-Calibration
  370.  
  371. #
  372. # Common ESP-related
  373. #
  374. CONFIG_ESP_ERR_TO_NAME_LOOKUP=y
  375. # end of Common ESP-related
  376.  
  377. #
  378. # Ethernet
  379. #
  380. # CONFIG_ETH_USE_SPI_ETHERNET is not set
  381. # CONFIG_ETH_USE_OPENETH is not set
  382. # end of Ethernet
  383.  
  384. #
  385. # Event Loop Library
  386. #
  387. # CONFIG_ESP_EVENT_LOOP_PROFILING is not set
  388. CONFIG_ESP_EVENT_POST_FROM_ISR=y
  389. CONFIG_ESP_EVENT_POST_FROM_IRAM_ISR=y
  390. # end of Event Loop Library
  391.  
  392. #
  393. # GDB Stub
  394. #
  395. # end of GDB Stub
  396.  
  397. #
  398. # ESP HTTP client
  399. #
  400. CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS=y
  401. # CONFIG_ESP_HTTP_CLIENT_ENABLE_BASIC_AUTH is not set
  402. CONFIG_ESP_HTTP_CLIENT_ENABLE_DIGEST_AUTH=y
  403. # end of ESP HTTP client
  404.  
  405. #
  406. # HTTP Server
  407. #
  408. CONFIG_HTTPD_MAX_REQ_HDR_LEN=512
  409. CONFIG_HTTPD_MAX_URI_LEN=512
  410. # CONFIG_HTTPD_ERR_RESP_NO_DELAY is not set
  411. CONFIG_HTTPD_PURGE_BUF_LEN=32
  412. # CONFIG_HTTPD_LOG_PURGE_DATA is not set
  413. # CONFIG_HTTPD_WS_SUPPORT is not set
  414. # end of HTTP Server
  415.  
  416. #
  417. # ESP HTTPS OTA
  418. #
  419. # CONFIG_OTA_ALLOW_HTTP is not set
  420. # end of ESP HTTPS OTA
  421.  
  422. #
  423. # ESP HTTPS server
  424. #
  425. # CONFIG_ESP_HTTPS_SERVER_ENABLE is not set
  426. # end of ESP HTTPS server
  427.  
  428. #
  429. # Hardware Settings
  430. #
  431.  
  432. #
  433. # MAC Config
  434. #
  435. CONFIG_ESP_MAC_ADDR_UNIVERSE_WIFI_STA=y
  436. CONFIG_ESP_MAC_ADDR_UNIVERSE_WIFI_AP=y
  437. CONFIG_ESP_MAC_ADDR_UNIVERSE_BT=y
  438. CONFIG_ESP_MAC_ADDR_UNIVERSE_ETH=y
  439. # CONFIG_ESP32S3_UNIVERSAL_MAC_ADDRESSES_TWO is not set
  440. CONFIG_ESP32S3_UNIVERSAL_MAC_ADDRESSES_FOUR=y
  441. CONFIG_ESP32S3_UNIVERSAL_MAC_ADDRESSES=4
  442. # end of MAC Config
  443.  
  444. #
  445. # Sleep Config
  446. #
  447. CONFIG_ESP_SLEEP_RTC_BUS_ISO_WORKAROUND=y
  448. CONFIG_ESP_SLEEP_GPIO_RESET_WORKAROUND=y
  449. # CONFIG_ESP_SLEEP_PSRAM_LEAKAGE_WORKAROUND is not set
  450. # CONFIG_ESP_SLEEP_FLASH_LEAKAGE_WORKAROUND is not set
  451. # end of Sleep Config
  452.  
  453. #
  454. # RTC Clock Config
  455. #
  456. CONFIG_RTC_CLOCK_BBPLL_POWER_ON_WITH_USB=y
  457. # end of RTC Clock Config
  458. # end of Hardware Settings
  459.  
  460. #
  461. # IPC (Inter-Processor Call)
  462. #
  463. CONFIG_ESP_IPC_TASK_STACK_SIZE=1536
  464. CONFIG_ESP_IPC_USES_CALLERS_PRIORITY=y
  465. CONFIG_ESP_IPC_ISR_ENABLE=y
  466. # end of IPC (Inter-Processor Call)
  467.  
  468. #
  469. # LCD and Touch Panel
  470. #
  471.  
  472. #
  473. # LCD Peripheral Configuration
  474. #
  475. CONFIG_LCD_PANEL_IO_FORMAT_BUF_SIZE=32
  476. # CONFIG_LCD_RGB_ISR_IRAM_SAFE is not set
  477. # end of LCD Peripheral Configuration
  478. # end of LCD and Touch Panel
  479.  
  480. #
  481. # ESP NETIF Adapter
  482. #
  483. CONFIG_ESP_NETIF_IP_LOST_TIMER_INTERVAL=120
  484. CONFIG_ESP_NETIF_TCPIP_LWIP=y
  485. # CONFIG_ESP_NETIF_LOOPBACK is not set
  486. CONFIG_ESP_NETIF_TCPIP_ADAPTER_COMPATIBLE_LAYER=y
  487. # end of ESP NETIF Adapter
  488.  
  489. #
  490. # PHY
  491. #
  492. CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE=y
  493. # CONFIG_ESP_PHY_INIT_DATA_IN_PARTITION is not set
  494. CONFIG_ESP_PHY_MAX_WIFI_TX_POWER=20
  495. CONFIG_ESP_PHY_MAX_TX_POWER=20
  496. CONFIG_ESP_PHY_ENABLE_USB=y
  497. # end of PHY
  498.  
  499. #
  500. # Power Management
  501. #
  502. # CONFIG_PM_ENABLE is not set
  503. CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP=y
  504. CONFIG_PM_POWER_DOWN_TAGMEM_IN_LIGHT_SLEEP=y
  505. # end of Power Management
  506.  
  507. #
  508. # ESP System Settings
  509. #
  510. # CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT is not set
  511. CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT=y
  512. # CONFIG_ESP_SYSTEM_PANIC_SILENT_REBOOT is not set
  513. # CONFIG_ESP_SYSTEM_PANIC_GDBSTUB is not set
  514. # CONFIG_ESP_SYSTEM_GDBSTUB_RUNTIME is not set
  515. CONFIG_ESP_SYSTEM_RTC_FAST_MEM_AS_HEAP_DEPCHECK=y
  516. CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP=y
  517.  
  518. #
  519. # Memory protection
  520. #
  521. # end of Memory protection
  522.  
  523. CONFIG_ESP_SYSTEM_EVENT_QUEUE_SIZE=32
  524. CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=2304
  525. CONFIG_ESP_MAIN_TASK_STACK_SIZE=3584
  526. CONFIG_ESP_MAIN_TASK_AFFINITY_CPU0=y
  527. # CONFIG_ESP_MAIN_TASK_AFFINITY_CPU1 is not set
  528. # CONFIG_ESP_MAIN_TASK_AFFINITY_NO_AFFINITY is not set
  529. CONFIG_ESP_MAIN_TASK_AFFINITY=0x0
  530. CONFIG_ESP_MINIMAL_SHARED_STACK_SIZE=2048
  531. CONFIG_ESP_CONSOLE_UART_DEFAULT=y
  532. # CONFIG_ESP_CONSOLE_USB_CDC is not set
  533. # CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG is not set
  534. # CONFIG_ESP_CONSOLE_UART_CUSTOM is not set
  535. # CONFIG_ESP_CONSOLE_NONE is not set
  536. # CONFIG_ESP_CONSOLE_SECONDARY_NONE is not set
  537. CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG=y
  538. CONFIG_ESP_CONSOLE_UART=y
  539. CONFIG_ESP_CONSOLE_MULTIPLE_UART=y
  540. CONFIG_ESP_CONSOLE_UART_NUM=0
  541. CONFIG_ESP_CONSOLE_UART_BAUDRATE=115200
  542. # CONFIG_ESP_INT_WDT is not set
  543. # CONFIG_ESP_TASK_WDT is not set
  544. # CONFIG_ESP_PANIC_HANDLER_IRAM is not set
  545. # CONFIG_ESP_DEBUG_STUBS_ENABLE is not set
  546. CONFIG_ESP_SYSTEM_CHECK_INT_LEVEL_4=y
  547. # end of ESP System Settings
  548.  
  549. #
  550. # High resolution timer (esp_timer)
  551. #
  552. # CONFIG_ESP_TIMER_PROFILING is not set
  553. CONFIG_ESP_TIME_FUNCS_USE_RTC_TIMER=y
  554. CONFIG_ESP_TIME_FUNCS_USE_ESP_TIMER=y
  555. CONFIG_ESP_TIMER_TASK_STACK_SIZE=3584
  556. CONFIG_ESP_TIMER_INTERRUPT_LEVEL=1
  557. # CONFIG_ESP_TIMER_SUPPORTS_ISR_DISPATCH_METHOD is not set
  558. CONFIG_ESP_TIMER_IMPL_SYSTIMER=y
  559. # end of High resolution timer (esp_timer)
  560.  
  561. #
  562. # Wi-Fi
  563. #
  564. CONFIG_ESP32_WIFI_ENABLED=y
  565. CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=10
  566. CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=32
  567. CONFIG_ESP32_WIFI_STATIC_TX_BUFFER=y
  568. CONFIG_ESP32_WIFI_TX_BUFFER_TYPE=0
  569. CONFIG_ESP32_WIFI_STATIC_TX_BUFFER_NUM=16
  570. CONFIG_ESP32_WIFI_CACHE_TX_BUFFER_NUM=32
  571. # CONFIG_ESP32_WIFI_CSI_ENABLED is not set
  572. CONFIG_ESP32_WIFI_AMPDU_TX_ENABLED=y
  573. CONFIG_ESP32_WIFI_TX_BA_WIN=6
  574. CONFIG_ESP32_WIFI_AMPDU_RX_ENABLED=y
  575. CONFIG_ESP32_WIFI_RX_BA_WIN=6
  576. # CONFIG_ESP32_WIFI_AMSDU_TX_ENABLED is not set
  577. # CONFIG_ESP32_WIFI_NVS_ENABLED is not set
  578. CONFIG_ESP32_WIFI_TASK_PINNED_TO_CORE_0=y
  579. # CONFIG_ESP32_WIFI_TASK_PINNED_TO_CORE_1 is not set
  580. CONFIG_ESP32_WIFI_SOFTAP_BEACON_MAX_LEN=752
  581. CONFIG_ESP32_WIFI_MGMT_SBUF_NUM=32
  582. CONFIG_ESP32_WIFI_IRAM_OPT=y
  583. CONFIG_ESP32_WIFI_RX_IRAM_OPT=y
  584. # CONFIG_ESP32_WIFI_ENABLE_WPA3_SAE is not set
  585. # CONFIG_ESP_WIFI_SLP_IRAM_OPT is not set
  586. # CONFIG_ESP_WIFI_FTM_ENABLE is not set
  587. # CONFIG_ESP_WIFI_STA_DISCONNECTED_PM_ENABLE is not set
  588. # CONFIG_ESP_WIFI_GCMP_SUPPORT is not set
  589. # CONFIG_ESP_WIFI_GMAC_SUPPORT is not set
  590. # CONFIG_ESP_WIFI_SOFTAP_SUPPORT is not set
  591. # end of Wi-Fi
  592.  
  593. #
  594. # Core dump
  595. #
  596. # CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH is not set
  597. # CONFIG_ESP_COREDUMP_ENABLE_TO_UART is not set
  598. CONFIG_ESP_COREDUMP_ENABLE_TO_NONE=y
  599. # end of Core dump
  600.  
  601. #
  602. # FAT Filesystem support
  603. #
  604. # CONFIG_FATFS_CODEPAGE_DYNAMIC is not set
  605. CONFIG_FATFS_CODEPAGE_437=y
  606. # CONFIG_FATFS_CODEPAGE_720 is not set
  607. # CONFIG_FATFS_CODEPAGE_737 is not set
  608. # CONFIG_FATFS_CODEPAGE_771 is not set
  609. # CONFIG_FATFS_CODEPAGE_775 is not set
  610. # CONFIG_FATFS_CODEPAGE_850 is not set
  611. # CONFIG_FATFS_CODEPAGE_852 is not set
  612. # CONFIG_FATFS_CODEPAGE_855 is not set
  613. # CONFIG_FATFS_CODEPAGE_857 is not set
  614. # CONFIG_FATFS_CODEPAGE_860 is not set
  615. # CONFIG_FATFS_CODEPAGE_861 is not set
  616. # CONFIG_FATFS_CODEPAGE_862 is not set
  617. # CONFIG_FATFS_CODEPAGE_863 is not set
  618. # CONFIG_FATFS_CODEPAGE_864 is not set
  619. # CONFIG_FATFS_CODEPAGE_865 is not set
  620. # CONFIG_FATFS_CODEPAGE_866 is not set
  621. # CONFIG_FATFS_CODEPAGE_869 is not set
  622. # CONFIG_FATFS_CODEPAGE_932 is not set
  623. # CONFIG_FATFS_CODEPAGE_936 is not set
  624. # CONFIG_FATFS_CODEPAGE_949 is not set
  625. # CONFIG_FATFS_CODEPAGE_950 is not set
  626. CONFIG_FATFS_CODEPAGE=437
  627. CONFIG_FATFS_LFN_NONE=y
  628. # CONFIG_FATFS_LFN_HEAP is not set
  629. # CONFIG_FATFS_LFN_STACK is not set
  630. CONFIG_FATFS_FS_LOCK=0
  631. CONFIG_FATFS_TIMEOUT_MS=10000
  632. CONFIG_FATFS_PER_FILE_CACHE=y
  633. CONFIG_FATFS_ALLOC_PREFER_EXTRAM=y
  634. # CONFIG_FATFS_USE_FASTSEEK is not set
  635. # end of FAT Filesystem support
  636.  
  637. #
  638. # Modbus configuration
  639. #
  640. # CONFIG_FMB_COMM_MODE_TCP_EN is not set
  641. CONFIG_FMB_COMM_MODE_RTU_EN=y
  642. # CONFIG_FMB_COMM_MODE_ASCII_EN is not set
  643. CONFIG_FMB_MASTER_TIMEOUT_MS_RESPOND=150
  644. CONFIG_FMB_MASTER_DELAY_MS_CONVERT=200
  645. CONFIG_FMB_QUEUE_LENGTH=20
  646. CONFIG_FMB_PORT_TASK_STACK_SIZE=4096
  647. CONFIG_FMB_SERIAL_BUF_SIZE=256
  648. CONFIG_FMB_PORT_TASK_PRIO=10
  649. # CONFIG_FMB_PORT_TASK_AFFINITY_NO_AFFINITY is not set
  650. CONFIG_FMB_PORT_TASK_AFFINITY_CPU0=y
  651. # CONFIG_FMB_PORT_TASK_AFFINITY_CPU1 is not set
  652. CONFIG_FMB_PORT_TASK_AFFINITY=0x0
  653. CONFIG_FMB_CONTROLLER_SLAVE_ID_SUPPORT=y
  654. CONFIG_FMB_CONTROLLER_SLAVE_ID=0x00112233
  655. CONFIG_FMB_CONTROLLER_NOTIFY_TIMEOUT=20
  656. CONFIG_FMB_CONTROLLER_NOTIFY_QUEUE_SIZE=20
  657. CONFIG_FMB_CONTROLLER_STACK_SIZE=4096
  658. CONFIG_FMB_EVENT_QUEUE_TIMEOUT=20
  659. # CONFIG_FMB_TIMER_PORT_ENABLED is not set
  660. CONFIG_FMB_TIMER_GROUP=0
  661. CONFIG_FMB_TIMER_INDEX=0
  662. CONFIG_FMB_MASTER_TIMER_GROUP=0
  663. CONFIG_FMB_MASTER_TIMER_INDEX=0
  664. # CONFIG_FMB_TIMER_ISR_IN_IRAM is not set
  665. # end of Modbus configuration
  666.  
  667. #
  668. # FreeRTOS
  669. #
  670. # CONFIG_FREERTOS_UNICORE is not set
  671. CONFIG_FREERTOS_NO_AFFINITY=0x7FFFFFFF
  672. CONFIG_FREERTOS_TICK_SUPPORT_SYSTIMER=y
  673. CONFIG_FREERTOS_CORETIMER_SYSTIMER_LVL1=y
  674. # CONFIG_FREERTOS_CORETIMER_SYSTIMER_LVL3 is not set
  675. CONFIG_FREERTOS_SYSTICK_USES_SYSTIMER=y
  676. CONFIG_FREERTOS_HZ=100
  677. CONFIG_FREERTOS_ASSERT_ON_UNTESTED_FUNCTION=y
  678. # CONFIG_FREERTOS_CHECK_STACKOVERFLOW_NONE is not set
  679. # CONFIG_FREERTOS_CHECK_STACKOVERFLOW_PTRVAL is not set
  680. CONFIG_FREERTOS_CHECK_STACKOVERFLOW_CANARY=y
  681. # CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK is not set
  682. CONFIG_FREERTOS_INTERRUPT_BACKTRACE=y
  683. CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=1
  684. CONFIG_FREERTOS_ASSERT_FAIL_ABORT=y
  685. # CONFIG_FREERTOS_ASSERT_FAIL_PRINT_CONTINUE is not set
  686. # CONFIG_FREERTOS_ASSERT_DISABLE is not set
  687. CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=1536
  688. CONFIG_FREERTOS_ISR_STACKSIZE=1536
  689. # CONFIG_FREERTOS_LEGACY_HOOKS is not set
  690. CONFIG_FREERTOS_MAX_TASK_NAME_LEN=16
  691. CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION=y
  692. # CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP is not set
  693. CONFIG_FREERTOS_TIMER_TASK_PRIORITY=1
  694. CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=2048
  695. CONFIG_FREERTOS_TIMER_QUEUE_LENGTH=10
  696. CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=0
  697. # CONFIG_FREERTOS_USE_TRACE_FACILITY is not set
  698. # CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS is not set
  699. CONFIG_FREERTOS_TASK_FUNCTION_WRAPPER=y
  700. CONFIG_FREERTOS_CHECK_MUTEX_GIVEN_BY_OWNER=y
  701. # CONFIG_FREERTOS_CHECK_PORT_CRITICAL_COMPLIANCE is not set
  702. # CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH is not set
  703. CONFIG_FREERTOS_DEBUG_OCDAWARE=y
  704. CONFIG_FREERTOS_ENABLE_TASK_SNAPSHOT=y
  705. # CONFIG_FREERTOS_PLACE_SNAPSHOT_FUNS_INTO_FLASH is not set
  706. # end of FreeRTOS
  707.  
  708. #
  709. # Hardware Abstraction Layer (HAL) and Low Level (LL)
  710. #
  711. CONFIG_HAL_ASSERTION_EQUALS_SYSTEM=y
  712. # CONFIG_HAL_ASSERTION_DISABLE is not set
  713. # CONFIG_HAL_ASSERTION_SILIENT is not set
  714. # CONFIG_HAL_ASSERTION_ENABLE is not set
  715. CONFIG_HAL_DEFAULT_ASSERTION_LEVEL=2
  716. # end of Hardware Abstraction Layer (HAL) and Low Level (LL)
  717.  
  718. #
  719. # Heap memory debugging
  720. #
  721. CONFIG_HEAP_POISONING_DISABLED=y
  722. # CONFIG_HEAP_POISONING_LIGHT is not set
  723. # CONFIG_HEAP_POISONING_COMPREHENSIVE is not set
  724. CONFIG_HEAP_TRACING_OFF=y
  725. # CONFIG_HEAP_TRACING_STANDALONE is not set
  726. # CONFIG_HEAP_TRACING_TOHOST is not set
  727. # CONFIG_HEAP_ABORT_WHEN_ALLOCATION_FAILS is not set
  728. # end of Heap memory debugging
  729.  
  730. #
  731. # jsmn
  732. #
  733. # CONFIG_JSMN_PARENT_LINKS is not set
  734. # CONFIG_JSMN_STRICT is not set
  735. # end of jsmn
  736.  
  737. #
  738. # libsodium
  739. #
  740. # end of libsodium
  741.  
  742. #
  743. # Log output
  744. #
  745. # CONFIG_LOG_DEFAULT_LEVEL_NONE is not set
  746. # CONFIG_LOG_DEFAULT_LEVEL_ERROR is not set
  747. # CONFIG_LOG_DEFAULT_LEVEL_WARN is not set
  748. CONFIG_LOG_DEFAULT_LEVEL_INFO=y
  749. # CONFIG_LOG_DEFAULT_LEVEL_DEBUG is not set
  750. # CONFIG_LOG_DEFAULT_LEVEL_VERBOSE is not set
  751. CONFIG_LOG_DEFAULT_LEVEL=3
  752. CONFIG_LOG_MAXIMUM_EQUALS_DEFAULT=y
  753. # CONFIG_LOG_MAXIMUM_LEVEL_DEBUG is not set
  754. # CONFIG_LOG_MAXIMUM_LEVEL_VERBOSE is not set
  755. CONFIG_LOG_MAXIMUM_LEVEL=3
  756. CONFIG_LOG_COLORS=y
  757. CONFIG_LOG_TIMESTAMP_SOURCE_RTOS=y
  758. # CONFIG_LOG_TIMESTAMP_SOURCE_SYSTEM is not set
  759. # end of Log output
  760.  
  761. #
  762. # LWIP
  763. #
  764. CONFIG_LWIP_LOCAL_HOSTNAME="espressif"
  765. # CONFIG_LWIP_NETIF_API is not set
  766. # CONFIG_LWIP_TCPIP_CORE_LOCKING is not set
  767. CONFIG_LWIP_DNS_SUPPORT_MDNS_QUERIES=y
  768. # CONFIG_LWIP_L2_TO_L3_COPY is not set
  769. # CONFIG_LWIP_IRAM_OPTIMIZATION is not set
  770. CONFIG_LWIP_TIMERS_ONDEMAND=y
  771. CONFIG_LWIP_MAX_SOCKETS=10
  772. # CONFIG_LWIP_USE_ONLY_LWIP_SELECT is not set
  773. # CONFIG_LWIP_SO_LINGER is not set
  774. CONFIG_LWIP_SO_REUSE=y
  775. CONFIG_LWIP_SO_REUSE_RXTOALL=y
  776. # CONFIG_LWIP_SO_RCVBUF is not set
  777. # CONFIG_LWIP_NETBUF_RECVINFO is not set
  778. CONFIG_LWIP_IP4_FRAG=y
  779. CONFIG_LWIP_IP6_FRAG=y
  780. # CONFIG_LWIP_IP4_REASSEMBLY is not set
  781. # CONFIG_LWIP_IP6_REASSEMBLY is not set
  782. # CONFIG_LWIP_IP_FORWARD is not set
  783. # CONFIG_LWIP_STATS is not set
  784. # CONFIG_LWIP_ETHARP_TRUST_IP_MAC is not set
  785. CONFIG_LWIP_ESP_GRATUITOUS_ARP=y
  786. CONFIG_LWIP_GARP_TMR_INTERVAL=60
  787. CONFIG_LWIP_TCPIP_RECVMBOX_SIZE=32
  788. CONFIG_LWIP_DHCP_DOES_ARP_CHECK=y
  789. # CONFIG_LWIP_DHCP_DISABLE_CLIENT_ID is not set
  790. CONFIG_LWIP_DHCP_DISABLE_VENDOR_CLASS_ID=y
  791. # CONFIG_LWIP_DHCP_RESTORE_LAST_IP is not set
  792. CONFIG_LWIP_DHCP_OPTIONS_LEN=68
  793.  
  794. #
  795. # DHCP server
  796. #
  797. CONFIG_LWIP_DHCPS=y
  798. CONFIG_LWIP_DHCPS_LEASE_UNIT=60
  799. CONFIG_LWIP_DHCPS_MAX_STATION_NUM=8
  800. # end of DHCP server
  801.  
  802. # CONFIG_LWIP_AUTOIP is not set
  803. CONFIG_LWIP_IPV6=y
  804. # CONFIG_LWIP_IPV6_AUTOCONFIG is not set
  805. CONFIG_LWIP_IPV6_NUM_ADDRESSES=3
  806. # CONFIG_LWIP_IPV6_FORWARD is not set
  807. # CONFIG_LWIP_NETIF_STATUS_CALLBACK is not set
  808. CONFIG_LWIP_NETIF_LOOPBACK=y
  809. CONFIG_LWIP_LOOPBACK_MAX_PBUFS=8
  810.  
  811. #
  812. # TCP
  813. #
  814. CONFIG_LWIP_MAX_ACTIVE_TCP=16
  815. CONFIG_LWIP_MAX_LISTENING_TCP=16
  816. CONFIG_LWIP_TCP_HIGH_SPEED_RETRANSMISSION=y
  817. CONFIG_LWIP_TCP_MAXRTX=12
  818. CONFIG_LWIP_TCP_SYNMAXRTX=12
  819. CONFIG_LWIP_TCP_MSS=1440
  820. CONFIG_LWIP_TCP_TMR_INTERVAL=250
  821. CONFIG_LWIP_TCP_MSL=60000
  822. CONFIG_LWIP_TCP_SND_BUF_DEFAULT=5744
  823. CONFIG_LWIP_TCP_WND_DEFAULT=5744
  824. CONFIG_LWIP_TCP_RECVMBOX_SIZE=6
  825. CONFIG_LWIP_TCP_QUEUE_OOSEQ=y
  826. # CONFIG_LWIP_TCP_SACK_OUT is not set
  827. # CONFIG_LWIP_TCP_KEEP_CONNECTION_WHEN_IP_CHANGES is not set
  828. CONFIG_LWIP_TCP_OVERSIZE_MSS=y
  829. # CONFIG_LWIP_TCP_OVERSIZE_QUARTER_MSS is not set
  830. # CONFIG_LWIP_TCP_OVERSIZE_DISABLE is not set
  831. CONFIG_LWIP_TCP_RTO_TIME=1500
  832. # end of TCP
  833.  
  834. #
  835. # UDP
  836. #
  837. CONFIG_LWIP_MAX_UDP_PCBS=16
  838. CONFIG_LWIP_UDP_RECVMBOX_SIZE=6
  839. # end of UDP
  840.  
  841. #
  842. # Checksums
  843. #
  844. # CONFIG_LWIP_CHECKSUM_CHECK_IP is not set
  845. # CONFIG_LWIP_CHECKSUM_CHECK_UDP is not set
  846. CONFIG_LWIP_CHECKSUM_CHECK_ICMP=y
  847. # end of Checksums
  848.  
  849. CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=3072
  850. CONFIG_LWIP_TCPIP_TASK_AFFINITY_NO_AFFINITY=y
  851. # CONFIG_LWIP_TCPIP_TASK_AFFINITY_CPU0 is not set
  852. # CONFIG_LWIP_TCPIP_TASK_AFFINITY_CPU1 is not set
  853. CONFIG_LWIP_TCPIP_TASK_AFFINITY=0x7FFFFFFF
  854. # CONFIG_LWIP_PPP_SUPPORT is not set
  855. CONFIG_LWIP_IPV6_MEMP_NUM_ND6_QUEUE=3
  856. CONFIG_LWIP_IPV6_ND6_NUM_NEIGHBORS=5
  857. # CONFIG_LWIP_SLIP_SUPPORT is not set
  858.  
  859. #
  860. # ICMP
  861. #
  862. CONFIG_LWIP_ICMP=y
  863. # CONFIG_LWIP_MULTICAST_PING is not set
  864. # CONFIG_LWIP_BROADCAST_PING is not set
  865. # end of ICMP
  866.  
  867. #
  868. # LWIP RAW API
  869. #
  870. CONFIG_LWIP_MAX_RAW_PCBS=16
  871. # end of LWIP RAW API
  872.  
  873. #
  874. # SNTP
  875. #
  876. CONFIG_LWIP_SNTP_MAX_SERVERS=1
  877. # CONFIG_LWIP_DHCP_GET_NTP_SRV is not set
  878. CONFIG_LWIP_SNTP_UPDATE_DELAY=3600000
  879. # end of SNTP
  880.  
  881. CONFIG_LWIP_ESP_LWIP_ASSERT=y
  882.  
  883. #
  884. # Hooks
  885. #
  886. # CONFIG_LWIP_HOOK_TCP_ISN_NONE is not set
  887. CONFIG_LWIP_HOOK_TCP_ISN_DEFAULT=y
  888. # CONFIG_LWIP_HOOK_TCP_ISN_CUSTOM is not set
  889. CONFIG_LWIP_HOOK_IP6_ROUTE_NONE=y
  890. # CONFIG_LWIP_HOOK_IP6_ROUTE_DEFAULT is not set
  891. # CONFIG_LWIP_HOOK_IP6_ROUTE_CUSTOM is not set
  892. CONFIG_LWIP_HOOK_ND6_GET_GW_NONE=y
  893. # CONFIG_LWIP_HOOK_ND6_GET_GW_DEFAULT is not set
  894. # CONFIG_LWIP_HOOK_ND6_GET_GW_CUSTOM is not set
  895. CONFIG_LWIP_HOOK_NETCONN_EXT_RESOLVE_NONE=y
  896. # CONFIG_LWIP_HOOK_NETCONN_EXT_RESOLVE_DEFAULT is not set
  897. # CONFIG_LWIP_HOOK_NETCONN_EXT_RESOLVE_CUSTOM is not set
  898. # end of Hooks
  899.  
  900. # CONFIG_LWIP_DEBUG is not set
  901. # end of LWIP
  902.  
  903. #
  904. # mbedTLS
  905. #
  906. CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC=y
  907. # CONFIG_MBEDTLS_EXTERNAL_MEM_ALLOC is not set
  908. # CONFIG_MBEDTLS_DEFAULT_MEM_ALLOC is not set
  909. # CONFIG_MBEDTLS_CUSTOM_MEM_ALLOC is not set
  910. CONFIG_MBEDTLS_ASYMMETRIC_CONTENT_LEN=y
  911. CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN=16384
  912. CONFIG_MBEDTLS_SSL_OUT_CONTENT_LEN=4096
  913. # CONFIG_MBEDTLS_DYNAMIC_BUFFER is not set
  914. # CONFIG_MBEDTLS_DEBUG is not set
  915.  
  916. #
  917. # mbedTLS v2.28.x related
  918. #
  919. # CONFIG_MBEDTLS_SSL_VARIABLE_BUFFER_LENGTH is not set
  920. # CONFIG_MBEDTLS_X509_TRUSTED_CERT_CALLBACK is not set
  921. # CONFIG_MBEDTLS_SSL_CONTEXT_SERIALIZATION is not set
  922. CONFIG_MBEDTLS_SSL_KEEP_PEER_CERTIFICATE=y
  923. # end of mbedTLS v2.28.x related
  924.  
  925. #
  926. # Certificate Bundle
  927. #
  928. CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=y
  929. CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL=y
  930. # CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN is not set
  931. # CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_NONE is not set
  932. # CONFIG_MBEDTLS_CUSTOM_CERTIFICATE_BUNDLE is not set
  933. CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_MAX_CERTS=200
  934. # end of Certificate Bundle
  935.  
  936. # CONFIG_MBEDTLS_ECP_RESTARTABLE is not set
  937. # CONFIG_MBEDTLS_CMAC_C is not set
  938. CONFIG_MBEDTLS_HARDWARE_AES=y
  939. CONFIG_MBEDTLS_AES_USE_INTERRUPT=y
  940. CONFIG_MBEDTLS_HARDWARE_MPI=y
  941. CONFIG_MBEDTLS_HARDWARE_SHA=y
  942. CONFIG_MBEDTLS_ROM_MD5=y
  943. # CONFIG_MBEDTLS_ATCA_HW_ECDSA_SIGN is not set
  944. # CONFIG_MBEDTLS_ATCA_HW_ECDSA_VERIFY is not set
  945. CONFIG_MBEDTLS_HAVE_TIME=y
  946. # CONFIG_MBEDTLS_HAVE_TIME_DATE is not set
  947. CONFIG_MBEDTLS_ECDSA_DETERMINISTIC=y
  948. CONFIG_MBEDTLS_SHA512_C=y
  949. CONFIG_MBEDTLS_TLS_SERVER_AND_CLIENT=y
  950. # CONFIG_MBEDTLS_TLS_SERVER_ONLY is not set
  951. # CONFIG_MBEDTLS_TLS_CLIENT_ONLY is not set
  952. # CONFIG_MBEDTLS_TLS_DISABLED is not set
  953. CONFIG_MBEDTLS_TLS_SERVER=y
  954. CONFIG_MBEDTLS_TLS_CLIENT=y
  955. CONFIG_MBEDTLS_TLS_ENABLED=y
  956.  
  957. #
  958. # TLS Key Exchange Methods
  959. #
  960. # CONFIG_MBEDTLS_PSK_MODES is not set
  961. CONFIG_MBEDTLS_KEY_EXCHANGE_RSA=y
  962. CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_RSA=y
  963. CONFIG_MBEDTLS_KEY_EXCHANGE_ELLIPTIC_CURVE=y
  964. CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_RSA=y
  965. CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA=y
  966. CONFIG_MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA=y
  967. CONFIG_MBEDTLS_KEY_EXCHANGE_ECDH_RSA=y
  968. # end of TLS Key Exchange Methods
  969.  
  970. CONFIG_MBEDTLS_SSL_RENEGOTIATION=y
  971. # CONFIG_MBEDTLS_SSL_PROTO_SSL3 is not set
  972. CONFIG_MBEDTLS_SSL_PROTO_TLS1=y
  973. CONFIG_MBEDTLS_SSL_PROTO_TLS1_1=y
  974. CONFIG_MBEDTLS_SSL_PROTO_TLS1_2=y
  975. # CONFIG_MBEDTLS_SSL_PROTO_GMTSSL1_1 is not set
  976. # CONFIG_MBEDTLS_SSL_PROTO_DTLS is not set
  977. CONFIG_MBEDTLS_SSL_ALPN=y
  978. CONFIG_MBEDTLS_CLIENT_SSL_SESSION_TICKETS=y
  979. CONFIG_MBEDTLS_X509_CHECK_KEY_USAGE=y
  980. CONFIG_MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE=y
  981. CONFIG_MBEDTLS_SERVER_SSL_SESSION_TICKETS=y
  982.  
  983. #
  984. # Symmetric Ciphers
  985. #
  986. CONFIG_MBEDTLS_AES_C=y
  987. # CONFIG_MBEDTLS_CAMELLIA_C is not set
  988. # CONFIG_MBEDTLS_DES_C is not set
  989. CONFIG_MBEDTLS_RC4_DISABLED=y
  990. # CONFIG_MBEDTLS_RC4_ENABLED_NO_DEFAULT is not set
  991. # CONFIG_MBEDTLS_RC4_ENABLED is not set
  992. # CONFIG_MBEDTLS_BLOWFISH_C is not set
  993. # CONFIG_MBEDTLS_XTEA_C is not set
  994. CONFIG_MBEDTLS_CCM_C=y
  995. CONFIG_MBEDTLS_GCM_C=y
  996. # CONFIG_MBEDTLS_NIST_KW_C is not set
  997. # end of Symmetric Ciphers
  998.  
  999. # CONFIG_MBEDTLS_RIPEMD160_C is not set
  1000.  
  1001. #
  1002. # Certificates
  1003. #
  1004. CONFIG_MBEDTLS_PEM_PARSE_C=y
  1005. CONFIG_MBEDTLS_PEM_WRITE_C=y
  1006. CONFIG_MBEDTLS_X509_CRL_PARSE_C=y
  1007. CONFIG_MBEDTLS_X509_CSR_PARSE_C=y
  1008. # end of Certificates
  1009.  
  1010. CONFIG_MBEDTLS_ECP_C=y
  1011. CONFIG_MBEDTLS_ECDH_C=y
  1012. CONFIG_MBEDTLS_ECDSA_C=y
  1013. # CONFIG_MBEDTLS_ECJPAKE_C is not set
  1014. CONFIG_MBEDTLS_ECP_DP_SECP192R1_ENABLED=y
  1015. CONFIG_MBEDTLS_ECP_DP_SECP224R1_ENABLED=y
  1016. CONFIG_MBEDTLS_ECP_DP_SECP256R1_ENABLED=y
  1017. CONFIG_MBEDTLS_ECP_DP_SECP384R1_ENABLED=y
  1018. CONFIG_MBEDTLS_ECP_DP_SECP521R1_ENABLED=y
  1019. CONFIG_MBEDTLS_ECP_DP_SECP192K1_ENABLED=y
  1020. CONFIG_MBEDTLS_ECP_DP_SECP224K1_ENABLED=y
  1021. CONFIG_MBEDTLS_ECP_DP_SECP256K1_ENABLED=y
  1022. CONFIG_MBEDTLS_ECP_DP_BP256R1_ENABLED=y
  1023. CONFIG_MBEDTLS_ECP_DP_BP384R1_ENABLED=y
  1024. CONFIG_MBEDTLS_ECP_DP_BP512R1_ENABLED=y
  1025. CONFIG_MBEDTLS_ECP_DP_CURVE25519_ENABLED=y
  1026. CONFIG_MBEDTLS_ECP_NIST_OPTIM=y
  1027. # CONFIG_MBEDTLS_POLY1305_C is not set
  1028. # CONFIG_MBEDTLS_CHACHA20_C is not set
  1029. # CONFIG_MBEDTLS_HKDF_C is not set
  1030. # CONFIG_MBEDTLS_THREADING_C is not set
  1031. # CONFIG_MBEDTLS_LARGE_KEY_SOFTWARE_MPI is not set
  1032. # CONFIG_MBEDTLS_SECURITY_RISKS is not set
  1033. # end of mbedTLS
  1034.  
  1035. #
  1036. # mDNS
  1037. #
  1038. CONFIG_MDNS_MAX_SERVICES=10
  1039. CONFIG_MDNS_TASK_PRIORITY=1
  1040. CONFIG_MDNS_TASK_STACK_SIZE=4096
  1041. # CONFIG_MDNS_TASK_AFFINITY_NO_AFFINITY is not set
  1042. CONFIG_MDNS_TASK_AFFINITY_CPU0=y
  1043. # CONFIG_MDNS_TASK_AFFINITY_CPU1 is not set
  1044. CONFIG_MDNS_TASK_AFFINITY=0x0
  1045. CONFIG_MDNS_SERVICE_ADD_TIMEOUT_MS=2000
  1046. # CONFIG_MDNS_STRICT_MODE is not set
  1047. CONFIG_MDNS_TIMER_PERIOD_MS=100
  1048. # CONFIG_MDNS_NETWORKING_SOCKET is not set
  1049. CONFIG_MDNS_MULTIPLE_INSTANCE=y
  1050. # end of mDNS
  1051.  
  1052. #
  1053. # ESP-MQTT Configurations
  1054. #
  1055. CONFIG_MQTT_PROTOCOL_311=y
  1056. CONFIG_MQTT_TRANSPORT_SSL=y
  1057. CONFIG_MQTT_TRANSPORT_WEBSOCKET=y
  1058. CONFIG_MQTT_TRANSPORT_WEBSOCKET_SECURE=y
  1059. # CONFIG_MQTT_MSG_ID_INCREMENTAL is not set
  1060. # CONFIG_MQTT_SKIP_PUBLISH_IF_DISCONNECTED is not set
  1061. # CONFIG_MQTT_REPORT_DELETED_MESSAGES is not set
  1062. # CONFIG_MQTT_USE_CUSTOM_CONFIG is not set
  1063. # CONFIG_MQTT_TASK_CORE_SELECTION_ENABLED is not set
  1064. # CONFIG_MQTT_CUSTOM_OUTBOX is not set
  1065. # end of ESP-MQTT Configurations
  1066.  
  1067. #
  1068. # Newlib
  1069. #
  1070. CONFIG_NEWLIB_STDOUT_LINE_ENDING_CRLF=y
  1071. # CONFIG_NEWLIB_STDOUT_LINE_ENDING_LF is not set
  1072. # CONFIG_NEWLIB_STDOUT_LINE_ENDING_CR is not set
  1073. # CONFIG_NEWLIB_STDIN_LINE_ENDING_CRLF is not set
  1074. # CONFIG_NEWLIB_STDIN_LINE_ENDING_LF is not set
  1075. CONFIG_NEWLIB_STDIN_LINE_ENDING_CR=y
  1076. # CONFIG_NEWLIB_NANO_FORMAT is not set
  1077. # end of Newlib
  1078.  
  1079. #
  1080. # NVS
  1081. #
  1082. # CONFIG_NVS_ASSERT_ERROR_CHECK is not set
  1083. # end of NVS
  1084.  
  1085. #
  1086. # OpenSSL
  1087. #
  1088. # CONFIG_OPENSSL_DEBUG is not set
  1089. CONFIG_OPENSSL_ERROR_STACK=y
  1090. # CONFIG_OPENSSL_ASSERT_DO_NOTHING is not set
  1091. CONFIG_OPENSSL_ASSERT_EXIT=y
  1092. # end of OpenSSL
  1093.  
  1094. #
  1095. # OpenThread
  1096. #
  1097. # CONFIG_OPENTHREAD_ENABLED is not set
  1098. # end of OpenThread
  1099.  
  1100. #
  1101. # PThreads
  1102. #
  1103. CONFIG_PTHREAD_TASK_PRIO_DEFAULT=5
  1104. CONFIG_PTHREAD_TASK_STACK_SIZE_DEFAULT=3072
  1105. CONFIG_PTHREAD_STACK_MIN=768
  1106. CONFIG_PTHREAD_DEFAULT_CORE_NO_AFFINITY=y
  1107. # CONFIG_PTHREAD_DEFAULT_CORE_0 is not set
  1108. # CONFIG_PTHREAD_DEFAULT_CORE_1 is not set
  1109. CONFIG_PTHREAD_TASK_CORE_DEFAULT=-1
  1110. CONFIG_PTHREAD_TASK_NAME_DEFAULT="pthread"
  1111. # end of PThreads
  1112.  
  1113. #
  1114. # SPI Flash driver
  1115. #
  1116. # CONFIG_SPI_FLASH_VERIFY_WRITE is not set
  1117. # CONFIG_SPI_FLASH_ENABLE_COUNTERS is not set
  1118. CONFIG_SPI_FLASH_ROM_DRIVER_PATCH=y
  1119. # CONFIG_SPI_FLASH_ROM_IMPL is not set
  1120. CONFIG_SPI_FLASH_DANGEROUS_WRITE_ABORTS=y
  1121. # CONFIG_SPI_FLASH_DANGEROUS_WRITE_FAILS is not set
  1122. # CONFIG_SPI_FLASH_DANGEROUS_WRITE_ALLOWED is not set
  1123. # CONFIG_SPI_FLASH_USE_LEGACY_IMPL is not set
  1124. # CONFIG_SPI_FLASH_SHARE_SPI1_BUS is not set
  1125. # CONFIG_SPI_FLASH_BYPASS_BLOCK_ERASE is not set
  1126. CONFIG_SPI_FLASH_YIELD_DURING_ERASE=y
  1127. CONFIG_SPI_FLASH_ERASE_YIELD_DURATION_MS=20
  1128. CONFIG_SPI_FLASH_ERASE_YIELD_TICKS=1
  1129. CONFIG_SPI_FLASH_WRITE_CHUNK_SIZE=8192
  1130. # CONFIG_SPI_FLASH_SIZE_OVERRIDE is not set
  1131. # CONFIG_SPI_FLASH_CHECK_ERASE_TIMEOUT_DISABLED is not set
  1132. # CONFIG_SPI_FLASH_OVERRIDE_CHIP_DRIVER_LIST is not set
  1133.  
  1134. #
  1135. # Auto-detect flash chips
  1136. #
  1137. CONFIG_SPI_FLASH_SUPPORT_ISSI_CHIP=y
  1138. CONFIG_SPI_FLASH_SUPPORT_MXIC_CHIP=y
  1139. CONFIG_SPI_FLASH_SUPPORT_GD_CHIP=y
  1140. CONFIG_SPI_FLASH_SUPPORT_WINBOND_CHIP=y
  1141. CONFIG_SPI_FLASH_SUPPORT_BOYA_CHIP=y
  1142. CONFIG_SPI_FLASH_SUPPORT_TH_CHIP=y
  1143. CONFIG_SPI_FLASH_SUPPORT_MXIC_OPI_CHIP=y
  1144. # end of Auto-detect flash chips
  1145.  
  1146. CONFIG_SPI_FLASH_ENABLE_ENCRYPTED_READ_WRITE=y
  1147. # end of SPI Flash driver
  1148.  
  1149. #
  1150. # SPIFFS Configuration
  1151. #
  1152. CONFIG_SPIFFS_MAX_PARTITIONS=3
  1153.  
  1154. #
  1155. # SPIFFS Cache Configuration
  1156. #
  1157. CONFIG_SPIFFS_CACHE=y
  1158. CONFIG_SPIFFS_CACHE_WR=y
  1159. # CONFIG_SPIFFS_CACHE_STATS is not set
  1160. # end of SPIFFS Cache Configuration
  1161.  
  1162. CONFIG_SPIFFS_PAGE_CHECK=y
  1163. CONFIG_SPIFFS_GC_MAX_RUNS=10
  1164. # CONFIG_SPIFFS_GC_STATS is not set
  1165. CONFIG_SPIFFS_PAGE_SIZE=256
  1166. CONFIG_SPIFFS_OBJ_NAME_LEN=32
  1167. # CONFIG_SPIFFS_FOLLOW_SYMLINKS is not set
  1168. CONFIG_SPIFFS_USE_MAGIC=y
  1169. CONFIG_SPIFFS_USE_MAGIC_LENGTH=y
  1170. CONFIG_SPIFFS_META_LENGTH=4
  1171. CONFIG_SPIFFS_USE_MTIME=y
  1172.  
  1173. #
  1174. # Debug Configuration
  1175. #
  1176. # CONFIG_SPIFFS_DBG is not set
  1177. # CONFIG_SPIFFS_API_DBG is not set
  1178. # CONFIG_SPIFFS_GC_DBG is not set
  1179. # CONFIG_SPIFFS_CACHE_DBG is not set
  1180. # CONFIG_SPIFFS_CHECK_DBG is not set
  1181. # CONFIG_SPIFFS_TEST_VISUALISATION is not set
  1182. # end of Debug Configuration
  1183. # end of SPIFFS Configuration
  1184.  
  1185. #
  1186. # TCP Transport
  1187. #
  1188.  
  1189. #
  1190. # Websocket
  1191. #
  1192. CONFIG_WS_TRANSPORT=y
  1193. CONFIG_WS_BUFFER_SIZE=1024
  1194. # end of Websocket
  1195. # end of TCP Transport
  1196.  
  1197. #
  1198. # TinyUSB Stack
  1199. #
  1200. # CONFIG_TINYUSB is not set
  1201. # end of TinyUSB Stack
  1202.  
  1203. #
  1204. # Unity unit testing library
  1205. #
  1206. CONFIG_UNITY_ENABLE_FLOAT=y
  1207. CONFIG_UNITY_ENABLE_DOUBLE=y
  1208. # CONFIG_UNITY_ENABLE_64BIT is not set
  1209. # CONFIG_UNITY_ENABLE_COLOR is not set
  1210. CONFIG_UNITY_ENABLE_IDF_TEST_RUNNER=y
  1211. # CONFIG_UNITY_ENABLE_FIXTURE is not set
  1212. # CONFIG_UNITY_ENABLE_BACKTRACE_ON_FAIL is not set
  1213. # end of Unity unit testing library
  1214.  
  1215. #
  1216. # USB-OTG
  1217. #
  1218. CONFIG_USB_OTG_SUPPORTED=y
  1219. CONFIG_USB_HOST_CONTROL_TRANSFER_MAX_SIZE=256
  1220. CONFIG_USB_HOST_HW_BUFFER_BIAS_BALANCED=y
  1221. # CONFIG_USB_HOST_HW_BUFFER_BIAS_IN is not set
  1222. # CONFIG_USB_HOST_HW_BUFFER_BIAS_PERIODIC_OUT is not set
  1223. # end of USB-OTG
  1224.  
  1225. #
  1226. # Virtual file system
  1227. #
  1228. CONFIG_VFS_SUPPORT_IO=y
  1229. CONFIG_VFS_SUPPORT_DIR=y
  1230. CONFIG_VFS_SUPPORT_SELECT=y
  1231. CONFIG_VFS_SUPPRESS_SELECT_DEBUG_OUTPUT=y
  1232. CONFIG_VFS_SUPPORT_TERMIOS=y
  1233.  
  1234. #
  1235. # Host File System I/O (Semihosting)
  1236. #
  1237. CONFIG_VFS_SEMIHOSTFS_MAX_MOUNT_POINTS=1
  1238. # end of Host File System I/O (Semihosting)
  1239. # end of Virtual file system
  1240.  
  1241. #
  1242. # Wear Levelling
  1243. #
  1244. # CONFIG_WL_SECTOR_SIZE_512 is not set
  1245. CONFIG_WL_SECTOR_SIZE_4096=y
  1246. CONFIG_WL_SECTOR_SIZE=4096
  1247. # end of Wear Levelling
  1248.  
  1249. #
  1250. # Wi-Fi Provisioning Manager
  1251. #
  1252. CONFIG_WIFI_PROV_SCAN_MAX_ENTRIES=16
  1253. CONFIG_WIFI_PROV_AUTOSTOP_TIMEOUT=30
  1254. CONFIG_WIFI_PROV_BLE_FORCE_ENCRYPTION=y
  1255. # end of Wi-Fi Provisioning Manager
  1256.  
  1257. #
  1258. # Supplicant
  1259. #
  1260. CONFIG_WPA_MBEDTLS_CRYPTO=y
  1261. # CONFIG_WPA_WAPI_PSK is not set
  1262. # CONFIG_WPA_SUITE_B_192 is not set
  1263. # CONFIG_WPA_DEBUG_PRINT is not set
  1264. # CONFIG_WPA_TESTING_OPTIONS is not set
  1265. # CONFIG_WPA_WPS_STRICT is not set
  1266. # CONFIG_WPA_11KV_SUPPORT is not set
  1267. # CONFIG_WPA_MBO_SUPPORT is not set
  1268. # CONFIG_WPA_DPP_SUPPORT is not set
  1269. # end of Supplicant
  1270. # end of Component config
  1271.  
  1272. #
  1273. # Compatibility options
  1274. #
  1275. # CONFIG_LEGACY_INCLUDE_COMMON_HEADERS is not set
  1276. # end of Compatibility options
  1277.  
  1278. # Deprecated options for backward compatibility
  1279. CONFIG_TOOLPREFIX="xtensa-esp32s3-elf-"
  1280. # CONFIG_LOG_BOOTLOADER_LEVEL_NONE is not set
  1281. # CONFIG_LOG_BOOTLOADER_LEVEL_ERROR is not set
  1282. # CONFIG_LOG_BOOTLOADER_LEVEL_WARN is not set
  1283. CONFIG_LOG_BOOTLOADER_LEVEL_INFO=y
  1284. # CONFIG_LOG_BOOTLOADER_LEVEL_DEBUG is not set
  1285. # CONFIG_LOG_BOOTLOADER_LEVEL_VERBOSE is not set
  1286. CONFIG_LOG_BOOTLOADER_LEVEL=3
  1287. # CONFIG_APP_ROLLBACK_ENABLE is not set
  1288. # CONFIG_FLASH_ENCRYPTION_ENABLED is not set
  1289. # CONFIG_FLASHMODE_QIO is not set
  1290. # CONFIG_FLASHMODE_QOUT is not set
  1291. CONFIG_FLASHMODE_DIO=y
  1292. # CONFIG_FLASHMODE_DOUT is not set
  1293. # CONFIG_MONITOR_BAUD_9600B is not set
  1294. # CONFIG_MONITOR_BAUD_57600B is not set
  1295. CONFIG_MONITOR_BAUD_115200B=y
  1296. # CONFIG_MONITOR_BAUD_230400B is not set
  1297. # CONFIG_MONITOR_BAUD_921600B is not set
  1298. # CONFIG_MONITOR_BAUD_2MB is not set
  1299. # CONFIG_MONITOR_BAUD_OTHER is not set
  1300. CONFIG_MONITOR_BAUD_OTHER_VAL=115200
  1301. CONFIG_MONITOR_BAUD=115200
  1302. CONFIG_COMPILER_OPTIMIZATION_LEVEL_DEBUG=y
  1303. # CONFIG_COMPILER_OPTIMIZATION_LEVEL_RELEASE is not set
  1304. CONFIG_OPTIMIZATION_ASSERTIONS_ENABLED=y
  1305. # CONFIG_OPTIMIZATION_ASSERTIONS_SILENT is not set
  1306. # CONFIG_OPTIMIZATION_ASSERTIONS_DISABLED is not set
  1307. CONFIG_OPTIMIZATION_ASSERTION_LEVEL=2
  1308. # CONFIG_CXX_EXCEPTIONS is not set
  1309. CONFIG_STACK_CHECK_NONE=y
  1310. # CONFIG_STACK_CHECK_NORM is not set
  1311. # CONFIG_STACK_CHECK_STRONG is not set
  1312. # CONFIG_STACK_CHECK_ALL is not set
  1313. # CONFIG_WARN_WRITE_STRINGS is not set
  1314. # CONFIG_DISABLE_GCC8_WARNINGS is not set
  1315. # CONFIG_ESP32_APPTRACE_DEST_TRAX is not set
  1316. CONFIG_ESP32_APPTRACE_DEST_NONE=y
  1317. CONFIG_ESP32_APPTRACE_LOCK_ENABLE=y
  1318. CONFIG_ADC2_DISABLE_DAC=y
  1319. # CONFIG_EVENT_LOOP_PROFILING is not set
  1320. CONFIG_POST_EVENTS_FROM_ISR=y
  1321. CONFIG_POST_EVENTS_FROM_IRAM_ISR=y
  1322. CONFIG_ESP32C3_LIGHTSLEEP_GPIO_RESET_WORKAROUND=y
  1323. CONFIG_IPC_TASK_STACK_SIZE=1536
  1324. CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE=y
  1325. # CONFIG_ESP32_PHY_INIT_DATA_IN_PARTITION is not set
  1326. CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER=20
  1327. CONFIG_ESP32_PHY_MAX_TX_POWER=20
  1328. CONFIG_ESP_SYSTEM_PM_POWER_DOWN_CPU=y
  1329. # CONFIG_ESP32S2_PANIC_PRINT_HALT is not set
  1330. CONFIG_ESP32S2_PANIC_PRINT_REBOOT=y
  1331. # CONFIG_ESP32S2_PANIC_SILENT_REBOOT is not set
  1332. # CONFIG_ESP32S2_PANIC_GDBSTUB is not set
  1333. CONFIG_ESP32S2_ALLOW_RTC_FAST_MEM_AS_HEAP=y
  1334. CONFIG_SYSTEM_EVENT_QUEUE_SIZE=32
  1335. CONFIG_SYSTEM_EVENT_TASK_STACK_SIZE=2304
  1336. CONFIG_MAIN_TASK_STACK_SIZE=3584
  1337. CONFIG_CONSOLE_UART_DEFAULT=y
  1338. # CONFIG_CONSOLE_UART_CUSTOM is not set
  1339. # CONFIG_ESP_CONSOLE_UART_NONE is not set
  1340. CONFIG_CONSOLE_UART=y
  1341. CONFIG_CONSOLE_UART_NUM=0
  1342. CONFIG_CONSOLE_UART_BAUDRATE=115200
  1343. # CONFIG_INT_WDT is not set
  1344. # CONFIG_TASK_WDT is not set
  1345. # CONFIG_ESP32_DEBUG_STUBS_ENABLE is not set
  1346. CONFIG_TIMER_TASK_STACK_SIZE=3584
  1347. # CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH is not set
  1348. # CONFIG_ESP32_ENABLE_COREDUMP_TO_UART is not set
  1349. CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE=y
  1350. CONFIG_MB_MASTER_TIMEOUT_MS_RESPOND=150
  1351. CONFIG_MB_MASTER_DELAY_MS_CONVERT=200
  1352. CONFIG_MB_QUEUE_LENGTH=20
  1353. CONFIG_MB_SERIAL_TASK_STACK_SIZE=4096
  1354. CONFIG_MB_SERIAL_BUF_SIZE=256
  1355. CONFIG_MB_SERIAL_TASK_PRIO=10
  1356. CONFIG_MB_CONTROLLER_SLAVE_ID_SUPPORT=y
  1357. CONFIG_MB_CONTROLLER_SLAVE_ID=0x00112233
  1358. CONFIG_MB_CONTROLLER_NOTIFY_TIMEOUT=20
  1359. CONFIG_MB_CONTROLLER_NOTIFY_QUEUE_SIZE=20
  1360. CONFIG_MB_CONTROLLER_STACK_SIZE=4096
  1361. CONFIG_MB_EVENT_QUEUE_TIMEOUT=20
  1362. # CONFIG_MB_TIMER_PORT_ENABLED is not set
  1363. CONFIG_MB_TIMER_GROUP=0
  1364. CONFIG_MB_TIMER_INDEX=0
  1365. # CONFIG_ENABLE_STATIC_TASK_CLEAN_UP_HOOK is not set
  1366. CONFIG_TIMER_TASK_PRIORITY=1
  1367. CONFIG_TIMER_TASK_STACK_DEPTH=2048
  1368. CONFIG_TIMER_QUEUE_LENGTH=10
  1369. # CONFIG_L2_TO_L3_COPY is not set
  1370. # CONFIG_USE_ONLY_LWIP_SELECT is not set
  1371. CONFIG_ESP_GRATUITOUS_ARP=y
  1372. CONFIG_GARP_TMR_INTERVAL=60
  1373. CONFIG_TCPIP_RECVMBOX_SIZE=32
  1374. CONFIG_TCP_MAXRTX=12
  1375. CONFIG_TCP_SYNMAXRTX=12
  1376. CONFIG_TCP_MSS=1440
  1377. CONFIG_TCP_MSL=60000
  1378. CONFIG_TCP_SND_BUF_DEFAULT=5744
  1379. CONFIG_TCP_WND_DEFAULT=5744
  1380. CONFIG_TCP_RECVMBOX_SIZE=6
  1381. CONFIG_TCP_QUEUE_OOSEQ=y
  1382. # CONFIG_ESP_TCP_KEEP_CONNECTION_WHEN_IP_CHANGES is not set
  1383. CONFIG_TCP_OVERSIZE_MSS=y
  1384. # CONFIG_TCP_OVERSIZE_QUARTER_MSS is not set
  1385. # CONFIG_TCP_OVERSIZE_DISABLE is not set
  1386. CONFIG_UDP_RECVMBOX_SIZE=6
  1387. CONFIG_TCPIP_TASK_STACK_SIZE=3072
  1388. CONFIG_TCPIP_TASK_AFFINITY_NO_AFFINITY=y
  1389. # CONFIG_TCPIP_TASK_AFFINITY_CPU0 is not set
  1390. # CONFIG_TCPIP_TASK_AFFINITY_CPU1 is not set
  1391. CONFIG_TCPIP_TASK_AFFINITY=0x7FFFFFFF
  1392. # CONFIG_PPP_SUPPORT is not set
  1393. CONFIG_ESP32_PTHREAD_TASK_PRIO_DEFAULT=5
  1394. CONFIG_ESP32_PTHREAD_TASK_STACK_SIZE_DEFAULT=3072
  1395. CONFIG_ESP32_PTHREAD_STACK_MIN=768
  1396. CONFIG_ESP32_DEFAULT_PTHREAD_CORE_NO_AFFINITY=y
  1397. # CONFIG_ESP32_DEFAULT_PTHREAD_CORE_0 is not set
  1398. # CONFIG_ESP32_DEFAULT_PTHREAD_CORE_1 is not set
  1399. CONFIG_ESP32_PTHREAD_TASK_CORE_DEFAULT=-1
  1400. CONFIG_ESP32_PTHREAD_TASK_NAME_DEFAULT="pthread"
  1401. CONFIG_SPI_FLASH_WRITING_DANGEROUS_REGIONS_ABORTS=y
  1402. # CONFIG_SPI_FLASH_WRITING_DANGEROUS_REGIONS_FAILS is not set
  1403. # CONFIG_SPI_FLASH_WRITING_DANGEROUS_REGIONS_ALLOWED is not set
  1404. # CONFIG_USB_ENABLED is not set
  1405. CONFIG_SUPPRESS_SELECT_DEBUG_OUTPUT=y
  1406. CONFIG_SUPPORT_TERMIOS=y
  1407. CONFIG_SEMIHOSTFS_MAX_MOUNT_POINTS=1
  1408. # End of deprecated options
The openocd debug log is attached because of its size:
oocd.log
(316.16 KiB) Downloaded 515 times
The dump always shows some memory with the first byte set to 0xAA.
A GDB session gives:
  1. (gdb) p sContext
  2. $1 = {
  3.   size = 0,
  4.   buffer = 0x3d800974 ""
  5. }
  6. (gdb) p sContext .buffer
  7. $2 = (uint8_t *) 0x3d800974 ""
  8. (gdb) p sContext .buffer[0]
  9. $3 = 0 '\000'
  10. (gdb) set sContext.buffer[0] = 0xFF
  11. Cannot access memory at address 0x3d800974

I hope that helps!

EDIT: The ESP32s3 has an eFuse bit set to permanently activate JTAG via pins, thus the ESP-Prog in oocd.

ESP_Alexey
Posts: 24
Joined: Fri Dec 02, 2016 8:55 pm

Re: ESP32S3 SPIRAM: Reading memory in GDB returns always zeros

Postby ESP_Alexey » Fri Nov 04, 2022 10:10 am

Ok. Probably I see the reason. Looks like OpenOCD forbids reading from region `0x3d00000` because it is not mentioned in the esp32-s3 memory config. Workaround is to disable memory access check in OpenOCD. Just add `mon xtensa set_permissive 1` in your `gdbinit` file or somewhere in IDE debug settings (where GDB init commands are specified).

I did not see such a problem with the latest IDF because it maps SPIRAM to `0x3c00000` region. As far as I know the change was introduced in IDF 5.0.

Who is online

Users browsing this forum: taherrera and 107 guests