Switching from Debug to Release mode - how do I push firmware to target (beginner question, am I doing something wrong?)
I am beginner with STM32CubeIDE 1.8.0 and am having trouble delivering release mode firmware to the attached target (STM32F0Discovery module, which is otherwise working well.)
I am now experimenting with switching from Debug (the default configuration of the project when it was first generated, beginning with STM32CubeMX) and Release (my goal) using the small hammer-like icon near the left end of the icon ribbon just below the main menu of STM32CubeIDE.
When I switch from debug to release this way, I can go to Project > Properties and see in the main pane C/C++ Build that Configuration has switched from Debug to Release [Active]. It is clear from the compiler/linker console messages that the text size of the resulting binary (elf) file is changing as expected between release (smaller) and debug (larger) configuration.
To download firmware to the target, I am always using Run > Run (I suspect this is my problem, but I'm not certain, hence my question.)
I think the previously generated debug binary is being sent to the target, rather than the more-recently built release binary (I've gone back and forth a couple of times changing something in the source code to see if the change propagates to the target.)
Is there a different method to push the built project's binary to the target when using release configuration?
Thank you for any advice, referrals to documentation, or requests for clarification.
