This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

TRACE_DEBUG in µVision4

Hi,

I'm new with ARM and µVision, and I try demos from Keil on SAM3U board.
In demo, there is TRACE_DEBUG function ( like TRACE_DEBUG("suspend !\n\r")) and I don't see anything appears on Trace Records window. Maybe it's not the good window?

How use TRACE_DEBUG output?

Thanks

Parents
  • Some very early Versions of the SAM3 have a "damaged" SWO, so it is impossible to get any output through ITM, which is required for that.

    Please ask Atmel for the Chip version you have on your DevBoard.

    Otherwise it's "simple":
    Target Options -> Debug -> ULink / JLink (both select Cortex driver) -> Settings -> Trace

    Set the CPU Core Clock frequency (behind PLL!), let SWO Speed be autodetected, set ITM Ch.0 active and set the tick in the box for priviledge.

    In UV Debug Session, select View -> Serial Windows -> ITM printf Viewer.

    BR,
    /th.

Reply
  • Some very early Versions of the SAM3 have a "damaged" SWO, so it is impossible to get any output through ITM, which is required for that.

    Please ask Atmel for the Chip version you have on your DevBoard.

    Otherwise it's "simple":
    Target Options -> Debug -> ULink / JLink (both select Cortex driver) -> Settings -> Trace

    Set the CPU Core Clock frequency (behind PLL!), let SWO Speed be autodetected, set ITM Ch.0 active and set the tick in the box for priviledge.

    In UV Debug Session, select View -> Serial Windows -> ITM printf Viewer.

    BR,
    /th.

Children
No data