cancel
Showing results for 
Search instead for 
Did you mean: 

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

ZZhi .1
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions
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".

View solution in original post

4 REPLIES 4
TDK
Guru

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
ST Employee

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.
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".

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