2021-08-29 06:21 AM
How can I configure a Run configuration for flashing that doesn't also break and throw me into the debugger?
Note how all the relevant options in my Run configuration are greyed out. How can I enable them?
Solved! Go to Solution.
2021-08-29 07:25 AM
I accidentally found it. If you view the configurations via Run Configurations ... then the area above is greyed out. If you view configurations via Debug Configurations ..., then they are editable.
Way to go, STM32CubeIDE.
2021-08-29 06:34 AM
IRC the "default start address" in this context means that debugger resets the target and then lets it run freely, as it normally would after a reset.
Do you want a different behavior?
2021-08-29 07:07 AM
Thanks Pavel, but I'm talking about the greyed-out area below that. In particular, I want to disable the "Set breakpoint at" option.
2021-08-29 07:25 AM
I accidentally found it. If you view the configurations via Run Configurations ... then the area above is greyed out. If you view configurations via Debug Configurations ..., then they are editable.
Way to go, STM32CubeIDE.
2021-08-29 06:47 PM
Those options are grayed out because in a Run configuration, the debugger is not connected. If they're not grayed out, it's a Debug configuration.
2021-08-30 07:16 AM
Yes, I found out. It's just weird, since the page I arrive at is the same in both cases. Also, no matter which way I choose, I see both Run and Debug configs, making the current implementation not really intuitive.
2021-08-30 10:27 AM
Why is it weird that Debug-only options are grayed out in Run configurations?
2021-09-04 01:26 AM
Sorry for the late answer, but I couldn't log in earlier. :\
My point is that no matter if you select Run configurations or Debug configurations from the menu, you always see both configurations listed, but depending on your menu selection the options shown above are greyed out or not.
So the point is not that the Run config always has greyed out options (BTW, if that were the case, why would debugging be activated for a Run config?), but that the greying out depends on the way in.
2021-09-04 12:42 PM
I do not see both sets of configurations listed. Only debug or run, depending on what is selected in Run -> Run/Debug Configurations... The title of the popup correctly says Debug or Run Configurations in each case.
Note that a debug configuration can have the same name as a run configuration, but they are independent.
2021-09-05 02:02 AM
Oh, that is interesting. I wonder if I did something wrong when creating the configs. But then, either configs shows both configurations:
Also, both the Debug icon dropdown and the Run icon dropdown show both configurations.
I cannot remember if I created those configs in TrueSTUDIO, or if I had to re-create them in CubeIDE.