ARMmbed / mbed-client-linux-example

DEPRECATED: mbed Client example program for Linux platform
https://cloud.mbed.com/docs/current
Other
2 stars 0 forks source link

How do you enable mbed-trace #52

Closed mark-blackburn-etcorp closed 7 years ago

mark-blackburn-etcorp commented 7 years ago

I had to modify yotta_modules/mbed-trace/mbed-trace/mbed_trace.h to set the MBED_CONF_MBED_TRACE_ENABLE define to 1 in order to get tracing to work. Otherwise none of the object files get compiled with tracing support. Is there a better way so that I don't have to modify the mbed source tree?

yotta_modules/mbed-trace/mbed-trace/mbed_trace.h:

-#define MBED_CONF_MBED_TRACE_ENABLE 0
+#define MBED_CONF_MBED_TRACE_ENABLE 1

The readme at https://github.com/ARMmbed/mbed-trace#prerequisites suggests that you either modify a .json file or set a define for yotta.

teetak01 commented 7 years ago

Hi, if you compile the application with yotta build -d mbed-client-linux-example it should work fine. Its important to specify the module name also there, otherwise it tries to build some unrelated dependencies too.

mark-blackburn-etcorp commented 7 years ago

Thanks, that worked.

From: Teemu Takaluoma [mailto:notifications@github.com] Sent: Wednesday, March 15, 2017 1:14 AM To: ARMmbed/mbed-client-linux-example mbed-client-linux-example@noreply.github.com Cc: Mark Blackburn mark.blackburn@etcorp.ca; Author author@noreply.github.com Subject: Re: [ARMmbed/mbed-client-linux-example] How do you enable mbed-trace (#52)

Hi, if you compile the application with yotta build -d mbed-client-linux-example it should work fine. Its important to specify the module name also there, otherwise it tries to build some unrelated dependencies too.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ARMmbed/mbed-client-linux-example/issues/52#issuecomment-286659773, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AY6iWj1QLyX0K1LRdSe74Ja9mEoOthRPks5rl4-qgaJpZM4Mc9hs.

teetak01 commented 7 years ago

I'll close this issue as resolved.