AnsweredAssumed Answered

FLASH_WaitForLastOperation CubeMx error

Question asked by schlenger.thomas on Jan 23, 2017
Latest reply on Oct 31, 2017 by zhivko zivkovic

The latest Version of CubeMx (4.19.0) the "FLASH_WaitForLastOperation" function causes errors if the HAL_GetTick() function is near its rollover point. The cause seems to be "uint32_t timeout = HAL_GetTick() + Timeout", which causes an error of the comparison "HAL_GetTick() >= timeout". With a 1ms resolution the error happens after 49 days, which could cause a serious problem in real systems. It would be nice, if this could be corrected.

best regards

Thomas

Outcomes