We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See also ARMmbed/mbed-drivers#188
The text was updated successfully, but these errors were encountered:
ARM Internal Ref: IOTSYST-2179
Sorry, something went wrong.
Here is examples how to set up SWO traces: https://developer.mbed.org/users/wim/code/SWO/docs/e5af2e131b95/SWO_8cpp_source.html
So all what you have to do is just redirect mbed-traces to use something like SWO_PrintString() -function using mbed_trace_print_function_set() -API.
SWO_PrintString()
mbed_trace_print_function_set()
related to: ARMmbed/DAPLink#259
Is this what you are looking for?
@jupe Thanks for your help. I want to kown DAPlink how to support SWO trace ,but not ST-LINK and Segger J-Link.
@jupe, thanks!
For those who are looking for a full example:
#if MBED_CONF_MBED_TRACE_ENABLE #include "mbed-trace/mbed_trace.h" #include "swo.h" // #include "swo-platform/swo-platform.h" // for efm32 #define TRACE_GROUP "main" void trace_printer(const char* str) { swoprintf("%s\n", str); } #endif int main() { mbed_trace_init(); mbed_trace_print_function_set(trace_printer); float x = 1.2; tr_debug("Result:"); tr_debug("%f", x * x); }
No branches or pull requests
See also ARMmbed/mbed-drivers#188
The text was updated successfully, but these errors were encountered: