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

ULINK-2: ITM trace

Hello

I'm trying to activate the traces over the ULINK2 adapter. I followed the instructions from www.keil.com/.../ulink2_trace_itm_viewer.htm
I'm using an evaluation board: MCBSTM32E
Each time when the DEMCR register is accessed:

if (DEMCR & TRCENA)


there is a hardware-fault exception

How this should work? Do you have an idea where is the problem?
Which is the difference between port SW and port JTAG in the configuration? It seems the traces may work only with SW

Regards

  • I found the problem: in the RTX configuration the option "Run in privileged mode" must be set.
    I would like to live it "unprivileged"
    It seems there is a function __svc used to apply privileges on specific code. But when I'm trying to use it there is this error message:

    error: #147-D: declaration is incompatible with "int itm_fputc(int, FILE *)__svc(42)" (declared at line 13)