Patent ID: 7998781

Claim:
A method of manufacturing a semiconductor device comprising: forming a first resin layer on a wafer having a functional portion provided therein; patterning said first resin layer into a predetermined shape and forming a first resin portion on said functional portion or around said functional portion; dividing said wafer into elements; mounting said elements on an upper surface of a base; bringing a molding surface of a sealing mold into pressure contact with an upper surface of said first resin portion and a lower surface of said base, and injecting a second resin into a gap portion around said first resin portion among said gap portions surrounded by said molding surface of said sealing mold to form a second resin layer around said first resin portion; and removing said first resin portion to expose a portion of said element to the outside, wherein in said step of forming said second resin layer, the upper surface of said first resin portion is flush with the upper surface of said second resin layer, or the upper surface of said first resin portion is higher than that of said second resin layer, and wherein the upper surface of said first resin portion is higher than that of said second resin layer in the range of equal to greater than 0 mm and equal to or less than 0.05 mm.