Question
WFI problem: Internal command error
Posted on September 27, 2013 at 14:10
Hi
I run this very simple code on the STM32F3 Discovery board:int main(void)
{
__WFI();
return 0;
}
It compiles fine and I can flash it onto the STM without any problems (I'm using the ST-Link). However, when I want to flash the program again, I get the 'Internal Command Error'. This error is independent of the IDE and occurs even with the ST-Link Utility. I then have to select 'connect under reset' option in the ST-Link Utility and then erase the whole chip to get it working again.
Any ideas what might cause this problem?