• AVR Freaks

Hot!problem revert "power target circuit from ICD4" off

Author
stbnrivas
New Member
  • Total Posts : 18
  • Reward points : 0
  • Joined: 2020/01/03 11:43:47
  • Location: 0
  • Status: offline
2020/01/16 06:31:24 (permalink)
0

problem revert "power target circuit from ICD4" off

Hello, I have a pic24f and LAN ethernet (with leds) controller into the same PCB plugged in with power.  I disassemble because I needed access to program firmware easy access to pins.
 
MPLab
>  The configuration is set for  the target board to suply its own power no voltage has been detected on VDD. Please ensure you have your target powered up and try again
Connection failed.
 
I went to the project of Mplab > right button > Properties > ICD4 > Option Categories = "Power" > and set Power target circuit from ICD4 and now I can update the firmware,
 
The problem is that now the PCB don't boot unless
- that you have ICD4 programmer wire are connected
- if the option project is "power from ICD" is on in mplab
 - the target microchip boot when I start debug mode (Into MplabX button)
 
 
even  my supply energy is on from normal via. I updated the firmware with option "Power from ICD" OFF with the power from circuit but it doesn't work (led of ethernet don't work also)
 
It looks like the microcontroller, We are using the same PCB from 10 years ago with writing firmware with "set power target circuit from ICD3 or ICD4" without problems until now...
 
post edited by stbnrivas - 2020/02/28 04:10:45
#1

