Arduino ic fake or real

Is that for the DIP chip or the other one?

The DIP clearly states that it's a 328, not a 328P. So you can't program it as being a Nano or Uno; you will need to install another core, e.g. GitHub - MCUdude/MiniCore: Arduino hardware package for ATmega8, ATmega48, ATmega88, ATmega168, ATmega328 and ATmega328PB.

I thought that the output actually also printed the detected signature.

  1. If yes, please provide it. All zeroes or all 'F' usually indicate wiring errors.
  2. If not, please enable verbose output during upload and disable verbose output during compilation and post the output here (please don't forget to use code tags when posting the error).

I purchased 2 chips one is DIP(atmega328) and another is TQFP(atmega328p tw), I tried both they showed the same error in both during burning bootloader.

Whilst you may think that the 2 chips are the same, they are not. The ATMEGA328P should be easily programmed with suitable circuitry to support it as it is the same chip that is used in the UNO - just different physical packaging.

If you are having problems programming this chip (i.e. the ATMEGA328P), then, as already asked, please show us the verbose output of the upload process as well as a schematic of the circuit it is being used in.

Regarding the ATMEGA328 chip, you will need to use a different core. Follow the link that was given to you in post #21 to read up on how to install it - the section "How to install" tells you what to do.

Now I want to upload the bootloader in atmega328p-tw(TQFP), and the error window is in the attachment image.


A couple of things:

To turn on verbose output on upload, in the IDE menu go to File -> Preferences and check the box next to "show verbose output during upload".

Remove the SD Card reader module as that will likely be interfering with the SPI signals.

i follow up the #21 post step and I got the error

Blockquote"C:\Users\prade\AppData\Local\Arduino15\packages\MiniCore\tools\avrdude\7.1-arduino.1/bin/avrdude" "-CC:\Users\prade\AppData\Local\Arduino15\packages\MiniCore\hardware\avr\2.2.2/avrdude.conf" -v -patmega328p -cstk500v1 -PCOM3 -b19200 -e -Ulock:w:0xff:m -Uefuse:w:0b11111111:m -Uhfuse:w:0b11010111:m -Ulfuse:w:0b11110111:m

avrdude: Version 7.1-arduino.1
Copyright the AVRDUDE authors;
see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

     System wide configuration file is C:\Users\prade\AppData\Local\Arduino15\packages\MiniCore\hardware\avr\2.2.2\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             : possible i/o
     RETRY pulse                   : SCK
     Serial program mode           : yes
     Parallel program mode         : yes
     Timeout                       : 200
     StabDelay                     : 100
     CmdexeDelay                   : 25
     SyncLoops                     : 32
     PollIndex                     : 3
     PollValue                     : 0x53
     Memory Detail                 :

                                       Block Poll               Page                       Polled
       Memory Type Alias    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    1      0  4500  4500 0x00 0x00
       hfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
       efuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
       lock                    0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
       signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
       calibration             0     0     0    0 no          1    1      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
avrdude: device signature = 0x000000 (retrying)
avrdude: device signature = 0x000000 (retrying)
avrdude: device signature = 0x000000
avrdude main() error: Yikes! Invalid device signature.
avrdude main() error: expected signature for ATmega328P is 1E 95 0F
Double check connections and try again, or use -F to override
this check.

avrdude done. Thank you.

Failed chip erase: uploading error: exit status 1

Did you remove the complete SD card module?

And by normal procedure I got this error:

Blockquote"C:\Users\prade\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\prade\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -patmega328p -cstk500v1 -PCOM3 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m

avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "C:\Users\prade\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/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.03s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.

avrdude done. Thank you.

Failed chip erase: uploading error: exit status 1

Blockquote

yes

Is there anything else connected to the SPI interface pins on your board?

Can you show us a schematic?

I'd also check the soldering as well. The pushbutton SW1 in the middle of the board doesn't look like it is positioned correctly.

Has this board worked correctly in the past?

Hi, @pradeepetce

Can you please post your schematic?
Can you please post your PCB pattern?

Thanks... Tom.. :grinning: :+1: :coffee: :australia:

No, there no nothing else connected to SPI interface. This is a new circuit board, the board is working for a long time, we just assemble all components on the board and a new ic. I checked the hardware by lens for shorting and quality test, seems all good. I am sharing the schematic file of the circuit. please Go through it.
Data Logger SCH.pdf (866.4 KB)

I have only the schematic file in pdf now. For the PCB file, we need to wait because my laptop is in the service center for repair, and all data about this card is on that laptop.

Sorry, but that is a PCB design schematic, nothing is connected, its a search-a-word puzzle.

To troubleshoot you need a complete CONNECTED circuit diagram, showing power and signal connections.

Thanks.. Tom... :grinning: :+1: :coffee: :australia:

Those 2 statements contradict eachother!

If C8 and C13 are really 100nF then I wouldn't expect the crystal circuit to oscillate.

If the crystal circuit isn't oscillating, then once the fuses are programmed for an external clock source, then the 328P won't run and you cannot use the ICSP interface to reprogram it either.

The capacitors should be in the pF range, maybe between 10pF and 30pF but see the crystal datasheet for the value for your crystal.

Thank you, In the previous board it worked properly, I think all is ok but, Previous chip's serial number is different. When I removed the 100nF cap, the boot loader burned successfully.