I have a custom board based on the ATmega328. I want to program it usign Atmel ICE Basic ISP interface, to make sure that I'm connected to the target I've tried to read it ID, I get the following : enter image description here

Since uC isn't programmed before, and I'm using only Atmel Stuff to that I don't know where the problem is, and how may solve it. the uC is not wired to anything beside the Pull-up resistor and the and a capacitor as followed :

enter image description here

any idea how may solve this ?

thanks in advance !


uC schematic

enter image description here

the programer is connected to the SPI

  • \$\begingroup\$ Atmel ICE does not provide power to the MCU, you have to power it externally. The Vcc pin only serves to read target voltage. How are you powering your Atmega? \$\endgroup\$ – Wesley Lee Jan 23 '17 at 21:23
  • \$\begingroup\$ yes I did I've tried 3.3V which I need and 5V too, but didn't made a difference ! \$\endgroup\$ – Engine Jan 23 '17 at 21:25
  • \$\begingroup\$ Then I guess its time to post the full schematic and pics of what you assembled. P.s.: I think the DTR cap has to be in the order of 100nF, not 100pF. \$\endgroup\$ – Wesley Lee Jan 23 '17 at 21:27
  • \$\begingroup\$ I can do it but I havn't soldered anything beside the RESET stuff \$\endgroup\$ – Engine Jan 23 '17 at 21:28
  • \$\begingroup\$ Maybe check if your RST button is in the right orientation and not pulling RST to GND? Can't do much more than guess with the info given. \$\endgroup\$ – Wesley Lee Jan 23 '17 at 21:29

I think the pull-up resistor to your reset pin is connected on the wrong side of the DTR capacitor.

You'd probably want to connect it as below, although I didn't know about DTR until now...

enter image description here

  • 1
    \$\begingroup\$ no problem, i've experience many similar problems when using avrs. Good luck with your circuit ;) \$\endgroup\$ – Douwe66 Jan 23 '17 at 22:43
  • \$\begingroup\$ Made a quick correction to the circuit, the reset switch also needs to be on the side of the reset pin (if you want to be able to use it). \$\endgroup\$ – Douwe66 Jan 23 '17 at 22:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.