Error in burning bootloader to Atmega328P || NEED HELP!!!
i brought an ATmega328P MCU with arduino bootloader.And programmed it few times. Worked without any error. But, once i tried to upload a program to it, it won't upload. and i checked the blinking of 13 rd pin won't blinking when reset. So, i thought bootloader is missing and tried to upload bootloader. But get some error. Help please. Error message given below
Arduino: 1.8.12 (Linux), Board: "Arduino Uno" /snap/arduino/7/hardware/tools/avr/bin/avrdude -C/snap/arduino/7/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -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-20190619 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch System wide configuration file is "/snap/arduino/7/hardware/tools/avr/etc/avrdude.conf" User configuration file is "/home/shahid/snap/arduino/7/.avrduderc" User configuration file does not exist or is not a regular file, skipping Using Port : /dev/ttyACM0 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 | Error while burning bootloader. ################################################## | 100% 0.02s avrdude: Device signature = 0x00ff00 avrdude: Expected signature for ATmega328P is 1E 95 0F Double check chip, or use -F to override this check. avrdude done. Thank you.
when i connect an external supply during bootloader burning the device signature shows as 0x00ff00. and when i connect power to ic from arduino uno 5v pin the device signature is 0x000000
manthan555 last edited by
In simple way to say your Atmega328p is damaged somehow don't know what happened exactly but you know what's last thing you have done with it...
If you have external USBASP programmer then use sinaprog software and ARDUINO ISP programming.. use this software and just check wether it indentify your atmega328p or not...if not then surely you damaged it...
Also first thing to check is disconnect your atmega328p from Arduino and join the RX TX pins by jumper and open serial monitor and type anything and you will echo back what you have typed.. if yes then sure your atmega328p is damaged if no then your serial is crashed but may be your mcu is working but uno can't program by serial pins...
If you might think that reset is no happened then check reset pin by manually resetting by gnd to reset jumper willingly to do repeated might seem 13 led blinks if not then sure mcu is damaged...
One another thing or you can say tweak is to renew your mcu by luck of chance doing this...
Remove your atmega328p from board
Give a 16Mhz crystal externally
Connect external reset capacitor and resistor with reset circuit..
Give VCC and ground...
Connect reset properly..
If you have usb external programmer then connect it with ISP pins to atmega328p and now check it whether it identify it or not...
You can use uno board also with direct RX TX pins + reset pin + external crystal may you try it..
If all fails go to market and buy new atmega328p or UNO
manthan555 last edited by
Also if may possible that you change the programmer type.. just check it correctly configured or not..
I forget to say this..
@rafitc99 I changed the buffer and that solved the problem. Thanks a lot for coming to my rescue.
@salmanfaris I did change the buffer size and everything is working perfectly. Thanks coming to my rescue.
I am using the hardware serial (pin 0 and 1 on Arduino Uno)
As @rafitc99 mentioned, you need to expand the Serila buffer, in the hardware serial also the Arduino board package implements a 64-byte ring buffer for send and receive on the hardware serial messages. So you need to change that to 256 as per your message length.
@rafitc99 The thing is that I am not using the SoftwareSerial library in receiving the message from the first microcontroller. I am using the hardware serial (pin 0 and 1 on Arduino Uno)