Debug problems with STM32F030 Posted by electr0dave on 2017-03-27 14:02 If I remove these lines, I get all that crap like this: Error erasing flash with vFlashErase packet, etc... But I'll try again sooner your suggestion. The uwTick variable is inside the Hal_GetTick() and this is where the program is retained.