 the lower-electrode contact hole 0 and the upper-electrode contact hole 0 are formed through the interlevel insulating film 0. Then, in order to recover and stabilize the crystal structure of the ferroelectric film constituting the capacitive insulating film 0, the capacitive insulating film 0 is subjected to a heat treatment within oxygen ambient. 