2015-10-05 09:12 PM
I have a new STM32F401 discovery board, but the on-board ST-LINK stops responding only after a few programming. It shows ''internal command error''. I have to press the reset button when I want to program/debug the code (for ST-LINK to recognize the board), and then have to release the button on-time to let it proceed to program/debug. So I guess the problem has something to do with resetting. I can connect and program the board through ''STM32 ST-LINK Utility'' software without difficulties. After a full chip-wide erase, the ''internal command error'' problem exists. So I think the problem is more related to ST-LINK side. I am using Keil 5.
How can I solve this problem? #stm32f4 #discovery #stlink2015-10-05 09:31 PM
Guess you'd want to double check the ''Connect and Reset Options'' for the debugger.
You'd want to avoid coding things that interfere with the SWD pins, or putting the device into a low power mode.2015-10-05 10:34 PM
Your answer really helps. I have a __WFI() call in the main() function. The ST-LINK works properly after I remove it. Thanks!