A method of manufacturing a semiconductor device according to an aspect of
the present invention comprises forming a plated film on a substrate
which has a recessed portion on its surface so as to bury in the recessed
portion by a plating method; forming over the plated film a compressive
stress-applying film which is composed of a material having a thermal
expansion coefficient of 60% or less compared with a thermal expansion
coefficient of a metal composing the plated film; heat-treating while
applying a compressive stress to the plated film by the compressive
stress-applying film; and removing the compressive stress-applying film
and the plated film which is not buried in the recessed portion.