• AVR Freaks

PIC32 and ICD2

Author
Publius
New Member
  • Total Posts : 19
  • Reward points : 0
  • Joined: 2008/03/09 19:08:20
  • Location: 0
  • Status: offline
2008/05/07 14:23:28 (permalink)
0

PIC32 and ICD2

Hi,
 
I recently upgraded to mplab 8.10 and C32 V1.02.
When I program a PIC32MX360F512L I get: FAILED CRC CHECK.
 
I reinstalled MPLAB and tried programming two different chips  (both PIC32MX360F512L).
 
But the problem remains.
 
Any suggestions?
 
Regards
#1

8 Replies Related Threads

    corvette321
    Super Member
    • Total Posts : 727
    • Reward points : 0
    • Joined: 2006/10/31 19:17:07
    • Location: Florida
    • Status: offline
    RE: PIC32 and ICD2 2008/05/08 16:38:52 (permalink)
    0
    are u using a real ICD2 or a CHicd2?
     
    i am not sure of this, but i think the "fast programming" option which is enabled for all pic 32 may allow programming to fail on CHicd2...
     
    i do not know how to disable this feature "hacked or otherwise" as there is no option in ICD2, it appears to be hidden somewere... but i noticed it in my pickit 2 settings....
     
    this may allow VPP to fail on cheap clones...
     
    can anyone verify this???
     
     

    The Silicon Horizon Inc.
     
    #2
    corvette321
    Super Member
    • Total Posts : 727
    • Reward points : 0
    • Joined: 2006/10/31 19:17:07
    • Location: Florida
    • Status: offline
    RE: PIC32 and ICD2 2008/05/08 16:40:14 (permalink)
    0
    also have u checked out the device revision notes??
     
    there are problems where the clock inc's the program counter, and also MCLR problems...
     
     
    #3
    Publius
    New Member
    • Total Posts : 19
    • Reward points : 0
    • Joined: 2008/03/09 19:08:20
    • Location: 0
    • Status: offline
    RE: PIC32 and ICD2 2008/05/09 05:48:57 (permalink)
    0
    Thanks for the reply.
     
    I'm using the real ICD2.
    I forgot to mention that the CRC failes only over the config bits.
    The program runs but the config bits are not set properly.
     
    #4
    goonerism_speek
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2008/05/20 06:47:45
    • Location: 0
    • Status: offline
    RE: PIC32 and ICD2 2008/05/20 06:49:36 (permalink)
    0
    I have exactly the same probelm.
    If anybody finds a solution please post it here.
    #5
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: PIC32 and ICD2 2008/05/21 07:33:55 (permalink)
    0
    If you have the US$35 PICkit 2, you can try it. So far it is good to me even though there is a display bug. http://forum.microchip.com/tm.aspx?m=338515
     
    You need to use the standalone PC application.
     
    On the other hand, I do not have the CRC error problem with a Chinese Made ICD 2 clone (a full ICD2 clone with old Cypress USB IC and 16F877). It does have a problems with false warning of device ID.
    http://forum.microchip.com/tm.aspx?m=335697

      USB_Links and libusb
    #6
    gneiss
    Senior Member
    • Total Posts : 148
    • Reward points : 0
    • Joined: 2005/03/29 08:49:47
    • Status: offline
    RE: PIC32 and ICD2 2008/05/23 04:54:51 (permalink)
    0
    I got the same error.
     
    I found, that all was OK if I:
    - don't use 'Configuration bits set in Code'
      Instead use: Reset to default, then set the configuration manualy
     
    The difference is:
    Bit 31 of CONFIG0
    As from the DatatSheet this is the only bit that is readonly and 0 (all others are 1 by default)
    The compiler (C32) doesn't do this right, he always set this bit to 1
    So when You compile the configuration dialog shows:
    1FC0_2FFC F... instead of 7...
     
    I do some checks what has changed between C32 V1.01 and V1.02 and fpund the problem inside
    ... Microchip\MPLAB C32\pic32mx\lib\proc\32MX360F512L\configuration.data
    I am not realy shure how the syntax inside this files is, but by changing the line:

     

    CWORD:BFC02FFC:FFFFFFFF:FFFFFFFF
    to

    CWORD:BFC02FFC:7FFFFFFF:7FFFFFFF

     
    the compiler generates the correct values for the configuration area.
     
    It looks like the 2. and 3. entry define a mask & a default value, because in former versions of this file (and the files for other devices)
    These values contain a '1' only for 'used' configs bits...
     
    Hope Mircosoft will give an explanation/ correction of the compiler.
     
    I will add a web-ticket with a link to this thread.
     
     
    #7
    JasonK
    Super Member
    • Total Posts : 3383
    • Reward points : 0
    • Joined: 2003/11/14 09:49:40
    • Location: Microchip Technology in Arizona, USA
    • Status: offline
    RE: PIC32 and ICD2 2008/05/23 09:50:26 (permalink)
    0
    Hi gneiss,

    Yes, you are correct. The MSb of config word 0 should be 0. This will be fixed in an upcoming compiler release. In addition, there is going to be an improvement to the ICD2 software to make that bit 0.

    Hope Mircosoft will give an explanation/ correction of the compiler.

    I hope that was just a typo! wink

    Jason Kajita
     Follow me on Twitter
    http://support.microchip.com for urgent questions
    #8
    corvette321
    Super Member
    • Total Posts : 727
    • Reward points : 0
    • Joined: 2006/10/31 19:17:07
    • Location: Florida
    • Status: offline
    RE: PIC32 and ICD2 2008/05/23 19:17:23 (permalink)
    0
    gringringringringringringrin
     
    microchip, microsoft... same thang winkwink
    #9
    Jump to:
    © 2019 APG vNext Commercial Version 4.5