Go Down

Topic: Atmega328p sketch upload issue (Read 172 times) previous topic - next topic

Mben1229

Oct 14, 2018, 06:00 am Last Edit: Oct 14, 2018, 06:05 am by Mben1229
I recently purchase a few atmega328p chips, I have successfully upload the optiboot uno bootloader to theses ic's, but now I am not able to upload the blink sketch, any help will be appreciated. Im not sure how to attach program code samples or the like, so im attaching the verbose compiler output that shows when i try to upoad the sketch.

        System wide configuration file is "C:\Documents and Settings\Owner\Local Settings\Application Data\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf"

         Using Port                    : COM4
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
         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: 3
         Firmware Version: 4.4
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "C:\DOCUME~1\Owner\LOCALS~1\Temp\arduino_build_280955/Blink.ino.hex"
avrdude: writing flash (928 bytes):

Writing | ################################################## | 100% 0.38s

avrdude: 928 bytes of flash written
avrdude: verifying flash memory against C:\DOCUME~1\Owner\LOCALS~1\Temp\arduino_build_280955/Blink.ino.hex:
avrdude: load data flash data from input file C:\DOCUME~1\Owner\LOCALS~1\Temp\arduino_build_280955/Blink.ino.hex:
avrdude: input file C:\DOCUME~1\Owner\LOCALS~1\Temp\arduino_build_280955/Blink.ino.hex contains 928 bytes
avrdude: reading on-chip flash data:

| ################################################## | 100% 0.34s
Reading
avrdude: verifying ...
avrdude: 928 bytes of flash verified

avrdude done.  Thank you.

sterretje

Does not look like it failed. Do I miss something ?
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

Mben1229

The breadboard hasva led attached to D13 it does not flash, also the ftdi programmer shows no activity and i get thecavrdude getsync error.

pert

The breadboard hasva led attached to D13
Are you certain it's connected to Arduino pin 13? That is different from physical pin number 13 (which is different depending on which package the IC is in). Arduino pin 13 is PB5.

i get thecavrdude getsync error.
You sure didn't in the output you posted. The output you posted shows a successful upload.

Mben1229

Thank you for your response,the led is connected to physical pin 19, Arduino D13, if the upload was successful as you stated, why wouldnt the ftdi show activity while the code is uploading and the led not blink, im totally puzzled, I have used the ftdi programmer on many occassions and it always shows rx\ tx activity when uploading.

pert

Is the lack of FTDI activity only on the uploads where you get the getsync error?

Mben1229

Thank You to who all who replied, the problem was choosing the wrong breadboard, I have 2 duplicates 1 with a bad or loose solder connection and its the 1 with the sync error the verbose output was from the 2 nd board that I hadnt put the led in place and wasnt paying attention to the ftdi when it was programmed, in short both atemega328p ic will accept the sketch ad blink the led, thanks for the response Shannon.

pert

I'm glad to hear you solved the problem. Enjoy!
Per

Go Up