Commit Graph

4 Commits (37aa03611788f05901b47c9669b02daab973fd2c)

Author SHA1 Message Date
Kevin Bracey b110ef4c1c Improve efficiency and formatting of ITM output
SerialWireOutput was outputting 1 character per 32-bit write to the
ITM stimulus port. This is inefficient, and causes processing problems
with some viewers due to them receiving 3 NUL bytes between each
desired character.

Rework to allow us to be more efficient, and eliminate those NUL bytes:

* Retain existing mbed_itm_send() and clarify it's a single 32-bit write.
* Add new mbed_itm_send_block() that is appropriate for sending
  character data, and modify SerialWireOutput to use it.
* Move "wait for FIFO ready" check to before the write, rather than
  after.

One minor correction - FIFOREADY is a single bit of the register read.
Don't interpret reserved bits.
2018-07-15 22:53:31 -05:00
Martin Kojtal 5db427a77f hal: astyle update 2018-07-15 22:53:30 -05:00
Bartek Szatkowski a7d6c9d1df Fix doxygen for ITM HAL 2018-03-15 10:43:48 +00:00
Marcus Chang bbf92fdf0d Instrumented Trace Macrocell (ITM) HAL API
HAL API for initializing the ITM and setting SWO debug output.
Actual debug output implemented as SWO FileHandle.
2018-02-16 08:24:31 -08:00