Bonjour, j'essaie de graver la séquence d'initialisation sur un atmega328P-U via un arduino nano.
J'ai bien envoyer le programme ArduinoSPI vers le nano et le câble fonctionne bien.
le branchement est le suivant :
Nano : D13 vers Pin19 SCK (Atmega328P)
Nano : D12 vers Pin18 MISO (Atmega328P)
Nano : D11 vers Pin17 MOSI (Atmega328P)
Nano : D10 vers Pin1 RESET (Atmega328P) + PullUP 10k
Nano : 5V vers VCC (Atmega328P)
Nano : GND vers GND (Atmega328P)
J'utilise le gestionnaire de carte miniCore.
Donc j'ai toujours l'erreur suivante :
> Erreur lors de la gravure de la séquence d'initialisation.
> Reading | ################################################## | 100% 0.02s
>
> avrdude: Device signature = 0x0000ff
> avrdude: Expected signature for ATmega328P is 1E 95 0F
> Double check chip, or use -F to override this check.
Par contre a chaque fois que j’essaie pour la première fois un nouveau atmega328P :
> avrdude: Version 6.3-20201216
> Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
> Copyright (c) 2007-2014 Joerg Wunsch
>
> System wide configuration file is "C:...avrdude.conf"
>
> Using Port : COM3
> Using Programmer : stk500v1
> Overriding Baud Rate : 19200
> AVR Part : ATmega328P
> Chip Erase delay : 9000 us
> PAGEL : PD7
> BS2 : PC2
> RESET disposition : dedicated
> RETRY pulse : SCK
> serial program mode : yes
> parallel program mode : yes
> Timeout : 200
> StabDelay : 100
> CmdexeDelay : 25
> SyncLoops : 32
> ByteDelay : 0
> PollIndex : 3
> PollValue : 0x53
> Memory Detail :
>
> Block Poll Page Polled
> Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
> ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
> eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
> flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
> lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
> hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
> efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
> lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
> calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
> signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
>
> Programmer Type : STK500
> Description : Atmel STK500 Version 1.x firmware
> Hardware Version: 2
> Firmware Version: 1.18
> Topcard : Unknown
> Vtarget : 0.0 V
> Varef : 0.0 V
> Oscillator : Off
> SCK period : 0.1 us
>
> avrdude: AVR device initialized and ready to accept instructions
>
> Reading | ################################################## | 100% 0.02s
>
> avrdude: Device signature = 0x1e950f (probably m328p)
> avrdude: erasing chip
> avrdude: reading input file "0x3f"
> avrdude: writing lock (1 bytes):
>
> Writing | ################################################## | 100% 0.02s
>
> avrdude: 1 bytes of lock written
> avrdude: verifying lock memory against 0x3f:
> avrdude: load data lock data from input file 0x3f:
> avrdude: input file 0x3f contains 1 bytes
> avrdude: reading on-chip lock data:
>
> Reading | ################################################## | 100% 0.00s
>
> avrdude: verifying ...
> avrdude: 1 bytes of lock verified
> avrdude: reading input file "0b11111101"
> avrdude: writing efuse (1 bytes):
>
> Writing | ################################################## | 100% 0.03s
>
> avrdude: 1 bytes of efuse written
> avrdude: verifying efuse memory against 0b11111101:
> avrdude: load data efuse data from input file 0b11111101:
> avrdude: input file 0b11111101 contains 1 bytes
> avrdude: reading on-chip efuse data:
>
> Reading | ################################################## | 100% 0.00s
>
> avrdude: verifying ...
> avrdude: 1 bytes of efuse verified
> avrdude: reading input file "0b11010111"
> avrdude: writing hfuse (1 bytes):
>
> Writing | ################################################## | 100% 0.03s
>
> avrdude: 1 bytes of hfuse written
> avrdude: verifying hfuse memory against 0b11010111:
> avrdude: load data hfuse data from input file 0b11010111:
> avrdude: input file 0b11010111 contains 1 bytes
> avrdude: reading on-chip hfuse data:
>
> Reading | ################################################## | 100% 0.01s
>
> avrdude: verifying ...
> avrdude: 1 bytes of hfuse verified
> avrdude: reading input file "0b11110111"
> avrdude: writing lfuse (1 bytes):
>
> Writing | ################################################## | 100% 0.02s
>
> avrdude: 1 bytes of lfuse written
> avrdude: verifying lfuse memory against 0b11110111:
> avrdude: load data lfuse data from input file 0b11110111:
> avrdude: input file 0b11110111 contains 1 bytes
> avrdude: reading on-chip lfuse data:
>
> Reading | ################################################## | 100% 0.01s
>
> avrdude: verifying ...
> avrdude: 1 bytes of lfuse verified
>
> avrdude done. Thank you.
>
>
> avrdude: Version 6.3-20201216
> Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
> Copyright (c) 2007-2014 Joerg Wunsch
>
> System wide configuration file is "C:\.../avrdude.conf"
>
> Using Port : COM3
> Using Programmer : stk500v1
> Overriding Baud Rate : 19200
> AVR Part : ATmega328P
> Chip Erase delay : 9000 us
> PAGEL : PD7
> BS2 : PC2
> RESET disposition : dedicated
> RETRY pulse : SCK
> serial program mode : yes
> parallel program mode : yes
> Timeout : 200
> StabDelay : 100
> CmdexeDelay : 25
> SyncLoops : 32
> ByteDelay : 0
> PollIndex : 3
> PollValue : 0x53
> Memory Detail :
>
> Block Poll Page Polled
> Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
> ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
> eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
> flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
> lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
> hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
> efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
> lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
> calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
> signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
>
> Programmer Type : STK500
> Description : Atmel STK500 Version 1.x firmware
> Hardware Version: 2
> Firmware Version: 1.18
> Topcard : Unknown
> Vtarget : 0.0 V
> Varef : 0.0 V
> Oscillator : Off
> SCK period : 0.1 us
>
> avrdude: AVR device initialized and ready to accept instructions
>
> Erreur lors de la gravure de la séquence d'initialisation.
> Reading | ################################################## | 100% 0.02s
>
> avrdude: Device signature = 0x00ff00
> avrdude: Expected signature for ATmega328P is 1E 95 0F
> Double check chip, or use -F to override this check.
>
> avrdude done. Thank you.
Voila je ne comprend pas pourquoi ça ne fonctionne pas j'ai vérifier 10 fois mon câblage plus changer les fil.
