Trouble in programming PIC18FXX

Asked by Praveen

Getting connection failed error while programming pic18f25k22 using pickit3 programmer in mplab x ipe / mplab x ide.
I have tried most of the solutions and nothing helped. Kindly let me know if any solutions available.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

How is this related to Ubuntu?

Revision history for this message
Praveen (praveen04) said :
#2

I have my office system which has windows and it is possible to program the pic with pickit3 but while using this in my personal PC which has ubuntu 14.04 the pickit3 programmer is not recognized in software.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

For diagnostic purposes try the following:

Boot your system without the device connected.
Login and wait a minute for all startup processes to complete.
Plug the pickit3 programmer into your system.
Wait half a minute and the issue the following commands in a terminal window:

uname -a
lsb_release -crid
lsusb
dmesg | tail

Finally copy/paste all output into this question document.

Revision history for this message
Praveen (praveen04) said :
#4

praveen@praveen:~$ uname -a
Linux praveen 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
praveen@praveen:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 14.04 LTS
Release: 14.04
Codename: trusty
praveen@praveen:~$ lsusb
Bus 002 Device 007: ID 04ca:0061 Lite-On Technology Corp.
Bus 002 Device 012: ID 04d8:900a Microchip Technology, Inc. PICkit3
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0c45:641d Microdia 1.3 MPixel Integrated Webcam
Bus 001 Device 014: ID 413c:8162 Dell Computer Corp. Integrated Touchpad [Synaptics]
Bus 001 Device 013: ID 413c:8161 Dell Computer Corp. Integrated Keyboard
Bus 001 Device 012: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
praveen@praveen:~$ dmesg | tail
[16150.019116] usb 2-1.2: new full-speed USB device number 11 using ehci-pci
[16150.426757] usb 2-1.2: device not accepting address 11, error -32
[16150.426930] hub 2-1:1.0: unable to enumerate USB device on port 2
[16200.637758] usb 2-1.2: new full-speed USB device number 12 using ehci-pci
[16200.732691] usb 2-1.2: New USB device found, idVendor=04d8, idProduct=900a
[16200.732696] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[16200.732700] usb 2-1.2: Product: PICkit 3
[16200.732703] usb 2-1.2: Manufacturer: Microchip Technology Inc.
[16200.732706] usb 2-1.2: SerialNumber: BUR130001772
[16200.734495] hid-generic 0003:04D8:900A.000A: hiddev0,hidraw2: USB HID v1.11 Device [Microchip Technology Inc. PICkit 3] on usb-0000:00:1d.0-1.2/input0

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

ok, Ubuntu is recognizing the PICkit 3 device.

What is the output of

ls -l /dev/

Revision history for this message
Praveen (praveen04) said :
#6

Arduino MPLABXLog.xml.4.lck
Backup Of New Project.pdsbak MPLABXLog.xml.5
Desktop MPLABXLog.xml.5.lck
Documents MPLABXLog.xml.6
Downloads MPLABXLog.xml.6.lck
examples.desktop MPLABXLog.xml.lck
hs_err_pid5368.log MPLABXProjects
ipe.key MPLABX-v3.35-linux-installer.sh
ipe.properties MPLABX-v3.35-linux-installer.tar
log.0 Music
MPLABXLog.xml mwf_config
MPLABXLog.xml.1 New Project.pdsprj
MPLABXLog.xml.1.lck New Project.pdsprj.praveen.praveen.workspace
MPLABXLog.xml.2 PICkit.lnk
MPLABXLog.xml.2.lck Pictures
MPLABXLog.xml.3 Public
MPLABXLog.xml.3.lck Templates
MPLABXLog.xml.4 Videos

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

What command did you execute to receive this output?

What is the output of the command
ls -l /dev/
?

Revision history for this message
Launchpad Janitor (janitor) said :
#8

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.