• AVR Freaks

AnsweredHot!Failed to get Device ID.

Page: 12 > Showing page 1 of 2
Author
m_snaeem@hotmail.com
Starting Member
  • Total Posts : 76
  • Reward points : 0
  • Joined: 2020/07/10 10:54:03
  • Location: 0
  • Status: offline
2020/09/28 06:49:07 (permalink)
0

Failed to get Device ID.

Hello,
I have new board with PIC32MX795F512H designed along with other customs circuitry.
Now when i have done soldering of board with components  require to bias micro controller. 
But the micro controller is not detected. 
In refernece design there was 30pf capacitor connected on Crystal Oscilator and i have used 33 pf.
could this create problem????
How could i troubleshoot the problem.
Also The device is ESD sensitive so could it be possible that it is damaged due to static charge though i have wear ESD band which was connected to earth?
Thanks for your Sugeestions in advance.
#1
NorthGuy
Super Member
  • Total Posts : 6350
  • Reward points : 0
  • Joined: 2014/02/23 14:23:23
  • Location: Northern Canada
  • Status: online
Re: Failed to get Device ID. 2020/09/28 07:15:44 (permalink)
4.5 (2)
The crystal is not necessary for detecting Id or programming.
 
This is the schematics which shows the minimum that you need to connect for successful programming:
 
https://www.northernsoftw...mx/pic32mx795f512h.htm
#2
m_snaeem@hotmail.com
Starting Member
  • Total Posts : 76
  • Reward points : 0
  • Joined: 2020/07/10 10:54:03
  • Location: 0
  • Status: offline
Re: Failed to get Device ID. 2020/09/28 07:30:54 (permalink)
0
@NorthGuy Thanks for reply,
i have used almost every thing described in your link except C3 on MCLR pin which was not recommended in PICKIT 4 datasheet. 
and have used 10uF capacitor on VCAP which was recommended in datasheet.
 
 
#3
NorthGuy
Super Member
  • Total Posts : 6350
  • Reward points : 0
  • Joined: 2014/02/23 14:23:23
  • Location: Northern Canada
  • Status: online
Re: Failed to get Device ID. 2020/09/28 08:40:13 (permalink) ☄ Helpfulby DominusT 2020/09/28 13:03:11
4 (1)
m_snaeem@hotmail.com
i have used almost every thing described in your link except C3 on MCLR pin which was not recommended in PICKIT 4 datasheet. 
and have used 10uF capacitor on VCAP which was recommended in datasheet.



This should be Ok. The capacitor on MCLR is not necessary, at least when the programmer drives MCLR anyway. Most likely, something is not connected correctly, or there's a bad soldering. See if you get correct power to the chip, if you get voltage on Vcap, also observe if there's correct signaling on PGC/PGD pins and on MCLR when you try to program - measure directly on the PIC's pins.
#4
DominusT
Super Member
  • Total Posts : 1456
  • Reward points : 0
  • Joined: 2005/07/22 08:31:18
  • Status: offline
Re: Failed to get Device ID. 2020/09/28 12:56:48 (permalink)
0
Maybe you should share your schematic to try to understand what happens
#5
m_snaeem@hotmail.com
Starting Member
  • Total Posts : 76
  • Reward points : 0
  • Joined: 2020/07/10 10:54:03
  • Location: 0
  • Status: offline
Re: Failed to get Device ID. 2020/09/28 13:20:57 (permalink)
0
Please find attached pictures  which shows the view of my schematics

Attached Image(s)

#6
m_snaeem@hotmail.com
Starting Member
  • Total Posts : 76
  • Reward points : 0
  • Joined: 2020/07/10 10:54:03
  • Location: 0
  • Status: offline
Re: Failed to get Device ID. 2020/09/28 13:28:44 (permalink)
0
I have checked the voltages are correct at every  Power Pins and I have checked the continuity of Ground and 3.3V Pin with Ground and LDO output respectively. VCAP shows the voltage of several millivolts.
For AVDD and AVSS, Near LDO output, I have place 0-ohm resistor between AVDD and VDD also between VSS and AVSS to make it separate. Is this ok??? 
#7
ric
Super Member
  • Total Posts : 28660
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: online
Re: Failed to get Device ID. 2020/09/28 13:35:09 (permalink) ☼ Best Answerby m_snaeem@hotmail.com 2020/09/29 00:48:48
4.5 (2)
The programmer should be connected directly to the PIC's MCLR pin, not via the 1k resistor.
 

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#8
m_snaeem@hotmail.com
Starting Member
  • Total Posts : 76
  • Reward points : 0
  • Joined: 2020/07/10 10:54:03
  • Location: 0
  • Status: offline
Re: Failed to get Device ID. 2020/09/28 13:41:58 (permalink)
4 (1)
Ah ok
I have place 1K resistor as it was recommended in the datasheet. I will try to remove the 1k Resistor to the program again.
#9
Mysil
Super Member
  • Total Posts : 3796
  • Reward points : 0
  • Joined: 2012/07/01 04:19:50
  • Location: Norway
  • Status: offline
