2
0

sdkconfig.defaults 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. # sdkconfig.defaults for ESP8266 + ESP32
  2. # Note that during the build process, settings from sdkconfig.defaults will not override those already in sdkconfig.
  3. # See https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/build-system.html#custom-sdkconfig-defaults
  4. CONFIG_BENCH_ARGV="-lng 0"
  5. CONFIG_FREERTOS_HZ=1000
  6. CONFIG_ESP32_DEFAULT_CPU_FREQ_240=y
  7. #
  8. # Default main stack size. See user_settings.h
  9. #
  10. # For wolfSSL SMALL_STACK, 3072 bytes should be sufficient for benchmark app.
  11. # When using RSA, assign at least 10500 bytes, otherwise 5500 usually works for others
  12. CONFIG_ESP_MAIN_TASK_STACK_SIZE=10500
  13. # Legacy stack size for older ESP-IDF versions
  14. CONFIG_MAIN_TASK_STACK_SIZE=10500
  15. #
  16. # Benchmark must not have CONFIG_NEWLIB_NANO_FORMAT enabled
  17. CONFIG_NEWLIB_NANO_FORMAT=n
  18. #
  19. # Watchdog Timers
  20. #
  21. # We don't want to have the watchdog timeout during tests & benchmarks
  22. #
  23. CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU0=n
  24. CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU1=n
  25. # Panic & Watchdog
  26. CONFIG_ESP_INT_WDT_TIMEOUT_MS=10000
  27. CONFIG_ESP_TASK_WDT_EN=n
  28. CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y
  29. CONFIG_ESP_INT_WDT=n
  30. # ESP8266 WDT
  31. # CONFIG_ESP_PANIC_PRINT_REBOOT is not set
  32. CONFIG_ESP_PANIC_PRINT_REBOOT=n
  33. CONFIG_ESP_PANIC_PRINT_HALT=y
  34. # CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS is not set
  35. CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS=n
  36. # ESP8266 Memory
  37. CONFIG_FREERTOS_GLOBAL_DATA_LINK_IRAM=y
  38. CONFIG_HEAP_DISABLE_IRAM=y
  39. # Performance
  40. # CONFIG_COMPILER_OPTIMIZATION_PERF=y
  41. # Set max COU frequency (falls back as needed for lower maximum)
  42. CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
  43. # FreeRTOS ticks at 1ms interval
  44. CONFIG_FREERTOS_UNICORE=y
  45. CONFIG_FREERTOS_HZ=1000
  46. #
  47. # Compiler options
  48. #
  49. CONFIG_COMPILER_OPTIMIZATION_DEFAULT=y
  50. # CONFIG_COMPILER_OPTIMIZATION_SIZE is not set
  51. # CONFIG_COMPILER_OPTIMIZATION_PERF is not set
  52. # CONFIG_COMPILER_OPTIMIZATION_NONE is not set
  53. CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE=y
  54. # CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT is not set
  55. # CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE is not set
  56. CONFIG_COMPILER_FLOAT_LIB_FROM_GCCLIB=y
  57. CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL=2
  58. # CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT is not set
  59. CONFIG_COMPILER_HIDE_PATHS_MACROS=y
  60. # CONFIG_COMPILER_CXX_EXCEPTIONS is not set
  61. # CONFIG_COMPILER_CXX_RTTI is not set
  62. # CONFIG_COMPILER_STACK_CHECK_MODE_NONE is not set
  63. CONFIG_COMPILER_STACK_CHECK_MODE_NORM=y
  64. # CONFIG_COMPILER_STACK_CHECK_MODE_STRONG is not set
  65. # CONFIG_COMPILER_STACK_CHECK_MODE_ALL is not set
  66. CONFIG_COMPILER_STACK_CHECK=y
  67. # CONFIG_COMPILER_WARN_WRITE_STRINGS is not set
  68. # CONFIG_COMPILER_SAVE_RESTORE_LIBCALLS is not set
  69. # CONFIG_COMPILER_DISABLE_GCC12_WARNINGS is not set
  70. # CONFIG_COMPILER_DUMP_RTL_FILES is not set
  71. # end of Compiler options
  72. # We don't know that the min is actually v2,
  73. # but this is the earliest tested.
  74. CONFIG_ESP32C3_REV_MIN_2=y
  75. #
  76. # Partition Table
  77. #
  78. # CONFIG_PARTITION_TABLE_SINGLE_APP is not set
  79. CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y
  80. # CONFIG_PARTITION_TABLE_TWO_OTA is not set
  81. # CONFIG_PARTITION_TABLE_CUSTOM is not set
  82. CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
  83. CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp_large.csv"
  84. CONFIG_PARTITION_TABLE_OFFSET=0x8000
  85. CONFIG_PARTITION_TABLE_MD5=y
  86. # end of Partition Table