User Activity

We are trying to erase a flash sector during reprogramming by using the flasherase() function provided by st. The flash erase function takes around 220ms causing the hardware watchdog reset. Any inputs?