Good day,
I recently assembled a PCB on an ATMega328P-based microcontroller in my own design. I feel good in the circuit itself, since I managed to download the Arduino Blink sketch using the Sparkfun AVR Pocket Programmer.
After downloading this sketch, I noticed that ATMega is using its internal generator. I did not feel comfortable changing fuses, I tried installing the Arduino bootloader again through the Arduino IDE.
At this point, a number of errors were thrown, but the board began to use its external clock and run the Blink program correctly.
I can no longer upload another code to the chip, since I could not get AVRDude to work on my Mac, I installed AVRDude 5.1 on my Windows 8.1 PC.
Then I connected the device and sent:
avrdude -c usbtiny -p atmega328p
It just came back:
avrdude: Error: Could not find USBtiny device ( 0x1781/0xc9f)
Am I inadvertently skewed with the bits of the chip? How to save this chip?
UPDATE: I was able to install AVRDude 6.0.1, and now the error is being read:
avrdude: initialization failed, rc=-1
The full result can be seen here:

arduino avrdude atmega
user3185748
source share