unable to connect with mplab icd 2 (usb)
Hi crazyduck!
This is what I've ,made:
Took "Shane Tolmie PIC bootloader v9-30" from microchip,modified:"#define ICD_DEBUG 0 to #define ICD_DEBUG 1" and the frequency and baud rate to 20MHz and 19200 bps,make the modified source bootloader file in Mplab and create the new .Hex file for it.Then I changed the com1 port setting to Hardware flow control,19200bps baudrate and disabled FIFO buffers for com1.
Next I followed the steps U specified above and get something like that:
Connecting to MPLAB ICD 2
...Connected
ICD0082: Failed MPLAB ICD 2 operation
MPLAB ICD 2 Ready
I must say I power the dsPIC30F6014 from the ICD2 as specified in
www.stolz.de.be site.I removed the resistor that put MCLR to VDD at the target.
Then I loaded a project for dsPIC30F6014 and gave "Debugging->Program" and got :
Programming Target...
ICD0082: Failed MPLAB ICD 2 operation
ICD0024: Failed to write to Com Port ($7F00
4) (MPLABCOM = 0x0) (USBCOM = 0x0) (0x0)
ICD0082: Failed MPLAB ICD 2 operation
ICD0082: Failed MPLAB ICD 2 operation
ICD0082: Failed MPLAB ICD 2 operation
ICD0082: Failed MPLAB ICD 2 operation
ICD0275: Programming failed.
MPLAB ICD 2 Ready
Can U tell me what can I do to fix this problem?