PlatformIO Community

Can't run esp application trace example w/o linker errors

HW : ESP32_devkit_v4
ESP IDF : 3.3.1

I understand that in order to add this APPTRACE module I’ve to set it in menuconfig by modifying sdkconfig.h.

But adding: #define CONFIG_APPTRACE_ENABLE 1 doesn’t work.

  1. Is it possible to modify and compile sdkconfig header file in platformio?
  2. Does someone success to run app trace example (ESP IDF)?

Thanks in advance,

It works!!!

Need to add to SDKCONFIG.H :

#define CONFIG_ESP32_APPTRACE_ENABLE 1
#define CONFIG_ESP32_APPTRACE_LOCK_ENABLE 1
#define CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS 1
#define CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS 1
#define CONFIG_FREERTOS_USE_TRACE_FACILITY 1
#define CONFIG_ESP32_APPTRACE_POSTMORTEM_FLUSH_TRAX_THRESH 0
#define CONFIG_ESP32_APPTRACE_ONPANIC_HOST_FLUSH_TMO 10000
#define CONFIG_ESP32_APPTRACE_POSTMORTEM_FLUSH_THRESH 1
#define CONFIG_ESP32_APPTRACE_PENDING_DATA_SIZE_MAX 1024
#define CONFIG_ESP32_APPTRACE_DEST_TRAX 1
#define CONFIG_ESP32_DEBUG_STUBS_ENABLE 1
#define CONFIG_ESP32_TRAX 1
#define CONFIG_ESP32_TRAX_TWOBANKS 1

In the meanwhile, I don’t know which is relevant and which not…but it works.