2023-07-07 12:17 AM - edited 2023-07-07 01:41 AM
Hi,
I would ask about timeout value in HAL driver in flash module. There is set as 50 seconds. It's big value relative to embedded environment. There is any reason of this value? In context of option byte feature, how value i can accept? 1 ms, 100 ms?
2023-07-07 03:08 AM
Hello @Kamil Duljas,
Some operations such as a full chip erase take a long time. 50sec is safely above this amount of time.
Changing the timeout value isn't going to affect normal operations.
A flash operation should never timeout unless something is wrong.
Hope this helps!
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-07-07 03:50 AM
Ok, so it's about full chip erase. I use only option byte. Can I shrink safety this value from 50s to 100 ms for example?
In ST implementation FLASH_WaitForLastOperation() is used in all option bytes function. Is it necessary?