Page 1 of 1

Switching User Modes on Infineon Aurix

Posted: Wed Apr 23, 2014 11:47 am
by Valnar92
Hi everybody,

I'm trying to implement some time measurements on the Infineon Aurix TC275 and for that, I try to read out the GTM register on address 0xB0000010.
For that operation, I have to give the running task some more privileges, like user1-mode or higher.

So my question is: what should I do to change the mode of the task? And is there a possibility to define the mode directly in the oil-file?

I hope you can help me.
Thanks in advance,
Alex

Re: Switching User Modes on Infineon Aurix

Posted: Wed Apr 23, 2014 11:54 am
by paolo.gai
If I'm not wrong, the current privilege mode of the tasks in AURIX should be the max one (as the memory protection part for aurix has not been released yet).

So I guess you should not need any additional setting I guess...

About the timings, check the benchmark application we published for other microcontrollers. The idea is to use the timer... Afterwards if you want to publish some results let us know!

What kind of project are you developing?

Ciao,

PJ

Re: Switching User Modes on Infineon Aurix

Posted: Wed Apr 23, 2014 12:51 pm
by Valnar92
Hi,
thanks for the quick answer.
You are totally right, the tasks run on highest mode.

Thanks again
Alex

Re: Switching User Modes on Infineon Aurix

Posted: Wed Apr 23, 2014 12:56 pm
by paolo.gai
Exactly.

We also developed all the AUTOSAR OS code on AURIX for a customer, including memory protection, but that has not been released yet.

Ciao,

Paolo