STM32CubeIDE config for multiple projects sharing a HAL-like layer?
Greetings. I'm trying to use the IDE to have builds of a common app for several of the L0/G0 lines, both to leverage my code from an older other-party SoC as well as compare STM32 low-power solutions against one another.
E.g. allow the IDE/MX to continue generating the Core/Driver/ThirdParty tree for each STM32 chip and have the main() user "while(1) {}" become "app_init(); app_main();" for all of them (ideally.) With some one-time #defines and path additions as part of each chip's project, I think this is not unusal.
From what I have learned so far, this would be straightforward if the shared/common code could compile into a shared library, but what I want to do requires compile-time access to each chip's Core/Inc world. I can't trick Eclipse into "reaching up and over" during compile, and I hope it's only my ignorance that's stopping me.
I am not strong in Eclipse, so forgive me if this is a direct application of resources that I have not yet grasped. Any simple example, wiki, GitHub showing this arrangement will be a wonderful tutorial for me.
