sdkconfig.defaults 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 Watchdog:
  31. CONFIG_TASK_WDT=n
  32. CONFIG_TASK_WDT_PANIC=n
  33. # ESP8266 WDT
  34. # CONFIG_ESP_PANIC_PRINT_REBOOT is not set
  35. CONFIG_ESP_PANIC_PRINT_REBOOT=n
  36. CONFIG_ESP_PANIC_PRINT_HALT=y
  37. # CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS is not set
  38. CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS=n
  39. # ESP8266 Memory
  40. CONFIG_FREERTOS_GLOBAL_DATA_LINK_IRAM=y
  41. CONFIG_HEAP_DISABLE_IRAM=y
  42. # Performance
  43. # CONFIG_COMPILER_OPTIMIZATION_PERF=y
  44. # Set max COU frequency (falls back as needed for lower maximum)
  45. CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
  46. # FreeRTOS ticks at 1ms interval
  47. CONFIG_FREERTOS_UNICORE=y
  48. CONFIG_FREERTOS_HZ=1000
  49. #
  50. # Compiler options
  51. #
  52. CONFIG_COMPILER_OPTIMIZATION_DEFAULT=y
  53. # CONFIG_COMPILER_OPTIMIZATION_SIZE is not set
  54. # CONFIG_COMPILER_OPTIMIZATION_PERF is not set
  55. # CONFIG_COMPILER_OPTIMIZATION_NONE is not set
  56. CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE=y
  57. # CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT is not set
  58. # CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE is not set
  59. CONFIG_COMPILER_FLOAT_LIB_FROM_GCCLIB=y
  60. CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL=2
  61. # CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT is not set
  62. CONFIG_COMPILER_HIDE_PATHS_MACROS=y
  63. # CONFIG_COMPILER_CXX_EXCEPTIONS is not set
  64. # CONFIG_COMPILER_CXX_RTTI is not set
  65. # CONFIG_COMPILER_STACK_CHECK_MODE_NONE is not set
  66. CONFIG_COMPILER_STACK_CHECK_MODE_NORM=y
  67. # CONFIG_COMPILER_STACK_CHECK_MODE_STRONG is not set
  68. # CONFIG_COMPILER_STACK_CHECK_MODE_ALL is not set
  69. CONFIG_COMPILER_STACK_CHECK=y
  70. # CONFIG_COMPILER_WARN_WRITE_STRINGS is not set
  71. # CONFIG_COMPILER_SAVE_RESTORE_LIBCALLS is not set
  72. # CONFIG_COMPILER_DISABLE_GCC12_WARNINGS is not set
  73. # CONFIG_COMPILER_DUMP_RTL_FILES is not set
  74. # end of Compiler options
  75. # We don't know that the min is actually v2,
  76. # but this is the earliest tested.
  77. CONFIG_ESP32C3_REV_MIN_2=y
  78. #
  79. # Partition Table
  80. #
  81. # CONFIG_PARTITION_TABLE_SINGLE_APP is not set
  82. CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y
  83. # CONFIG_PARTITION_TABLE_TWO_OTA is not set
  84. # CONFIG_PARTITION_TABLE_CUSTOM is not set
  85. CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
  86. CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp_large.csv"
  87. CONFIG_PARTITION_TABLE_OFFSET=0x8000
  88. CONFIG_PARTITION_TABLE_MD5=y
  89. # end of Partition Table