ここでは簡単に説明します。それで、Arduino UnoからAtmega328pマイクロコントローラーを入手しました(ボードから引き出しました)。そして、MCU をプログラムするために USBASP プログラマ チップを購入しました。x64ドライバーを適切にインストールしました。次に、LED をオンにするプログラムを作成しました。正常にコンパイルされ、hex ファイルが適切に生成されました。しかし!MCU をプログラムしようとすると、次のようなエラーが表示されます:-
エラーログ:-
avrdude -p atmega328p -P usb -c usbasp -U flash:w:LEDON.hex
avrdude: error: programm enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
make.exe: *** [program] Error 1
次に、問題をより深く知るために -F パラメータを使用してプログラムしようとすると、次のエラーが発生します。
avrdude: error: programm enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude done. Thank you.
私はすべてを試しましたが、何も機能していません。Windows 10 x64 OS で WinAVR を使用しています。希望があればコードも載せます。また、MOSI、MISO、SCK、RST、Vcc、および GND 接続を再確認しました。彼らは完全に元気です。