By default, the flashing process only writes what's currently being flashed to its destination, leaving other areas of the memory untouched.
The T5UID1.CFG
file provided here will erase the touchscreen onboard memory before the flashing process starts.
It is recommended to use this file when coming from a different touchscreen firmware.