AnsweredAssumed Answered

AUTOSAR ISR timer activation

Question asked by Yuriy Serdyuk on Jul 19, 2019
Latest reply on Jul 22, 2019 by Yuriy Serdyuk

Hello,

 

I want activate periodic timer 1 sec, but i don't know how describe TimerHardware. Can you give me example. Board is MPC5748G

 

         TargetMCU = MPC5748G {
         
            TPTimer = TRUE {
                TimerHardware = STM0 {
                    Prescaler = OS {
                        Value = 0;
                    };
                    Freeze = TRUE;
                };
            };
...


...
    ISR ISR1
    {
        STACKSIZE = 512;
        PRIORITY = 5;
        CATEGORY = 2;
        IrqChannel = EXTERNAL {
            IrqNumber = 2;
        };
        TIMING_PROTECTION = TRUE {
            EXECUTIONTIME = 0;//2000000;
            TIMEFRAME = 0;
            MAXOSINTERRUPTLOCKTIME=0;
            MAXALLINTERRUPTLOCKTIME=0;
        };
    };
...

    APPLICATION TRUSTED_APP {
...
     ISR = ISR1;
        CORE = 0;
    };

Outcomes