Skip to main content
ZZhi .1
Associate
August 12, 2021
Solved

Is there a setting that it won't download the program to mcu before debugging?

  • August 12, 2021
  • 2 replies
  • 948 views

Everytime to debug a program cubeIDE always downloads the program to mcu first no matter the program had not been modified since last download, is it possible to seting the IDE only downloads the program when the program has changed?

    This topic has been closed for replies.
    Best answer by TDK
    One option is to have the “Run�? configuration always download and run this prior to the “Debug�? if it needs updated.

    2 replies

    TDK
    Super User
    August 12, 2021

    No way you download only if changed since last download. You could create a script that did this, but it would take some effort.

    To debug your program without downloading it:

    Go to Debug Configurations... -> Startup -> select load image -> Edit... -> uncheck Download

    To debug without resetting the device:

    Go to Debug Configurations... -> Debugger -> in Reset Behavior, select "None"

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    Peter BENSCH
    Technical Moderator
    August 12, 2021

    To emphasize again: uncheck Download will not download a changed program to the target either, so that this option has to be activated again for a new download.

    In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
    TDK
    TDKBest answer
    Super User
    August 12, 2021
    One option is to have the “Run�? configuration always download and run this prior to the “Debug�? if it needs updated.
    "If you feel a post has answered your question, please click ""Accept as Solution""."
    ZZhi .1
    ZZhi .1Author
    Associate
    August 13, 2021

    Thank you very much, it works, that is what I need.