Discussion Forum

ULINK-2: ITM trace

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
R M
Posted
3-Dec-2008 09:29 GMT
Toolset
ARM
New! ULINK-2: ITM trace

Hello

I'm trying to activate the traces over the ULINK2 adapter. I followed the instructions from http://www.keil.com/support/man/docs/ulink2/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

Read-Only
Author
R M
Posted
3-Dec-2008 11:50 GMT
Toolset
ARM
New! RE: ULINK-2: ITM trace

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)

Next Thread | Thread List | Previous Thread Start a Thread | Settings