atmega328PB upload bootloader problem

Hello. I need help to program an atmega328PB stick on a custom PCB. So an empty atmega328PB.

I search for many days, but nothing, I can't program this *** board ^^

So to do this, I use an UNO as ISP (sketch uploaded in), link it to the 328PB (mosi, miso, etc), select on the arduino IDE the "ATMEGA328PB" given by the minicore package.
After hitting "burn bootloader, I get this error :

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\PC\AppData\Local\Arduino15\packages\MiniCore\hardware\avr\2.2.2\avrdude.conf

     Using Port                    : COM3
     Using Programmer              : stk500v1
     Overriding Baud Rate          : 19200
     AVR Part                      : ATmega328PB
     Chip Erase delay              : 10500 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 ATmega328PB is 1E 95 16
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

I tried to use AVRDUDESS for doing that, but same error.

I don't know what to do now... after few days of research... It seems that the 328PB is not responding to the UNO (response 0x000000)

I wish I can learn the 328pb fuse, but I don't know how to do it

Can we really program an atmega328PB with arduino uno as ISP ? Is it only programmer like usbtinyusb which can do that ?

Do you have a crystal on your PCB?

yes

DTR goes to FT232RNL
image

yes also

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.