ARMmbed / mbed-os

Arm Mbed OS is a platform operating system designed for the internet of things
https://mbed.com
Other
4.67k stars 2.98k forks source link

NULLs in SWO output #7373

Closed RobMeades closed 6 years ago

RobMeades commented 6 years ago

Description

With the introduction of #5571, it is now possible to redirect stdio to SWO really easily, which is very sweet indeed. There is an issue, though, which is that one character of output is written as an ITM 32-bit word. The two clients I have used (GDB and JLinkSWOViewer) interpret each byte of the 32-bit word as an individual character and so either emit three white-space characters (GDB) or, seeing NULL, terminate the string and print nothing more (JLinkSWOViewer), which is not really usable.

@kjbracey-arm is fixing this in #7371.

Issue request type

[ ] Question
[ ] Enhancement
[x] Bug

ciarmcom commented 6 years ago

ARM Internal Ref: MBOTRIAGE-982