Closed janjongboom closed 7 years ago
In mbed_app.json add:
"target_overrides": { "*": { "mbed-trace.enable": 1 } }
And in main.cpp add:
#include "mbed-trace/mbed_trace.h" void trace_printer(const char* str) { printf("%s\r\n", str); } int main() { mbed_trace_init(); mbed_trace_print_function_set(trace_printer);
Fixed in #49
Yep, this should definitely be covered in the readme. Thanks for pointing it out and making the PR.
ARM Internal Ref: IOTSYST-1252
Done in https://github.com/ARMmbed/mbed-trace/pull/50
In mbed_app.json add:
And in main.cpp add: