a method to control access to a sector of a flash type memory of an electronic module . the method includes receiving a write request to write data to an area of a partition , wherein the partition is located within the sector and , prior to writing to the data , determining whether an owner of the data to be written has write access to the partition of the sector and permission to erase the entire sector in which the partition is located .