This example only concerns the asynchronous trace mode.
Set the TRCENA bit to 1 into the Debug Exception and Monitor
Register (0xE000EDFC) to enable the use of trace and debug blocks.
- 1.Write 0x2 into the Selected Pin Protocol Register.
- Select the Serial Wire output – NRZ
- 2.Write 0x100 into the Formatter and Flush Control Register.
- 3.Set the suitable clock prescaler value into the Async Clock Prescaler Register to scale the baud rate of the asynchronous output (this can be done automatically by the debugging tool).