AnsweredAssumed Answered

Bug in stm32f4xx_hal_nor.c

Question asked by Johanan on Oct 3, 2014
Latest reply on Oct 7, 2014 by Montassar BEN ROMDHANE
In  HAL_NOR_GetStatus(..) timeout is not working due to an error:
-----------------
while(status != NOR_SUCCESS)
  {
    /* Get tick */
    tickstart = HAL_GetTick(); // this should be before the while !!!
    /* Check for the Timeout */
    if(Timeout != HAL_MAX_DELAY)
    {
      if((Timeout == 0)||((HAL_GetTick () - tickstart ) > Timeout)) ;// AS it is this will always be ==
      {
        status = NOR_TIMEOUT; 
      } 
    } 
.
.
.
}
-----------------------------
I have no idea who to report this, so I post it here.
Johanan

Outcomes