Hi Alessandro,
write script in SEC Tool erases only memory needed for the application.
See in the write script:
@echo ### Erase memory before writing image ###
call "%blhost%" %blhost_connect% -j -- flash-erase-region 0x60000000 23868 9
if errorlevel 2 exit 2
The rest of the FLASH should be kept untouched.
Regards,
Marek
NOTE: If you find the answer useful, kindly click on [ACCEPT AS SOLUTION] button