Welcome, Guest

Author Topic: PIC32-PINGUINO programing fail  (Read 5516 times)

Borislav

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
PIC32-PINGUINO programing fail
« on: September 19, 2012, 01:46:49 PM »
Hello
I have a problem for programing PIC32-PINGUINO
I use PIC-ICD2-POCKET for programing/debuging
The Self Test are passed
The pawer reported from MPLAP is Vdd:3.20,Vpp:2.8,MPLAB ICD 2 Vpp 10.94
target is connected to power adaptor 12V

Only reading operations are work all other failed
this is reproduced for 3 different target

this problem are not see when i used  MOD-USB-RS232

see log by MPLAB

Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
Target Device PIC32MX440F256H found, revision = Rev 0x50900053
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 ready for next operation
Programming Target...
...Validating configuration fields
...Erasing Part
...Loading Program Executive
...Loading Debug Executive
...Loading Debug Executive Vector
...Programming Boot Config (0x1FC00000 - 0x1FC005FC)
...Verifying Boot Config memory (0x1FC00000 - 0x1FC005FC)
ICD0296:  Failed CRC check (Mem='BootConfig'  Expected=0xEEB5  Received=0x8C0E)
ICD0275:  Programming failed.
MPLAB ICD 2 ready for next operation
Reading...
...Loading Program Executive
...Boot Config Memory (0x1FC00000 - 0x1FC02FEF)
...Program Memory (0x1D000000 - 0x1D03FFFF)
...Configuration Memory
...Read Succeeded
MPLAB ICD 2 ready for next operation
Programming Target...
...Validating configuration fields
...Erasing Part
...Loading Program Executive
...Loading Debug Executive
...Loading Debug Executive Vector
...Programming Boot Config (0x1FC00000 - 0x1FC007FC)
...Verifying Boot Config memory (0x1FC00000 - 0x1FC007FC)
...Programming Boot Config (0x1FC01000 - 0x1FC011FC)
...Verifying Boot Config memory (0x1FC01000 - 0x1FC011FC)
...Programming Boot Config (0x1FC02000 - 0x1FC02FEF)
...Verifying Boot Config memory (0x1FC02000 - 0x1FC02FEF)
...Programming Configuration Bits
...Verifying Config memory
Connecting to debug executive
...Programming succeeded
19-Sep-2012, 13:23:17

MPLAB ICD 2 ready for next operation

LubOlimex

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1892
  • Karma: +47/-2
Re: PIC32-PINGUINO programing fail
« Reply #1 on: September 19, 2012, 02:25:04 PM »
Hi,

there are number of reports for problems programming PIC32 processors with ICD2. Unfortunately, they are mostly based on a C32 compiler mistake made by Microchip. The problem is probably the compiler - try using the newest C32 compiler. Check this post: http://www.microchip.com/forums/tm.aspx?m=336792&mpage=1&key=&#340577  You can also try different MPLAB version (note that ICD2 is not supported in MPLAB X).

Another thing you might give a try is increasing the supply voltage (be sure the adapter can provide enough current).

Lub/OLIMEX
Technical support and documentation manager at Olimex

Borislav

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: PIC32-PINGUINO programing fail
« Reply #2 on: September 19, 2012, 03:52:06 PM »
Thank you for reply
But i now used base version for C32 compilator 2.02a and in 32MX440F256H\configuration.data is CWORD:BFC02FFC:7FFFFFFF:7FFFFFFF  :-[

And see the log .
After "reading" process are complete  the next process "programing" is not fail but target not work

When i checked the schematic pdf and i see some confusion about reset pin
In web site for "PIC-ICD2-POCKET" is
"It is very important ... Use always 10K pullup resistor from MCLR to VCC"
but is schematic the pin is connected by RESET-33R-D2-3.3V maybe a problem or not?

https://www.circuitlab.com/circuit/825q2a/pic32-pinguino-icsp-conector/
« Last Edit: September 19, 2012, 05:12:59 PM by Borislav »

olimex

  • Administrator
  • Hero Member
  • *****
  • Posts: 803
  • Karma: +21/-3
Re: PIC32-PINGUINO programing fail
« Reply #3 on: September 20, 2012, 08:25:16 AM »
Borislav I'm curious why you do not look the schemtic on the product page? MCLR is wired through 4.7K to VCC and this will not cause problems with PIC-ICD2-POCKET

Borislav

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: PIC32-PINGUINO programing fail
« Reply #4 on: September 20, 2012, 09:35:17 AM »
Yes is existed resistor but parallel is he bypassed by a diode see:

http://dox.bg/files/dw?a=b1961cbcc9
And if in RESET pin put 13V for D2 this is positive according to 3.3V and D2 resistive is low so this (D2) is bypass for R16 and on pin MCLR voltage is ~7.5V
see simulation:https://www.circuitlab.com/circuit/825q2a/pic32-pinguino-icsp-conector/
« Last Edit: September 20, 2012, 02:47:52 PM by Borislav »