There will be two versions of the device I'm designing. One of them has a feature that's not included in the other one.
I'd like to use the same firmware for both, but use a configuration parameter stored in EEPROM to define whether the feature is enabled or not.
I know that there is an option to program EEPROM in the device programming tool of Atmel Studio 7. Therefore I need separate .hex files for both configurations. Then I could configure the the device by programming either one of the files to the EEPROM.
Would this be a good way to achieve this? How can I produce the .hex files needed?