Is there a way to make build variants in CUBEMX? For instance a variant that includes/doesn't include init of specific peripherals.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-07 12:49 PM
I have a base application, that will go into different product variants. I'd like to have a variant where some of the CUBEMX code is not compiled. As an example, one build where USB or Ethernet code is not included, because there won't even be HW on that model.
Has anyone done this before? I'm not seeing an obvious way to do this that won't just get deleted if I re-generate code...
- Labels:
-
STM32CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-07 1:04 PM
In advanced project settings choose to create separate files for each component.
Then create several build configurations in Eclipse and exclude certain files from build in some configurations.
-- pa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-07 1:17 PM
Simpler is only mark inits to not called
