Save & Restore configuration question

Does ODrive retain the configuration for axes and motors if a new version of the firmware is flashed, or does everything get erased and reloaded?