Thanks! That's what I was doing wrong. I used the upload button instead of the menu option "Upload using programmer".