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 :
any idea how may solve this ?
thanks in advance !
Update
uC schematic
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– Wesley Lee2017年01月23日 21:23:07 +00:00Commented Jan 23, 2017 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– Engine2017年01月23日 21:25:33 +00:00Commented Jan 23, 2017 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– Wesley Lee2017年01月23日 21:27:19 +00:00Commented Jan 23, 2017 at 21:27
-
\$\begingroup\$ I can do it but I havn't soldered anything beside the RESET stuff \$\endgroup\$Engine– Engine2017年01月23日 21:28:15 +00:00Commented Jan 23, 2017 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– Wesley Lee2017年01月23日 21:29:45 +00:00Commented Jan 23, 2017 at 21:29
1 Answer 1
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...
-
1\$\begingroup\$ no problem, i've experience many similar problems when using avrs. Good luck with your circuit ;) \$\endgroup\$Douwe66– Douwe662017年01月23日 22:43:41 +00:00Commented Jan 23, 2017 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– Douwe662017年01月23日 22:47:18 +00:00Commented Jan 23, 2017 at 22:47