To avoid erase eeprom when download, please follow below steps:
- go to debug configuration, click on "edit":
- then click on “advanced programming options”
- it will open the dialog where you can specify areas to be preserved
see attached screenshot for these three steps.
Is this what you are looking for?