With this semiconductor device, the distortion and cracking of a thinned
portion of a semiconductor substrate are prevented to enable high
precision focusing with respect to a photodetecting unit and uniformity
and stability of high sensitivity of the photodetecting unit to be
maintained. A semiconductor device 1 has a semiconductor substrate 10, a
wiring substrate 20, conductive bumps 30, and a resin 32. A CCD 12 and a
thinned portion 14 are formed on semiconductor substrate 10. Electrodes
16 of semiconductor substrate 10 are connected via conductive bumps 30 to
electrodes 22 of wiring substrate 20. Wiring substrate 20 is subject to a
wettability processing by which a region 26a that surrounds a region
opposing thinned portion 14 and regions 26b that extend to the outer side
from region 26a are lowered in the wettability with respect to the resin.
Insulating resin 32 fills a gap between outer edge 15 of thinned portion
14 and wiring substrate 20 in order to reinforce the bonding strengths of
conductive bumps 30.