I am unable to program an ATtiny48 from within Atmel Studio 6.2 with the "Start Without Debugging" button. The error I get is:
Failed to launch program Error: Failed to start programming session before chip erase with eeprom preserve:Failed to enter programming mode. ispEnterProgMode: Error status received: Got 0xcc, expected 0x00 (Unknown status message)
This error I got after creating an empty GccApplication1, choosing the ATtiny48 and choosing the Atmel ICE programmer in ISP mode.
I tried reinstalling AS6.2 to no avail. The weird thing is, I can program the ATtiny48 using the "Device Programming" screen, so electrical connections should be OK.
When swapping the ATtiny48 (prod: 0850) with an ATmega48P (prod: 0802) in the same circuit, I can program it both with "Start Without Debugging" and also with the "Device Programming" screen.
I checked the programming speed. In both AS and the "Device Programming" screen it is 128KHz. I double checked fuses, they are the default.
So, why am I unable to program an ATtiny48 with "Start Without Debugging"?