Switching User Modes on Infineon Aurix

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Post Reply
Valnar92
Newbie
Posts: 10
Joined: Wed Apr 23, 2014 7:48 am

Switching User Modes on Infineon Aurix

Post by Valnar92 » Wed Apr 23, 2014 11:47 am

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

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re: Switching User Modes on Infineon Aurix

Post by paolo.gai » Wed Apr 23, 2014 11:54 am

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

Valnar92
Newbie
Posts: 10
Joined: Wed Apr 23, 2014 7:48 am

Re: Switching User Modes on Infineon Aurix

Post by Valnar92 » Wed Apr 23, 2014 12:51 pm

Hi,
thanks for the quick answer.
You are totally right, the tasks run on highest mode.

Thanks again
Alex

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re: Switching User Modes on Infineon Aurix

Post by paolo.gai » Wed Apr 23, 2014 12:56 pm

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

Post Reply