Kconfig 7.1 KB

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