Kconfig 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. menu "Application Level Tracing"
  2. choice ESP32_APPTRACE_DESTINATION
  3. prompt "Data Destination"
  4. default ESP32_APPTRACE_DEST_NONE
  5. help
  6. Select destination for application trace: trace memory or none (to disable).
  7. config ESP32_APPTRACE_DEST_TRAX
  8. bool "Trace memory"
  9. select ESP32_APPTRACE_ENABLE
  10. config ESP32_APPTRACE_DEST_NONE
  11. bool "None"
  12. endchoice
  13. config ESP32_APPTRACE_ENABLE
  14. bool
  15. depends on !ESP32_TRAX
  16. select ESP32_MEMMAP_TRACEMEM
  17. select ESP32_MEMMAP_TRACEMEM_TWOBANKS
  18. default n
  19. help
  20. Enables/disable application tracing module.
  21. config ESP32_APPTRACE_LOCK_ENABLE
  22. bool
  23. default !SYSVIEW_ENABLE
  24. help
  25. Enables/disable application tracing module internal sync lock.
  26. config ESP32_APPTRACE_ONPANIC_HOST_FLUSH_TMO
  27. int "Timeout for flushing last trace data to host on panic"
  28. depends on ESP32_APPTRACE_ENABLE
  29. range -1 5000
  30. default -1
  31. help
  32. Timeout for flushing last trace data to host in case of panic. In ms.
  33. Use -1 to disable timeout and wait forever.
  34. config ESP32_APPTRACE_POSTMORTEM_FLUSH_THRESH
  35. int "Threshold for flushing last trace data to host on panic"
  36. depends on ESP32_APPTRACE_DEST_TRAX
  37. range 0 16384
  38. default 0
  39. help
  40. Threshold for flushing last trace data to host on panic in post-mortem mode.
  41. This is minimal amount of data needed to perform flush. In bytes.
  42. config ESP32_APPTRACE_PENDING_DATA_SIZE_MAX
  43. int "Size of the pending data buffer"
  44. depends on ESP32_APPTRACE_DEST_TRAX
  45. default 0
  46. help
  47. Size of the buffer for events in bytes. It is useful for buffering events from
  48. the time critical code (scheduler, ISRs etc). If this parameter is 0 then
  49. events will be discarded when main HW buffer is full.
  50. menu "FreeRTOS SystemView Tracing"
  51. depends on ESP32_APPTRACE_ENABLE
  52. config SYSVIEW_ENABLE
  53. bool "SystemView Tracing Enable"
  54. depends on ESP32_APPTRACE_ENABLE
  55. default n
  56. help
  57. Enables supporrt for SEGGER SystemView tracing functionality.
  58. choice SYSVIEW_TS_SOURCE
  59. prompt "Timer to use as timestamp source"
  60. depends on SYSVIEW_ENABLE
  61. default SYSVIEW_TS_SOURCE_CCOUNT if FREERTOS_UNICORE && !PM_ENABLE
  62. default SYSVIEW_TS_SOURCE_TIMER_00 if !FREERTOS_UNICORE && !PM_ENABLE
  63. default SYSVIEW_TS_SOURCE_ESP_TIMER if PM_ENABLE
  64. help
  65. SystemView needs to use a hardware timer as the source of timestamps
  66. when tracing. This option selects the timer for it.
  67. config SYSVIEW_TS_SOURCE_CCOUNT
  68. bool "CPU cycle counter (CCOUNT)"
  69. depends on FREERTOS_UNICORE && !PM_ENABLE
  70. config SYSVIEW_TS_SOURCE_TIMER_00
  71. bool "Timer 0, Group 0"
  72. depends on !PM_ENABLE
  73. config SYSVIEW_TS_SOURCE_TIMER_01
  74. bool "Timer 1, Group 0"
  75. depends on !PM_ENABLE
  76. config SYSVIEW_TS_SOURCE_TIMER_10
  77. bool "Timer 0, Group 1"
  78. depends on !PM_ENABLE
  79. config SYSVIEW_TS_SOURCE_TIMER_11
  80. bool "Timer 1, Group 1"
  81. depends on !PM_ENABLE
  82. config SYSVIEW_TS_SOURCE_ESP_TIMER
  83. bool "esp_timer high resolution timer"
  84. endchoice
  85. config SYSVIEW_MAX_TASKS
  86. int "Maximum supported tasks"
  87. depends on SYSVIEW_ENABLE
  88. range 1 64
  89. default 16
  90. help
  91. Configures maximum supported tasks in sysview debug
  92. config SYSVIEW_BUF_WAIT_TMO
  93. int "Trace buffer wait timeout"
  94. depends on SYSVIEW_ENABLE
  95. default 500
  96. help
  97. Configures timeout (in us) to wait for free space in trace buffer.
  98. Set to -1 to wait forever and avoid lost events.
  99. config SYSVIEW_EVT_OVERFLOW_ENABLE
  100. bool "Trace Buffer Overflow Event"
  101. depends on SYSVIEW_ENABLE
  102. default y
  103. help
  104. Enables "Trace Buffer Overflow" event.
  105. config SYSVIEW_EVT_ISR_ENTER_ENABLE
  106. bool "ISR Enter Event"
  107. depends on SYSVIEW_ENABLE
  108. default y
  109. help
  110. Enables "ISR Enter" event.
  111. config SYSVIEW_EVT_ISR_EXIT_ENABLE
  112. bool "ISR Exit Event"
  113. depends on SYSVIEW_ENABLE
  114. default y
  115. help
  116. Enables "ISR Exit" event.
  117. config SYSVIEW_EVT_ISR_TO_SCHEDULER_ENABLE
  118. bool "ISR Exit to Scheduler Event"
  119. depends on SYSVIEW_ENABLE
  120. default y
  121. help
  122. Enables "ISR to Scheduler" event.
  123. config SYSVIEW_EVT_TASK_START_EXEC_ENABLE
  124. bool "Task Start Execution Event"
  125. depends on SYSVIEW_ENABLE
  126. default y
  127. help
  128. Enables "Task Start Execution" event.
  129. config SYSVIEW_EVT_TASK_STOP_EXEC_ENABLE
  130. bool "Task Stop Execution Event"
  131. depends on SYSVIEW_ENABLE
  132. default y
  133. help
  134. Enables "Task Stop Execution" event.
  135. config SYSVIEW_EVT_TASK_START_READY_ENABLE
  136. bool "Task Start Ready State Event"
  137. depends on SYSVIEW_ENABLE
  138. default y
  139. help
  140. Enables "Task Start Ready State" event.
  141. config SYSVIEW_EVT_TASK_STOP_READY_ENABLE
  142. bool "Task Stop Ready State Event"
  143. depends on SYSVIEW_ENABLE
  144. default y
  145. help
  146. Enables "Task Stop Ready State" event.
  147. config SYSVIEW_EVT_TASK_CREATE_ENABLE
  148. bool "Task Create Event"
  149. depends on SYSVIEW_ENABLE
  150. default y
  151. help
  152. Enables "Task Create" event.
  153. config SYSVIEW_EVT_TASK_TERMINATE_ENABLE
  154. bool "Task Terminate Event"
  155. depends on SYSVIEW_ENABLE
  156. default y
  157. help
  158. Enables "Task Terminate" event.
  159. config SYSVIEW_EVT_IDLE_ENABLE
  160. bool "System Idle Event"
  161. depends on SYSVIEW_ENABLE
  162. default y
  163. help
  164. Enables "System Idle" event.
  165. config SYSVIEW_EVT_TIMER_ENTER_ENABLE
  166. bool "Timer Enter Event"
  167. depends on SYSVIEW_ENABLE
  168. default y
  169. help
  170. Enables "Timer Enter" event.
  171. config SYSVIEW_EVT_TIMER_EXIT_ENABLE
  172. bool "Timer Exit Event"
  173. depends on SYSVIEW_ENABLE
  174. default y
  175. help
  176. Enables "Timer Exit" event.
  177. endmenu
  178. config ESP32_GCOV_ENABLE
  179. bool "GCOV to Host Enable"
  180. depends on ESP32_DEBUG_STUBS_ENABLE && ESP32_APPTRACE_ENABLE && !SYSVIEW_ENABLE
  181. default y
  182. help
  183. Enables support for GCOV data transfer to host.
  184. endmenu