We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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)