arduino nano clone is not working

Dear all,
In our lab, we are making a clone of an arduino nano. The website of the conception of the arduino is :

This clone is v3, which uses atmgea168-20AU microcontroler.

We have finished the building of this card, and now we try to burn a Sketch on it, but it is not working, we have this message when burning a skech :

avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Arduino/hardware/tools/avr/etc/avrdude.conf"

Using Port : COM29
Using Programmer : arduino
Overriding Baud Rate : 19200
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00

avrdude done. Thank you.

In the arduino IDE, we set the port com to the rignt port com where arduino is connected.

I choosed the following setting in the IDE arduino before burning

  1. Nano board,
  2. and Atmega168 microcontroler.
  3. and the port com 29.
    Note that when I try to burn a Sketch , I see the rx led of arduino is is blinking 3 time and then I see the folowing message:

prinf the error message:
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00

Note that when I used an official Nano, the burning is done whitout any problem, however with the nano clone one which we have made, it is not working.

I looked with my best all around this forum but I did not find a semilar problem, I will do appreciate any help to know why I have this issue ? And why I cannot burn a skech correctly.

(deleted)

I have tried to burn the bootloader with AVRISP mkII, with ATMEL studio, but the software gives me a message of « the divece is not recognized ». This message appears when I try to read the signature of the device.

So, I still have not succed to burn the bootloader.

I do not know why the device(nano clone which uses atmega168) is not recoginzed?

(deleted)

Dear all,
The burning of a Sketch is working via AVRISP, but still not working via the usb and arduino IDE for the nano clone device.

When a Sketch is burned with AVRISP to the clone nano device, and when I open the the serial port to see the messages, every thing works fine. All the messages that I have printed out the serial port are seen; and the Sketch works fine on the arduino clone device.

The problem I have is that I still cannot burn a program with the usb of the nano clone device. Also another problem linked to the usb arduino clone is: when I connect the clone nano to the computer via the usb: the usb of the nano clone is not recognized imediately. It shows me "unknown device" in the "printer and device". I take a lot of (re) plugin of the nano clone in order to recognize it and then attribute finaly a port com.

The error message shown on the arduino IDE (error messag when I try to burn a sketch via usb) is:


avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Arduino/hardware/tools/avr/etc/avrdude.conf"

Using Port : COM32
Using Programmer : arduino
Overriding Baud Rate : 57600
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv: . [e0]
avrdude: stk500_getsync(): not in sync: resp=0xe0

avrdude done. Thank you.

However, when the clone device is recongized, and when I burn a Sketch with IVRISP, everything works fine, and I can read all the messages that I printed out the serial port.

Could you please tell me why I can not burn a Sketch via the usb for the nano clone via the arduino IDE; and why the nano clone is not recognized imediatly?

(Note that for a normal nano (not a clone one) evrything works fine, the Sketch is burned fine and nano device is recognized fine also, via usb and AVRISP).

Thank you for your previous help.
Best regards,

Happy

(deleted)

1} Unless you have successfully burned a bootloader onto the chip using AVRISP, you simply cannot download sketches via USB.

2} You must have the auto-reset circuit correctly implemented, or else use manual reset immediately (and only momentarily) you see the "Compiled Sketch" message in the IDE.

3} Note what spycatcher2k said.

please you find attached the close up in focus photo of the board, and the manufacturer one too. I missed to add these photos for spycatcher2k.
As I mentioned, the problem consits of:
1 ) could not burn a Sketch with usb on the IDE interface. But the burning works fine with the AVRISP; and the Sketch works fine too once we burned it with AVRISP.

  1. We have a problem of a recognization of the nano clone device. To recognize the clone device, I had to plug-in the nano clone several times(and by miracle, the nano clone is recognized).

I have also tried to burn with avrdude command a ".hex" file generated by a compiled Sketch, but without success for the nano clone (for the normal nano, it works fine).

I do not know what is the problem? and how can fix these two issues.

Thank you in advance for your precious help.

Happy

board_photos.rar (2.6 MB)

I have resolved the issues:).
These is what I did for both (1) and (2) issues:

  • For the issue (1), to burn a cketch with IDE, I have first burned a bootlader with AVRISP on the nano clone. Onec this is done, I succed to burn a skecth on the IDE. Make sure to do not burn with AVRISP any other file other than the bootlader. Indded, the IDE needs this bootlader in the memory of arduino.

  • For the issue (2) , to recongnize the usb device, I burned the usb EEPROM with FT_Prog (this software is available on FTDI website), and then I changed the parametters: PID and the VID to 6001 and 0403, respectiveley. Before this modification, the PID and VID was set to 0, which causes the problem of Unknown device for w7.

I hope that this will help someone.
Thank you for all,
Best regards,

Happy