2
0

sdkconfig.defaults 4.5 KB

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