Hi guys,
sorry if the question has been already asked but I've looked for an answer on the forum without success.
I've read the ArduinoISP tutorial and I correctly uploaded the sketch on my Arduino DUE.
Then I've done the wiring between the Arduino DUE (the programmer) and my Arduino UNO clone (with an Atmega328P-U, the target micro).
The target micro is powered at 3.3V by the programmer (Arduino DUE).
I connected:
Arduino DUE pin (ICSP) <-> Arduino UNO pin
MISO <-> 11
MOSI <-> 12
SCK <-> 13
3.3 V <-> 5 V
GND <-> GND
10 <-> RESET
And now the questions:
- should I use the native or the programming port of Arduino DUE?
- should I modify the ArduinoISP sketch to use the SerialUSB virtual port (I've read it here but it could be outdated....)?
I've tried both the ports and I've tried also to change Serial with SerialUSB without success.
Using the native port and changing the ArduinoISP sketch (Serial with SerialUSB) I get this error:
/home/ervito/Scrivania/arduino-1.8.9/hardware/tools/avr/bin/avrdude -C/home/ervito/Scrivania/arduino-1.8.9/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyACM0 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m
avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/home/ervito/Scrivania/arduino-1.8.9/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/home/ervito/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyACM0
Using Programmer : arduino
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 : Arduino
Description : Arduino
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.00s
avrdude: Device signature = 0xffffff (probably .avr8x_mega) (retrying)
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0xffffff (probably .avr8x_mega) (retrying)
Errore durante la scrittura del bootloader
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0xffffff (probably .avr8x_mega)
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
In all other cases the programmer doesn't respond, so I think that I should use the native port and apply the modify to the sketch.
Have I done anything wrong?
Do you see any evident error?
I've checked the wires and done some attempts without success. Any suggestions?
Thank you in advance for your collaboration.
Regards
Marco