Skip navigation

community

386 Views 6 Replies Latest reply: Feb 28, 2012 7:34 AM by eng.cleber RSS
Currently Being Moderated

Dec 20, 2011 2:25 PM

I cannot erase the PIC32 with the ICD2 ?

I need the program my PIC32 but i cannot erase the last program, when i put for program have this message below.

 

When  received the new chip I can program first time it works, but when i program it again have that´s problem.

 

MPLAB VERSION 8.66

 

ICD0300:  Can't read code protected device.
ICD0275:  Programming failed.

 


 

That´s my fuses below:   

 

#pragma config FPLLODIV = DIV_1, FPLLMUL = MUL_20, FPLLIDIV = DIV_2, FWDTEN = ON , FPBDIV = DIV_1, POSCMOD = XT, FNOSC = PRIPLL, CP = OFF, WDTPS = PS16384, BWP = OFF, FCKSM = CSECME

 

// WDT - WatchDog Timer, code protect, postscaler 16384, bootflash protected, clock switch e monitoring enabled

 

 

CP = Code Protect = OFF

BWP = Boot Flash Write Protect = Writable

 

I buyed chip PIC32 with the AVNET USA  with batch 1134WME and 1123GMU that´s I cannot erase but i have others with batch 10265J7 that erase with sucess; what F**** happens?

 

When the chip new I can program once

 

Somebody know about some problem for using ICD2 for this PIC32 or needed buy the ICD3 for this work?

 

 

Somebody can you help me?

 

Regards

Thanks

Attributes

  • Currently Being Moderated
    1. Feb 24, 2012 3:43 PM (in response to eng.cleber)
    Re: I cannot erase the PIC32 with the ICD2 ?

    Hi,

     

    Can you show your electronic schematic to make sure PIC32 environment is right ?

    What is the power supply of your system ?

     

    How long is your ICD2 ICSP cable ?

    The earlier ICD2 had 30cm cables which were too long. More recent ones  are 15cm long. It is necessary because 30cm is toolong for PIC32.

    Moreover, it is highly recommended to use ICD3 because flshing time is 10 to 15 times faster...

    It takes about 3,30mn to program a 512KB PIC32 with ICD2 and only 15s with ICD3...

     

    Regards

    Salutations

  • Currently Being Moderated
    5. Feb 27, 2012 4:13 PM (in response to eng.cleber)
    Re: I cannot erase the PIC32 with the ICD2 ?

    Hi,

     

    Which PIC32 do you use ?

     

    You need to be careful with configuration bits. Many 16bits and 32bits PIC have several pairs of ICSP pins.

    Also oscillator selection through configuration bits must be done carefully.

     

    I did not see in your configuration bits the selection of ICSP pair 2 ?

     

    If the wrong oscillator option is chosen or the wrong ICSP pair, then, just after programming the device it fails when starting.

    In 95% of the cases, if initial connection was OK the reason is bad configuration bits...

     

    Regards

Related Content


Related Products
Discussions
  • Retrieving data ...

Bookmarked By (0)