In a method of detecting a fault attack in a secure memory device, payload data is initialized by determining whether the payload data is consistent. The transition region acts to change the structure from the underlying substrate to that of the bulk crystal. Uniform and excellent erosion resistance is achieved throughout the reinforced partition wall part. An enlarged portion 8 is formed, which is in the form of a chamfered portion with a peripheral slope formed at an opening portion of the hole 7.