sdkconfig.defaults 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. # Set the known example app config to template example (see user_settings.h)
  2. CONFIG_WOLFSSL_EXAMPLE_NAME_WOLFSSL_BENCHMARK=y
  3. # Some wolfSSL helpers
  4. CONFIG_USE_WOLFSSL_ESP_SDK_TIME=y
  5. # sdkconfig.defaults for ESP8266 + ESP32
  6. # Note that during the build process, settings from sdkconfig.defaults will not override those already in sdkconfig.
  7. # See https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/build-system.html#custom-sdkconfig-defaults
  8. CONFIG_BENCH_ARGV="-lng 0"
  9. # FreeRTOS ticks at 1ms interval
  10. CONFIG_FREERTOS_UNICORE=y
  11. CONFIG_FREERTOS_HZ=1000
  12. CONFIG_ESP32_DEFAULT_CPU_FREQ_240=y
  13. #
  14. # Default main stack size. See user_settings.h
  15. #
  16. # This is typically bigger than needed for stack size.
  17. # Units are words, not bytes. See user_settings.h
  18. #
  19. # For wolfSSL SMALL_STACK, 3072 bytes should be sufficient for benchmark app.
  20. # When using RSA, assign at least 10500 bytes, otherwise 5500 usually works for others
  21. # We set this to 28672 for use in the "test everything possible" in the wolfssl_test app.
  22. CONFIG_ESP_MAIN_TASK_STACK_SIZE=28672
  23. # Legacy stack size for older ESP-IDF versions
  24. CONFIG_MAIN_TASK_STACK_SIZE=28672
  25. #
  26. # Benchmark must not have CONFIG_NEWLIB_NANO_FORMAT enabled
  27. CONFIG_NEWLIB_NANO_FORMAT=n
  28. #
  29. # Watchdog Timers
  30. #
  31. # We don't want to have the watchdog timeout during tests & benchmarks
  32. #
  33. CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU0=n
  34. CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU1=n
  35. # Panic & Watchdog
  36. CONFIG_ESP_INT_WDT_TIMEOUT_MS=10000
  37. CONFIG_ESP_TASK_WDT_EN=n
  38. CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y
  39. CONFIG_ESP_INT_WDT=n
  40. # ESP8266 Watchdog:
  41. CONFIG_TASK_WDT=n
  42. CONFIG_TASK_WDT_PANIC=n
  43. # ESP8266 WDT
  44. # CONFIG_ESP_PANIC_PRINT_REBOOT is not set
  45. CONFIG_ESP_PANIC_PRINT_REBOOT=n
  46. CONFIG_ESP_PANIC_PRINT_HALT=y
  47. # CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS is not set
  48. CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS=n
  49. # ESP8266 Memory
  50. CONFIG_FREERTOS_GLOBAL_DATA_LINK_IRAM=y
  51. CONFIG_HEAP_DISABLE_IRAM=y
  52. # Performance
  53. # CONFIG_COMPILER_OPTIMIZATION_PERF=y
  54. # Set max CPU frequency (falls back as needed for lower maximum)
  55. CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
  56. # Enable wolfSSL TLS in esp-tls
  57. CONFIG_ESP_TLS_USING_WOLFSSL=y
  58. CONFIG_TLS_STACK_WOLFSSL=y
  59. # Bundles take up flash space and are disabled unless otherwise known to be needed
  60. CONFIG_WOLFSSL_CERTIFICATE_BUNDLE=n
  61. # CONFIG_WOLFSSL_CERTIFICATE_BUNDLE=y
  62. # CONFIG_ESP_WOLFSSL_SMALL_CERT_VERIFY=y
  63. # CONFIG_ESP_TLS_INSECURE=y
  64. # Disable mbedTLS
  65. CONFIG_ESP_TLS_USING_MBEDTLS=n
  66. CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=n
  67. # Some wolfSSL helpers
  68. CONFIG_USE_WOLFSSL_ESP_SDK_TIME=n
  69. # CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS is not set
  70. CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS=n
  71. # ESP8266 Memory
  72. CONFIG_FREERTOS_GLOBAL_DATA_LINK_IRAM=y
  73. CONFIG_HEAP_DISABLE_IRAM=y
  74. # Performance
  75. # CONFIG_COMPILER_OPTIMIZATION_PERF=y
  76. # Set max COU frequency (falls back as needed for lower maximum)
  77. CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
  78. # FreeRTOS ticks at 1ms interval
  79. CONFIG_FREERTOS_UNICORE=y
  80. CONFIG_FREERTOS_HZ=1000
  81. #
  82. # Compiler options
  83. #
  84. CONFIG_COMPILER_OPTIMIZATION_DEFAULT=y
  85. # CONFIG_COMPILER_OPTIMIZATION_SIZE is not set
  86. # CONFIG_COMPILER_OPTIMIZATION_PERF is not set
  87. # CONFIG_COMPILER_OPTIMIZATION_NONE is not set
  88. CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE=y
  89. # CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT is not set
  90. # CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE is not set
  91. CONFIG_COMPILER_FLOAT_LIB_FROM_GCCLIB=y
  92. CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL=2
  93. # CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT is not set
  94. CONFIG_COMPILER_HIDE_PATHS_MACROS=y
  95. # CONFIG_COMPILER_CXX_EXCEPTIONS is not set
  96. # CONFIG_COMPILER_CXX_RTTI is not set
  97. # CONFIG_COMPILER_STACK_CHECK_MODE_NONE is not set
  98. CONFIG_COMPILER_STACK_CHECK_MODE_NORM=y
  99. # CONFIG_COMPILER_STACK_CHECK_MODE_STRONG is not set
  100. # CONFIG_COMPILER_STACK_CHECK_MODE_ALL is not set
  101. CONFIG_COMPILER_STACK_CHECK=y
  102. # CONFIG_COMPILER_WARN_WRITE_STRINGS is not set
  103. # CONFIG_COMPILER_SAVE_RESTORE_LIBCALLS is not set
  104. # CONFIG_COMPILER_DISABLE_GCC12_WARNINGS is not set
  105. # CONFIG_COMPILER_DUMP_RTL_FILES is not set
  106. # end of Compiler options
  107. # We don't know that the min is actually v2,
  108. # but this is the earliest tested.
  109. CONFIG_ESP32C3_REV_MIN_2=y
  110. #
  111. # Partition Table
  112. #
  113. # CONFIG_PARTITION_TABLE_SINGLE_APP is not set
  114. CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y
  115. # CONFIG_PARTITION_TABLE_TWO_OTA is not set
  116. # CONFIG_PARTITION_TABLE_CUSTOM is not set
  117. CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
  118. CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp_large.csv"
  119. CONFIG_PARTITION_TABLE_OFFSET=0x8000
  120. CONFIG_PARTITION_TABLE_MD5=y
  121. # end of Partition Table