-
Bug
-
Resolution: Fixed
-
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 -
- SBL uses timer 0 and keeps it initialized.
- The app comes and uses timer 0 with USER mode
- 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); }