A semiconductor device includes (a) a printed wiring board, (b) a semiconductor
chip mounted on the printed wiring board, (c) a molded resin formed on the printed
wiring board, covering the semiconductor chip therewith, and (d) at least one metal
wiring formed on the printed wiring board and extending externally beyond the molded
resin. The metal wiring is plated with a metal having a small adhesion force with
the molded resin. An interfacial surface between the metal and the molded resin
acts as a path through which moisture contained in the semiconductor device escapes
outside when the semiconductor device is heated.