This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unable to Debug with STM32F407G-Disc Board in Keil 32KB limited edition

Hi,
I am using STM32F407G-Disc1 board i have purchased recently from element14, When i try to compile and the example program IO_Toggel,
1) Program never gets flashed into the Controller.
2) When i insert a break point i could find that the controller is resetting frequently just before entering the while(1) loop..
3) I am in badly need of help pleas help ASAP.
4) I am using Keil 5.20 32KB code limit Version.

Regards
Mahesh Prasath

Parents Reply Children
  • Hi Sankalp Agarwal,
    Thanks for the reply,
    I connected the Discovery board and opened the example \en.stsw-stm32068\STM32F4-Discovery_FW_V1.1.0\Project\Peripheral_Examples\IO_Toggle\MDK-ARM

    Steps is followed

    Connected the Discovery board, did not do any changes to the project setting. Complied the program, clicked the start debug button four LEDS was blinking, I just modified the code to blink only one LED and again complied and clicked on the start debug option now, the old program only executes i.e four led blinking. When i insert a break point program never hits it, but if a insert a break in the beginning of the program the break point always hits this confirmed me that the controller is resetting.

  • Hi Sankalp,
    I refereed the documents in the link you shared every thing look ok. But still issuse is not resolved.
    I do not get any error message, i am simply unable to debug and flash a new program through Keil debug option.

    Regards
    Mahesh Prasath

  • Make sure you pick debug, and select that it updates the target. You can also explicitly flash the device via the menu option with that name.

  • Hi Pier
    Thanks for all your help, it works now after updating the install packs and choosing the correct flash algorithm in the debug menu, also the SW to be selected in the debug tab.