A semiconductor device includes: a semiconductor substrate that has an
integrated circuit, a passivation film formed above the integrated
circuit, and an electrode electrically connected to the integrated
circuit, the passivation film having an uneven surface, the electrode
having at least a portion exposed through the passivation film; a first
resin layer that is disposed on the passivation film; a second resin
layer that covers the passivation film and the first resin layer; and a
wiring that extends from the electrode to a first part of the second
resin layer above the first resin layer, the electrode passing on a
second part of the second resin layer above the passivation film.