Skip to main content
Visitor II
October 6, 2015
Question

Reset problem on STM32F401 discovery board

  • October 6, 2015
  • 2 replies
  • 1036 views
Posted on October 06, 2015 at 06:12

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 #stlink
    This topic has been closed for replies.

    2 replies

    Graduate II
    October 6, 2015
    Posted on October 06, 2015 at 06:31

    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.

    eigenrootAuthor
    Visitor II
    October 6, 2015
    Posted on October 06, 2015 at 07:34

    Your answer really helps. I have a __WFI() call in the main() function. The ST-LINK works properly after I remove it. Thanks!