2020-07-11 06:35 AM
A section of my code is CPU intensive and is starting to affect user interaction. I need to optimize this part, or build it optimized and upload it into the device from the IDE.
I know how to upload code using the STM32CubeProgrammer, but using 2 UIs in this manner during development is not productive.
I would like to configure a run target in the IDE, I am surprised it does not exist out of the box. Does anyone have pointers? FYI, I am using a STM32G031j6.
2020-07-11 07:08 AM
In the menu, choose Project -> Build Configuration -> Set Active -> Release
2020-07-11 08:27 AM
That does the same thing as selecting "release" under the hammer icon. I have been able to build optimized, but how do I send it to the MCU?
2020-07-11 09:43 AM
2020-07-11 10:00 AM
The run button has no defined configuration:
2020-07-11 10:08 AM
That's the "External Tools" button. The run button is different, and hidden from your view.
It looks like you're on an old version of STM32CubeIDE which did not have the run button functionality. The latest is v1.3.1.
The "Debug" button will also upload the current configuration to the device.
2020-07-11 11:02 AM
I updated to the latest version.
The download page doesn't show the latest version in the drop-down, but if you click the link, you get it.
Thanks, I have my button now.