I'm having a strange problem with AtmelStudio. I took a few screenshots:
Here, atmel studio is open and I check the project settings. ISP Clock is set to 125kHz. This is good.
I also check the setting in device programming (Tools -> Device Programming). 250kHz is fine. Reading out the signature is no problem and I can even program the device here under Production File.
So all looks good, I hit F5 to compile and run the program, and this happens. Ouch, unexpected device signature 0x00000000.
At this stage I'm confused. Communication with the device worked perfectly just before. Going into Tools -> Device Programming reveals what happened. The ISP clock is set to 1MHz! Too high for the chip. Obviously reading the signature here fails.
What exactly is happening? Why is AtmelStudio changing the ISP Clock of the programmer? Or where is the 1MHz coming from, is there some config I've overlooked?