This is a tracking issue to discuss to possible solution(s) to the output synchronisation problem.
Mbed-os currently provides several mutually unaware ways to output traces and log messages to either a specific output and/or a retargetable destination.
This creates friction during development :
Prior discussion on #9954.
[ ] Question
[ ] Enhancement
[x] Bug
For the background history, I faced this issue when trying to build a Network Interface driver for a wifi module.
The driver dispatches its events in its own thread and prints logs using mbed_trace. However, greentea uses direct RawSerial, unity putc and some (most) of the netsocket tests are using printf.
Trying to reconstruct the corrupted log of intermingled messages coming from various parts of the software was a hassle, hence the hack proposed in #9954.
What is the IDEAL design and feature-set for the various serial debug, test, logging, command line interfaces?
How do we hack what exists to get on the path to that ideal?
Thank you for raising this issue. Please note we have updated our policies and
now only defects should be raised directly in GitHub. Going forward questions and
enhancements will be considered in our forums, https://forums.mbed.com/ . If this
issue is still relevant please re-raise it there.
This GitHub issue will now be closed.
@adbridge Can this be considered a defect so that the discussion #11861 can be addressed?
Or should it be considered a new feature and PR created to discuss and implement?
@40Grit we can make an exception in this case I think.
Internal Jira reference: https://jira.arm.com/browse/MBOTRIAGE-2341
@0xc0170 @kjbracey-arm @SeppoTakalo @kivaisan
@trowbridgec
What is the best long term solution.
We have no fear of getting dirty to make it clean.
What is the best long term solution.
@ARMmbed/mbed-os-core Please review
cc: @AriParkkila
Could we get swo support for Daplink? And use that for mbed-os internal traces? That would probably solve the problem with Greentea which is really pain in the ass if you need to debug some test failures.
Sure would be nice but not all hic's support swo though? Possibly not all targets hook it up either?
Possibly not all targets hook it up either?
(Including Cortex-M0)
@ithinuel thank you for raising this issue.Please take a look at the following comments:
Could you add some more detail to the description? A good description should be at least 25 words.
What target(s) are you using?
What toolchain(s) are you using?
What version of Mbed OS are you using (tag or sha)?
It would help if you could also specify the versions of any tools you are using?
How can we reproduce your issue?
NOTE: If there are fields which are not applicable then please just add 'n/a' or 'None'.This indicates to us that at least all the fields have been considered.
Please update the issue header with the missing information, the issue will not be mirroredto our internal defect tracking system or investigated until this has been fully resolved.
Is this still an issue in Mbed 6 ?
@ithinuel it has been 5 days since the last reminder. Could you please update the issue header as previously requested?
@ithinuel it has been 5 days since the last reminder. Could you please update the issue header as previously requested?
@ithinuel it has been 5 days since the last reminder. Could you please update the issue header as previously requested?
@ithinuel it has been 5 days since the last reminder. Could you please update the issue header as previously requested?
@ithinuel it has been 5 days since the last reminder. Could you please update the issue header as previously requested?
@ithinuel it has been 5 days since the last reminder. Could you please update the issue header as previously requested?
@ithinuel it has been 5 days since the last reminder. Could you please update the issue header as previously requested?
@ithinuel it has been 5 days since the last reminder. Could you please update the issue header as previously requested?
@ithinuel it has been 5 days since the last reminder. Could you please update the issue header as previously requested?
@kjbracey-arm @AGlass0fMilk @trowbridgec is this still an issue in os6?
@ithinuel it has been 5 days since the last reminder. Could you please update the issue header as previously requested?
Sorry for the too many pokes here, we will fix the bot.
Bot has been leading to me bumping the stale issues a little more vigorously. So maybe just extend it to 10 days?
@ithinuel it has been 5 days since the last reminder. Could you please update the issue header as previously requested?
@adbridge As far as I know this hasn't been fixed yet.
@0xc0170 Np, GH is too noisy so it's filtered out anyway ;)
@ithinuel it has been 5 days since the last reminder. Could you please update the issue header as previously requested?
@ithinuel it has been 5 days since the last reminder. Could you please update the issue header as previously requested?
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers.
Internal Jira reference: https://jira.arm.com/browse/IOTOSM-3100