Maybe stupid but have you selected the correct microcontroller?

Ioannis