[help!!] unable to read device signature with my atmel ICE basic

Go To Last Post
26 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hello everyone,

i have a problem with my atmel ICE basic i recently bought from online shop. From what i have checked, the wirings are good and i got a good voltage reading and  it could read device signature for the first time successfully....but when i tried to read it for the second time (right after my first try), it failed to read, but voltage reading is still ok, and from the first time i tried the device the LED glows red and green color . Do you know what the problem actually is for my case? Is it my device that gets bricked or something?? thx before....

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You have to help us to help you. No idea what programming interface or chip you are using.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i am sorry i forgot to mention that....i use ATMEGA16A as the chip to be programmed by my atmel ICE...do you know what wrong is with my case?

Last Edited: Thu. Jun 8, 2017 - 02:57 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i use ATMEGA16A

And pulling another tooth... what programming interface? JTAG or ISP?

 

Maybe you may also want to post a diagram of you board.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i dont have the diagram of my board but the my board uses the same diagram as minimum system for ATMEGA16A in order to work...and i am using SPI for my connection...do you know what the problem is?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sorry for the late post

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

my board uses the same diagram as minimum system for ATMEGA16A in order to work

And where did you get this information from? You MUST have the diagram you copied from.

 

ie do you have ALL VCC, GND and AVCC connected correctly? Are you using supply bypass caps on those pins?

 

System LEDS meaning

 

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I ran into this problem with my atmega328P yesterday was i had connected the 10k pull up resistor( the minimum circuit for atmega 328p) to ground, instead of Vcc. So as a result the first time i would connect the atmel ice and read device signature perfectly fine. the second time it would fail. changing the resistor back to +vcc solved my problem. I am using a atmel ice basic programmer as well.

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

after looking inside my HD for some time, here is my board :

could you point out which is the problem on my schematics??
btw ignore the oscillator, i am using 11MHz to make it work..

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

could you show me how you connect it on your board?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If AVCC is not connected to power, then Port A will have no power.

I hope you have just omitted bypass capacitors for the mega16a in your schematic (as well as a cap for AREF).

How is JP12 implemented? And how are you connecting the atmel-ICE to it?

 

Edit the cap on Pin2 of the MAX232 should go to GND not VCC.

David (aka frog_jr)

Last Edited: Sat. Jun 10, 2017 - 11:40 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i am using 11MHz to make it work..

That's a crazy circuit! C2 should be going to ground like C1. Is C9 and D1 supposed to go to the reset pin?

 

Depending on the regulator type you MUST have bypass caps (usually 2 x 100nF) near the regulator , and see frog's comments above.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i am using the JP12 to program my chip directly, and there is no caps at AREF and i don't connect anything to AVCC, i just leave it as is...so do i have to connect AVCC to power source??
btw the programming works well when i use my old STK500-based programmer but after changing my programmer to atmel ICE this problem occurs..

btw what bypass capacitor do i have to omit from my circuit? that 10nF?
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i am using the JP12 to program my chip directly

So you are not using the normal 6way ISP header but using jumper cables? Are you using the squid cable that comes with the Atmel Ice?

 

so do i have to connect AVCC to power source??

You MUST, it powers up part of your chip. Without connecting it to VCC the power will find some internal paths and eventually destroy your chip.

that 10nF?

Do you understand what I said about the diagram? Is the reset circuit really wired that way?

 

What regulator are you using? If it's a 7805 you MUST put 100nf caps at it's input and output pins or it will go crazy and oscillate.

the programming works well when i use my old STK500-based programmer but after changing my programmer to atmel ICE this problem occurs..

Are you powering up the board via JP2? While the STK500 can provide power to the board the ICE does not.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

Last Edited: Sun. Jun 11, 2017 - 08:08 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i am sorry i am still newbie about this... yes the circuit is wired that way...btw i have removed 10nF capacitor and its connection to reset pin and no i don't power my device from JP2 but from 2 pin separated from JP2, VCC and GND on JP2 is only used as voltage detector....but still i am unable to detect my chip signature...maybe it is the order of my pin which is wrong?? since i am using jumper to connect my atmel ICE to the target device...do you know the right order of the 6 pin cable that comes with my atmel ICE? 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ok finally i almost solve my problem...now i can read my chip signature...but the problem now is i have to turn off and turn on the target again if i want to program or at least read the signature...do you know how to solve this issue? 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is your reset circuit still looking like in the schematic you posted above?

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

not anymore...i have removed the resistor and 10nF caps and short that caps to to connect the 2 22pf caps near XTAL..what should i do next?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Uncomprehensible. Draw a new schematic and show it here.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i have a same problem i think.First time read device signature correctly and program it.But second time it would fault.Can you explain it how to solve it?

Normally i use pull up resistor from RESET pin to VCC(10K) and connect 18pf capacitor from RESET pin to GND.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That is usually a symptom of incorrectly programmed fuses. The 18pf reset cap is probably so small as to be insignificant. But, if you programmed fuses for a crystal and do not have a crystal, or if you programmed it for an external oscillator but have a crystal connected, what you described will happen.

 

There are tutorials, here, on fixing this "issue".

 

Jim

 

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA http://www.orelectronics.net

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Jim,

 

my fuses and lock bits;

extended 0xFD

high 0xD9

low 0xFF

Lock bit 0xFC

CKSEL 8.0mhz 16k+65ms

i programmed fuses for a crystal and i have an 16mhz crystal with 18pfx2 capacitor

P.s: my crystal is 16 mhz and ground capacitors are 18 pf.And everything is correctly connection.Anyway i can program it for 1 time otherwise i think i would never programm it if i have a connection fail.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What device are you working with? M328P or something else?

 

Jim

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA http://www.orelectronics.net

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ka7ehk wrote:

What device are you working with? M328P or something else?

 

Jim

my chip is atmega2560 .Programmer atmel-ice.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do you have plenty of caps on your AVR power pins?  Where is your schematic?...no schematic=not much help.

 

Before you changed to use the crystal, did it program ok several times with no problem?  Did the problem start happening only after you selected the crystal mode?

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

avrcandies wrote:

Do you have plenty of caps on your AVR power pins?  Where is your schematic?...no schematic=not much help.

 

Before you changed to use the crystal, did it program ok several times with no problem?  Did the problem start happening only after you selected the crystal mode?

https://www.avrfreaks.net/forum/...

here is schematic