Error in burning bootloader to Atmega328P || NEED HELP!!!
shahidpk last edited by shahidpk
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..
shahidpk last edited by
@salmanfaris best if you could point me to an example that works as described: getting different values depending on hoe close the finger is without really touching. nothing i tried did work yet
@salmanfaris I haven't found a good sensor module for this at all. I used a thing which was calles touch sensor and it returns only 1/0. Tried to use touchRead() but it is not sensitive apparently, only 40 and 1 more or less.
#define touch_pin_numer 33
const int VALUE_THRESHOLD = 30;
TOUCH_SENSOR_VALUE = touchRead(touch_pin_numer);
if(TOUCH_SENSOR_VALUE < VALUE_THRESHOLD)
Serial.println ("Touch ON");
Serial.println ("Touch OFF");
should show something between 40 (current max) and 1 (current min) the closer the finger gets but it shows 40/41/39 and 1 - nothing inbetween. got this code from the web
@FlorianB Can you share the code, output window/error and details of the sensor module?
Hi! I am trying to add an capacitive sensor to the ESP32, that will work through glass with 3mm thickness and an distance of 8 to 2 cm. I have bought sensors which only work on touch, i have looked into the touchRead() function but cant get a steady value increase/decrease with distance and only a real touch gets me enough difference to count it as a "touch". I have checked Arduino examples with foil where a resistor can set the sensitivity but nothing worked on my ESP32. i have spent hours looking for an example, can somebody point me to one please?
Welcome to the Second edition of MakerGram Live, a newsletter where we pull together information about Interesting projects, Industry news, upcoming events, job opportunities and other interesting bits that you may find useful.
If you are a member of makergram, you already received a mail, please check your inbox or you can read from here: MakerGram Live | May 2020 Maker Update