Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-10121

Timer osal - noos - Timer should be reset first before registering interrupts in TimerP_StartMode_USER mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • PDK
    • PDK-6534
    • PDK_J7_06.02.00
    • PROCESSOR_SDK_07.03.00
    • j721e-evm
    • Reset the timer before using

      In timer OSAL, the timer reset is done last after all initialization including the interrupt registration is done. This triggers interrupt even when timer is initialized in TimerP_StartMode_USER mode.

      Interrupt would be triggered due to earlier timer initialization -

      1. SBL uses timer 0 and keeps it initialized.
      2. The app comes and uses timer 0 with USER mode
      3. Due to earlier configuration of timer, the interrupt gets triggered.

      below is called

      /* Register interrupts */
      (void)Osal_RegisterInterrupt(&interruptRegParams,&(timer->hwi));

      before

      /*if doing soft reset: do it first before setting other flags */

      if ((timer->tiocpCfg & TIMERP_DM_TIOCP_CFG_SOFTRESET_FLAG) > 0U)

      { (void)TIMERReset(baseAddr); }

       

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: