Kconfig 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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: JTAG or none (to disable).
  7. config APPTRACE_DEST_JTAG
  8. bool "JTAG"
  9. select APPTRACE_DEST_TRAX if IDF_TARGET_ARCH_XTENSA
  10. select APPTRACE_MEMBUFS_APPTRACE_PROTO_ENABLE
  11. select APPTRACE_ENABLE
  12. config APPTRACE_DEST_NONE
  13. bool "None"
  14. endchoice
  15. config APPTRACE_DEST_TRAX
  16. bool
  17. depends on IDF_TARGET_ARCH_XTENSA && !ESP32_TRAX && !ESP32S2_TRAX
  18. select ESP32_MEMMAP_TRACEMEM
  19. select ESP32S2_MEMMAP_TRACEMEM
  20. select ESP32_MEMMAP_TRACEMEM_TWOBANKS
  21. select ESP32S2_MEMMAP_TRACEMEM_TWOBANKS
  22. default n
  23. help
  24. Enables/disable TRAX tracing HW.
  25. config APPTRACE_MEMBUFS_APPTRACE_PROTO_ENABLE
  26. bool
  27. default n
  28. help
  29. Enables/disable swapping memory buffers tracing protocol.
  30. config APPTRACE_ENABLE
  31. bool
  32. default n
  33. help
  34. Enables/disable application tracing module.
  35. config APPTRACE_LOCK_ENABLE
  36. bool
  37. default !APPTRACE_SV_ENABLE
  38. help
  39. Enables/disable application tracing module internal sync lock.
  40. config APPTRACE_ONPANIC_HOST_FLUSH_TMO
  41. int "Timeout for flushing last trace data to host on panic"
  42. depends on APPTRACE_ENABLE
  43. range -1 5000
  44. default -1
  45. help
  46. Timeout for flushing last trace data to host in case of panic. In ms.
  47. Use -1 to disable timeout and wait forever.
  48. config APPTRACE_POSTMORTEM_FLUSH_THRESH
  49. int "Threshold for flushing last trace data to host on panic"
  50. depends on APPTRACE_ENABLE
  51. range 0 16384
  52. default 0
  53. help
  54. Threshold for flushing last trace data to host on panic in post-mortem mode.
  55. This is minimal amount of data needed to perform flush. In bytes.
  56. config APPTRACE_BUF_SIZE
  57. int "Size of the apptrace buffer"
  58. depends on APPTRACE_MEMBUFS_APPTRACE_PROTO_ENABLE && !APPTRACE_DEST_TRAX
  59. default 16384
  60. help
  61. Size of the memory buffer for trace data in bytes.
  62. config APPTRACE_PENDING_DATA_SIZE_MAX
  63. int "Size of the pending data buffer"
  64. depends on APPTRACE_MEMBUFS_APPTRACE_PROTO_ENABLE
  65. default 0
  66. help
  67. Size of the buffer for events in bytes. It is useful for buffering events from
  68. the time critical code (scheduler, ISRs etc). If this parameter is 0 then
  69. events will be discarded when main HW buffer is full.
  70. menu "FreeRTOS SystemView Tracing"
  71. depends on APPTRACE_ENABLE
  72. config APPTRACE_SV_ENABLE
  73. bool "SystemView Tracing Enable"
  74. depends on APPTRACE_ENABLE
  75. default n
  76. help
  77. Enables supporrt for SEGGER SystemView tracing functionality.
  78. choice APPTRACE_SV_TS_SOURCE
  79. prompt "Timer to use as timestamp source"
  80. depends on APPTRACE_SV_ENABLE
  81. default APPTRACE_SV_TS_SOURCE_CCOUNT if FREERTOS_UNICORE && !PM_ENABLE && !IDF_TARGET_ESP32C3
  82. default APPTRACE_SV_TS_SOURCE_TIMER_00 if !FREERTOS_UNICORE && !PM_ENABLE && !IDF_TARGET_ESP32C3
  83. default APPTRACE_SV_TS_SOURCE_ESP_TIMER if PM_ENABLE || IDF_TARGET_ESP32C3
  84. help
  85. SystemView needs to use a hardware timer as the source of timestamps
  86. when tracing. This option selects the timer for it.
  87. config APPTRACE_SV_TS_SOURCE_CCOUNT
  88. bool "CPU cycle counter (CCOUNT)"
  89. depends on FREERTOS_UNICORE && !PM_ENABLE && !IDF_TARGET_ESP32C3
  90. config APPTRACE_SV_TS_SOURCE_TIMER_00
  91. bool "Timer 0, Group 0"
  92. depends on !PM_ENABLE && !IDF_TARGET_ESP32C3
  93. config APPTRACE_SV_TS_SOURCE_TIMER_01
  94. bool "Timer 1, Group 0"
  95. depends on !PM_ENABLE && !IDF_TARGET_ESP32C3
  96. config APPTRACE_SV_TS_SOURCE_TIMER_10
  97. bool "Timer 0, Group 1"
  98. depends on !PM_ENABLE && !IDF_TARGET_ESP32C3
  99. config APPTRACE_SV_TS_SOURCE_TIMER_11
  100. bool "Timer 1, Group 1"
  101. depends on !PM_ENABLE && !IDF_TARGET_ESP32C3
  102. config APPTRACE_SV_TS_SOURCE_ESP_TIMER
  103. bool "esp_timer high resolution timer"
  104. endchoice
  105. config APPTRACE_SV_MAX_TASKS
  106. int "Maximum supported tasks"
  107. depends on APPTRACE_SV_ENABLE
  108. range 1 64
  109. default 16
  110. help
  111. Configures maximum supported tasks in sysview debug
  112. config APPTRACE_SV_BUF_WAIT_TMO
  113. int "Trace buffer wait timeout"
  114. depends on APPTRACE_SV_ENABLE
  115. default 500
  116. help
  117. Configures timeout (in us) to wait for free space in trace buffer.
  118. Set to -1 to wait forever and avoid lost events.
  119. config APPTRACE_SV_EVT_OVERFLOW_ENABLE
  120. bool "Trace Buffer Overflow Event"
  121. depends on APPTRACE_SV_ENABLE
  122. default y
  123. help
  124. Enables "Trace Buffer Overflow" event.
  125. config APPTRACE_SV_EVT_ISR_ENTER_ENABLE
  126. bool "ISR Enter Event"
  127. depends on APPTRACE_SV_ENABLE
  128. default y
  129. help
  130. Enables "ISR Enter" event.
  131. config APPTRACE_SV_EVT_ISR_EXIT_ENABLE
  132. bool "ISR Exit Event"
  133. depends on APPTRACE_SV_ENABLE
  134. default y
  135. help
  136. Enables "ISR Exit" event.
  137. config APPTRACE_SV_EVT_ISR_TO_SCHED_ENABLE
  138. bool "ISR Exit to Scheduler Event"
  139. depends on APPTRACE_SV_ENABLE
  140. default y
  141. help
  142. Enables "ISR to Scheduler" event.
  143. config APPTRACE_SV_EVT_TASK_START_EXEC_ENABLE
  144. bool "Task Start Execution Event"
  145. depends on APPTRACE_SV_ENABLE
  146. default y
  147. help
  148. Enables "Task Start Execution" event.
  149. config APPTRACE_SV_EVT_TASK_STOP_EXEC_ENABLE
  150. bool "Task Stop Execution Event"
  151. depends on APPTRACE_SV_ENABLE
  152. default y
  153. help
  154. Enables "Task Stop Execution" event.
  155. config APPTRACE_SV_EVT_TASK_START_READY_ENABLE
  156. bool "Task Start Ready State Event"
  157. depends on APPTRACE_SV_ENABLE
  158. default y
  159. help
  160. Enables "Task Start Ready State" event.
  161. config APPTRACE_SV_EVT_TASK_STOP_READY_ENABLE
  162. bool "Task Stop Ready State Event"
  163. depends on APPTRACE_SV_ENABLE
  164. default y
  165. help
  166. Enables "Task Stop Ready State" event.
  167. config APPTRACE_SV_EVT_TASK_CREATE_ENABLE
  168. bool "Task Create Event"
  169. depends on APPTRACE_SV_ENABLE
  170. default y
  171. help
  172. Enables "Task Create" event.
  173. config APPTRACE_SV_EVT_TASK_TERMINATE_ENABLE
  174. bool "Task Terminate Event"
  175. depends on APPTRACE_SV_ENABLE
  176. default y
  177. help
  178. Enables "Task Terminate" event.
  179. config APPTRACE_SV_EVT_IDLE_ENABLE
  180. bool "System Idle Event"
  181. depends on APPTRACE_SV_ENABLE
  182. default y
  183. help
  184. Enables "System Idle" event.
  185. config APPTRACE_SV_EVT_TIMER_ENTER_ENABLE
  186. bool "Timer Enter Event"
  187. depends on APPTRACE_SV_ENABLE
  188. default y
  189. help
  190. Enables "Timer Enter" event.
  191. config APPTRACE_SV_EVT_TIMER_EXIT_ENABLE
  192. bool "Timer Exit Event"
  193. depends on APPTRACE_SV_ENABLE
  194. default y
  195. help
  196. Enables "Timer Exit" event.
  197. endmenu
  198. config APPTRACE_GCOV_ENABLE
  199. bool "GCOV to Host Enable"
  200. depends on APPTRACE_ENABLE && !APPTRACE_SV_ENABLE
  201. select ESP_DEBUG_STUBS_ENABLE
  202. default n
  203. help
  204. Enables support for GCOV data transfer to host.
  205. endmenu