Debug only works after chip erase in ST-LINK utility Posted by smn on 2017-06-15 17:44 I had the same problem and I solved it by lowering the WORKAREASIZE : set WORKAREASIZE 0x1000 Changing the debug clock frequency had no effect on the problem on my side. I am using : set CLOCK_FREQ 4000