How do I configure STM32CubeIDE to upload optimized code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-11 6: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.
- Labels:
-
STM32CubeIDE
-
STM32G0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-11 7:08 AM
In the menu, choose Project -> Build Configuration -> Set Active -> Release
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-11 8: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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-11 9:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-11 10:00 AM
The run button has no defined configuration:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
