Hello everyone;
I am developing one project in which i have used ATMEGA328 (TQFP package) and before i upload my sketch in to it i want to burn the bootloader. i have tried to burn the bootloader from ARDUINO UNO as i do have any programmer with me. i am using ARDUINO IDE 2.3.2
my project consist of a ATMEGA328 (TQFP package) as well as ATMEGA16U2-MUR
I have connected ARDUINO UNO (ICSP Header )pins and ATMEGA328 pins in following manner.
Let's have a look at:
1: A schematic of your project
2: Clear photos of how you have everything wired up
3: If applicable, clear images of all layers of the PCB layout you've made
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.
This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.
Thanks in advance for your cooperation.
I don't think that's right. Pin 1 on the UNO is the RST of the 328P on that board. You want to be able to have the UNO 328P reset the target / slave 328PB. You can't do that the way you have it connected. Please see the notes on the reset connection here: https://docs.arduino.cc/built-in-examples/arduino-isp/ArduinoISP/
Also double check the ICSP pin header pinout on the device as it's built; it's easy to get the orientation flipped somewhere in the process.
Your schematic + PCB layout look very decent indeed; I've not checked everything, but the aspects I did verify (mostly the 328PB RESET and SPI connections) looked fine. It's more or less an UNO clone, right?
definitely wrong. You have to get the reset of the target connected to a gpio of the "programmer" uno, not reset to reset. Usually Arduino pin 10...
(yes, this prevents you from being able to use the "obvious" 6-pin to 6-pin connector....)
i have done necessary changes in the wiring as well on programmer board (ARDUINO UNO) and target board (custom board). i have successfully uploaded the sketch of "Arduino as ISP" and i have connected reset pin of target board to D10 as well as D6 (i have done changes on line 73 to make reset pin 6).
after that i have selected the target board and changed the port and selected the board (Arduino UNO) and then i clicked on "burn bootloader" but in both the attempt i am getting an error message related to "Chip erase"
Error message:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x03
Failed chip erase: uploading error: exit status 1
what mistake i am doing can anybody please suggest me?
That would indicate that your computer is not communicating with the Uno programmer.
Do you have the correct port selected?
Do you have Programmer: "Arduino as ISP" selected?
yes sir, i have selected the proper port and verified two times as well as "Arduino as ISP" was also selected. in fact i have tried in another PC also but the results are the same.
i am planning to burn bootloader in one Arduino Nano which i have with me and then i will upload the sketch in to it with necessary changes.
If i succeed then i will redesign with everything with Arudino Nano on breadboard first and then on PCB.
Thank you once again sir for your kind support and help. Hopefully i will succeed this time but in case if i stuck anywhere then i will definitely take help from expert like you