10 Replies Related Threads

    DevMod1
    Administrator
    • Total Posts : 532
    • Reward points : 0
    • Joined: 2009/02/10 09:34:30
    • Location: 0
    • Status: offline
    Re: problem revert "power target circuit from ICD4" off 2020/01/17 10:11:33 (permalink)
    0
    Make sure you connect the Vdd and Vss lines from your board to the ICD4, even though the board is powered the ICD4 needs to sense the Vdd so it can set the voltage properly for the pin drivers.  That is probably why you get the message "no voltage has been detected"

    _____________________________

    Please read the forum posting guidelines. Do not double post, please help keep these forums professional and comments respectful.
    Please notify the moderators of problems/spam/trolls.
    #2
    stbnrivas
    New Member
    • Total Posts : 18
    • Reward points : 0
    • Joined: 2020/01/03 11:43:47
    • Location: 0
    • Status: offline
    Re: problem revert "power target circuit from ICD4" off 2020/01/17 11:14:24 (permalink)
    0
    Hi, thank you so much for your answer. Smile: Smile
     
    the point is that PCB it is not a prototype and the both pins are connected and previously to change setting the PCB boot using his own energy and now only boot using the energy from ICD4...
     
    Thank you in Advanced
    #3
    ric
    Super Member
    • Total Posts : 28362
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: problem revert "power target circuit from ICD4" off 2020/01/17 23:45:01 (permalink)
    0
    Are you talking about "MPLAB", or "MPLABX" ?
    Which version?
     

    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!
    #4
    stbnrivas
    New Member
    • Total Posts : 18
    • Reward points : 0
    • Joined: 2020/01/03 11:43:47
    • Location: 0
    • Status: offline
    Re: problem revert "power target circuit from ICD4" off 2020/01/18 01:25:51 (permalink)
    0
    sorrry,  my fault... this is a MPLAB X IDE v5.25 working with xc16 and pic24fj128GB108
     
    Thank you for your answer
    #5
    stbnrivas
    New Member
    • Total Posts : 18
    • Reward points : 0
    • Joined: 2020/01/03 11:43:47
    • Location: 0
    • Status: offline
    Re: problem revert "power target circuit from ICD4" off 2020/02/27 07:59:40 (permalink)
    0
    more information it seems that configuration.xml can be guilty... all it working well in other machine with same hardware and option enabled :

    "Power" > and set Power target circuit from ICD4 and now I can update the firmware, enabled it works without problem

    when load the project MPLABX said me to update packname to resolve a new version from

    <pack name="PIC24F-GA-GB-DFP" vendor="Microchip" version="1.0.58"/>

    to

    <pack name="PIC24F-GA-GB-DFP" vendor="Microchip" version="1.0.67"/>


    leave the chip useless, Also try to revert to 1.0.58 but unsuccess the chip was unusable, only works with debug mode into mplab despite of have energy by hardware circuit.


    I can replace for other PCB without problem and all it works but I can not revert the chip again even rewriting the firmware....

    I also tried to reverting to 1.0.41 and 1.0.58 1.1.74 (with success changing the pack) via editing configuration.xml and resolve into MPLABX and rewrite again the firmware but the chip is useless, only with set Power target circuit from ICD4 get the chip work...

    any advice is welcome
    post edited by stbnrivas - 2020/02/27 08:13:26
    #6
    du00000001
    Just Some Member
    • Total Posts : 3943
    • Reward points : 0
    • Joined: 2016/05/03 13:52:42
    • Location: Germany
    • Status: offline
    Re: problem revert "power target circuit from ICD4" off 2020/02/27 08:24:11 (permalink)
    0
    Summarizing the above, I doubt that the power supply your this specific board is still sound and operational:
    if the Ethernet LED doesn't light up, it simply has no supply or is not activated.
     
    Time to start searching the bug on your hardware's side and not in the ICD side. I doubt you'll find it in/around the ICD. A good head start might be to unplug the ICD and start measuring the supply voltages while your board is supplied from the "usual power supply".

    PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
    #7
    stbnrivas
    New Member
    • Total Posts : 18
    • Reward points : 0
    • Joined: 2020/01/03 11:43:47
    • Location: 0
    • Status: offline
    Re: problem revert "power target circuit from ICD4" off 2020/02/27 08:36:24 (permalink)
    0
    thank you du00000001, I will try your advice first.
     
    I just checked the supply for the pic and it looks good VSS VDD +3V y GND. I would like to show the images... this is a hardware that are working for 10 years ago, the same way (writing firmware with Power supply from ICD Programmer ever) and this problems is new...
     
    Even I rescue a very old machine with MPLABX ancient and the problems continues
     
    Again thanks du00000001.
    post edited by stbnrivas - 2020/02/28 04:58:26

    Attached Image(s)

    #8
    stbnrivas
    New Member
    • Total Posts : 18
    • Reward points : 0
    • Joined: 2020/01/03 11:43:47
    • Location: 0
    • Status: offline
    Re: problem revert "power target circuit from ICD4" off 2020/06/08 06:50:42 (permalink)
    0
    hello finally it seem the external clock was the guilty.
    when you debug using ICD 3/4 the clock are in the programmer and it works... change the external clock did the magic

    thanks to all Smile: Smile
     
    #9
    ric
    Super Member
    • Total Posts : 28362
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: problem revert "power target circuit from ICD4" off 2020/06/08 13:28:42 (permalink)
    0
    stbnrivas
    hello finally it seem the external clock was the guilty.
    when you debug using ICD 3/4 the clock are in the programmer and it works... change the external clock did the magic

    I have no idea what you are trying to say.
    Are you talking about the programming clock (PGC), or the PIC's oscillator clock?

    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!
    #10
    stbnrivas
    New Member
    • Total Posts : 18
    • Reward points : 0
    • Joined: 2020/01/03 11:43:47
    • Location: 0
    • Status: offline
    Re: problem revert "power target circuit from ICD4" off 2020/06/09 01:21:54 (permalink)
    0
    hello I mean that changing the external oscillator in the PCB works, before to replace external oscillator the pic only works with ICD connected and debug. but after replace the external oscillator the PIC can boot normally...
     
    I can fix all the PCB broken and from now I ever program with external power (no ICD power) without problems...
     
    Thanks
    #11
    Jump to:
    © 2020 APG vNext Commercial Version 4.5