I have a project where I need to get 12 binaries. The only difference in the source that generates the binaries is a single, symbolic constant--MY_TIMESLOT.
I accomplished this by having a solution with 12 projects. Under Project Properties->Tool Chain-->AVR GNU C Compiler-->SYMBOLS, I added a entry for MY_TIMESLOT:
I did this for each of the 12 projects.
This has been working, but I think there might be a better way. Or, maybe I need some help on how to debug a selected project in a multiple project solution.
I can't seem to figure out how to tell Studio which project I want to debug. The only way I can seem to get things to work is to unload all projects except the one I want to debug.
I could create a custom makefile to do the the builds, but I'd still have to figure out how to tell Studio which binary I want to debug.
So, the questions:
1) Is the best way to accomplish what I want, or at least about as good as any other approach.
2) If not, what is a good alternative?
3) If this is a recommended way to use Atmel Studio (a separate project just to #define a constant), how to I specify which project to debug (other than closing 11 projects after opening the solution).