Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problem ICSP, of PIC24HJ64GP506 using ICD2

Status
Not open for further replies.

nusliqiang

Junior Member level 2
Junior Member level 2
Joined
May 5, 2006
Messages
21
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,410
icd0161

Hi,

Previousely, I design a circuit (5 pins and VDD, MCL isolated to supply during programming), and used ICD2 to ICSP program PIC16F877A, it is succesful.

I am using ICD2 to In-Circuit program the PIC24HJ64GP506 now (5 pins and VDD, MCL isolated to supply during programming), when I enter ICD 2, the "SUPPLY for ICD 5V" is not seletable. Does that because PIC24 use 3.3V not 5 V? But I also use 3.3V to my PIC16F877A which is succesfful.

The ICD 2 error msg is:
"...Reading ICD Product ID
Running ICD Self Test
... Failed Self Test. See ICD2 Settings (status tab) for details.
MPLAB ICD 2 Ready
"

Thanks and regards!
 

pic24fj icsp

For 3.3V devices you must have external power supply.
 

    nusliqiang

    Points: 2
    Helpful Answer Positive Rating
icd2 verify problem

potyo said:
For 3.3V devices you must have external power supply.

Wrong!!!

I´m programing PIC24HJ128GP506 with ICD2 only plugged on usb.... the board provides the 3.3V to the PIC.

PIC24 uses only 3.3V, no 5V avaiable. Only the I/O pins are 5V tolerant...
 

icd0161: verify failed icsp

Yes, ICD2 uses power from the USB, but the target must have it's own power supply.

Added after 2 minutes:

nusliqiang
Please post the contents of the Status tab here.
 

pic icsp 3.3v 5v

i though you were saying to use external power supply on ICD2...
 

    nusliqiang

    Points: 2
    Helpful Answer Positive Rating
icsp programming pgd2

Now, I change to add supply from the board 3.3V. The status all correct now, The device can be detected now:

"Setting Vdd source to target
Target Device PIC24HJ64GP506 found, revision = Rev 0x3002
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready "

But When I eras the part the error comes:

"Erasing Target Device... ...Erase Succeeded MPLAB ICD 2 Ready
Blank Checking... ICD0161: Verify failed (MemType = Program, Address = 0x20, Expected Val = 0xFFFFFF, Val Read = 0x0) ...Device not blank MPLAB ICD 2 Ready "

When I program the target, it also shows error:

"Programming Target... ...Erasing Part ...Programming Program Memory (0x0 - 0x87F) Verifying... ...Program Memory ICD0161: Verify failed (MemType = Program, Address = 0x80, Expected Val = 0x810, Val Read = 0xFFFFFF) ICD0275: Programming failed. MPLAB ICD 2 Ready "

I tried other ways, the program process seems always fail at address 0x80 and onwards;

One more thing, at the secure Segment option in the ICD2 Setting page, should I select "Full chip programming" or " Segement Programming" + ...

did anyone program PIC24HJ before? I attached my firmware code for reference.

Thanks !
 

icd2 for 3.3 devices

I´m programing PIC24HJ128GP506 with ICD2 only plugged on usb.... the board provides the 3.3V to the PIC.

PIC24 uses only 3.3V, no 5V avaiable. Only the I/O pins are 5V tolerant...

Could u Please give suggestions of my problem, since your chip is almost the same as mine
 

icsp lf 3,3v

i´m trying to make these errors ;)

I´ll let you know the reason soon ...
 

ic-sp-23

Rafael said:
i´m trying to make these errors ;)

I´ll let you know the reason soon ...


I attached my config and settings for your reference, is something wrong?
 

icd0161 pic24

These are the differences:


on the configuration bits:

Oscilator Mode : Primary Oscilator (XT, HS, EC ) w/ PLL
Internal External Switch Over Mode : Start up with FRC, then switch
Primary Oscilator Source : XT (I´m using 10MHz crystal to achive 40MHz)
POR Timer Value : 128 ms
Comm Chanel Select : Use PGC2/PGD2... (here you have to check your hardware of course)


On secure segment tab : Full Chip Programming

On program tab : Allow ICD2 to select memories and ranges


Let me know if it works...

Added after 5 minutes:

if it doesnt work, zip your entire project and send it to my email : ferrarezi@gmail.com


remove the secrets at your will ;)
 

icd2 connection pic24hj

Looking forward reply :)
 

icsp in pic24fj

Can the OP tell us if the problem was solved ?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top