a method for manufacturing a semiconductor device capable of improving properties during etching without degrading original properties of a doped oxide film as a hard mask includes a step of baking the doped oxide film after patterned but prior to etching . thereby , changes in configuration or shape upon etching caused by absorption of moisture is prevented .