Re: Failed to get Device ID. 2020/09/28 14:41:52 (permalink)
4.67 (3)
Hi,
There is a misunderstanding in your interpretation of the datasheet,
maybe because connection of the programmer is not shown in datasheet in the same diagram.
When there is a Capacitor in the MCLR circuit, then a resistor between 470 ohm and 1kOhm,
is recommended between capacitor and MCLR pin.
As explained by ric,  programmer MCLR signal should be connected directly to MCLR pin.
The 1kOhm resistor serve as signal isolation against the capacitor, and eventual manual Reset switch,
and also have some other motivation.
 
When there is no capacitor and no manual reset switch, then 1kOhm resistor is not needed either.
10kOhm pull up should still be present.
 
    Mysil
post edited by Mysil - 2020/09/28 14:49:09
#10
NorthGuy
Super Member
  • Total Posts : 6350
  • Reward points : 0
  • Joined: 2014/02/23 14:23:23
  • Location: Northern Canada
  • Status: online
Re: Failed to get Device ID. 2020/09/28 15:55:41 (permalink)
4 (2)
There must be the core voltage on the Vcap pin (typically 2.5V) - this is the output of internal LDO regulator, and Vcap is the output capacitor for it. MCLR should be at Vdd when PIC runs. If you get zero at MCLR, the PIC is in reset.
#11
m_snaeem@hotmail.com
Starting Member
  • Total Posts : 76
  • Reward points : 0
  • Joined: 2020/07/10 10:54:03
  • Location: 0
  • Status: offline
Re: Failed to get Device ID. 2020/09/29 00:51:09 (permalink)
4 (1)
Thanks for the help Guy,
I have removed 1K series Resistor and capacitor and PIC get detected.....! 
#12
ric
Super Member
  • Total Posts : 28660
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: online
Re: Failed to get Device ID. 2020/09/29 05:45:19 (permalink)
5 (2)
m_snaeem@hotmail.com
Thanks for the help Guy,
I have removed 1K series Resistor and capacitor and PIC get detected.....!

You could have left them there, and just moved the programmer connection, which is what I actually suggested.

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#13
m_snaeem@hotmail.com
Starting Member
  • Total Posts : 76
  • Reward points : 0
  • Joined: 2020/07/10 10:54:03
  • Location: 0
  • Status: offline
Re: Failed to get Device ID. 2020/09/30 05:17:42 (permalink)
0
Ok Thanks for suggestion but i have complete board designed and PCB is also manufactured and soldering is done but for future i will be care ful.
Now the programming is done but code is not working even LED can"t blink.
Couls it be due to crystal. I have 33pF capacitor is connected but on the reference design it was 30pF.
Does this matter???
#14
ric
Super Member
  • Total Posts : 28660
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: online
Re: Failed to get Device ID. 2020/09/30 05:26:51 (permalink)
0
I doubt the capacitor value is the problem, although even 30pF sounds a bit higher than usual.
Can you try using the internal oscilliator temporarily, just to see if it will run that way?
 

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#15
m_snaeem@hotmail.com
Starting Member
  • Total Posts : 76
  • Reward points : 0
  • Joined: 2020/07/10 10:54:03
  • Location: 0
  • Status: offline
Re: Failed to get Device ID. 2020/09/30 05:34:10 (permalink)
0
Yes, but how to turn on internal Oscillator???
#16
NKurzman
A Guy on the Net
  • Total Posts : 18975
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: offline
Re: Failed to get Device ID. 2020/09/30 06:01:09 (permalink)
4 (1)
You set your oscillator in the Configuration Words. That includes the external one.
#17
m_snaeem@hotmail.com
Starting Member
  • Total Posts : 76
  • Reward points : 0
  • Joined: 2020/07/10 10:54:03
  • Location: 0
  • Status: offline
Re: Failed to get Device ID. 2020/09/30 06:46:14 (permalink)
0
I have enable internal oscillator in harmon as well but nothing happened. 
what should i do, as it programmed properly every time.
#18
DominusT
Super Member
  • Total Posts : 1456
  • Reward points : 0
  • Joined: 2005/07/22 08:31:18
  • Status: offline
Re: Failed to get Device ID. 2020/09/30 08:07:04 (permalink)
0
m_snaeem@hotmail.com
Ok Thanks for suggestion but i have complete board designed and PCB is also manufactured and soldering is done but for future i will be care ful.
Now the programming is done but code is not working even LED can"t blink.
Couls it be due to crystal. I have 33pF capacitor is connected but on the reference design it was 30pF.
Does this matter???


If you have an oscilloscope, use it to see if the crystal works. If you can debug, it implies there is a error in your code. Remove the capacitors and only with the crystal should the oscillator work.
#19
m_snaeem@hotmail.com
Starting Member
  • Total Posts : 76
  • Reward points : 0
  • Joined: 2020/07/10 10:54:03
  • Location: 0
  • Status: offline
Re: Failed to get Device ID. 2020/09/30 12:22:06 (permalink)
1 (1)
I have used an oscilloscope to check Crystal frequency but it shows zero levels even with the evaluation board it shows zero levels. I have removed the capacitor but still, it is not working.
Does Oscillator have polarity or not???


#20
Page: 12 > Showing page 1 of 2
Jump to:
© 2020 APG vNext Commercial Version 4.5