AnsweredAssumed Answered

WFI problem: Internal command error

Question asked by keepcoding on Sep 27, 2013
Latest reply on Sep 27, 2013 by Clive One
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?

Outcomes