ESP32 "Logging to Host via JTAG" on C++ project
Posted: Fri Oct 25, 2019 12:00 pm
Good day,
I'm trying to reroute the ESP logging functionality through the JTAG interface. While trying to implement it in my own project I quickly defaulted to the "app_trace_to_host_example". This works just fine as long as i don't try to change it to C++.
The only changes i do is rename the file "app_trace_to_host_example_main.c" to "app_trace_to_host_example_main.cpp". Add the C guard to "app_main" as such (on line 88):
and to be able to compile the project I also need the C guards around the include of "esp_app_trace.h" as such:
These changes suffice for me to no longer get any logging from JTAG.
Does anybody know how I can get this functionality in a C++ project?
Thanks in advance!
Brice
I'm trying to reroute the ESP logging functionality through the JTAG interface. While trying to implement it in my own project I quickly defaulted to the "app_trace_to_host_example". This works just fine as long as i don't try to change it to C++.
The only changes i do is rename the file "app_trace_to_host_example_main.c" to "app_trace_to_host_example_main.cpp". Add the C guard to "app_main" as such (on line 88):
- extern "C" void app_main()
- extern "C" {
- #include "esp_app_trace.h"
- }
Does anybody know how I can get this functionality in a C++ project?
Thanks in advance!
Brice