FIG. 7 is a graph illustrating how the quantity of holes trapped in the surface region (i.e., near the floating gate electrode 5) of the tunnel insulating film 4, which is formed by patterning the silicon oxynitride film 4 y of the third embodiment, depends on the nitrogen diffusion temperature.