We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,I am working on a generic project targeting three different STM32 boards. To select the appropriate board, I am using #ifndef directives. My question is, how can I include and configure multiple startup files in Keil for this setup? Is it possible to do so, and if so, how can I properly configure them? Are there any limitations or considerations to be aware of when using multiple startup files for different boards?
#ifndef
Thank you in advance for your help!
It might be easier to create a new "target" inside the project: https://developer.arm.com/documentation/101407/0541/Creating-Applications/Project-Targets-and-File-Groups
Alternatively, you may have manually added in a startup file or some issue with how Cube generates the project.
I'd recommend using the Startup Component, alone, instead, from the device family pack. I think you can edit this for each separate target. Checking that box should automatically bring in the latest startup files, in a predetermined set, from the latest pack.