Discussion in "PIC Microcontroller Discussion" started by    ponnus    Mar 6, 2013.
Wed Mar 06 2013, 06:01 pm
#1
Hai,
I've installed PIC32 starter kit || mplab ide and compiler in redhat linux using wine.
But when I connect the starter kit and select debugger, it says "Could not find the target device."
I typed the command
dmesg | grep USB
in terminal and found that the device is connected....

Did anyone tried this?
Thu Mar 07 2013, 12:37 pm
#2
can you post dmesg log here? after you connect PIC32 kit. Wine uses symbolic links to devices in /dev/* to ~/.wine/dosdevices/*

e..g if you are connecting a usb to serial to wine then you need to link /dev/ttyUSB0 to ~/.wine/dosdevices/com1 etc.. I am not sure if a vendor specific device can be used in wine. You might want to check on winehq.org for help
Thu Mar 07 2013, 07:03 pm
#3
Hai,
this is the response....
$ dmesg | grep USB
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
hub 1-0:1.0: USB hub found
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
hub 2-0:1.0: USB hub found
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 3
usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
hub 3-0:1.0: USB hub found
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 4
usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
hub 4-0:1.0: USB hub found
uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5
usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
hub 5-0:1.0: USB hub found
usbhid: v2.6:USB HID core driver
usb 2-2: new full speed USB device using uhci_hcd and address 2
usb 2-2: New USB device found, idVendor=04d8, idProduct=00e0
usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-2: Product: Microchip Custom USB Device
usb 2-2: USB disconnect, address 2
usb 2-2: new full speed USB device using uhci_hcd and address 3
usb 2-2: New USB device found, idVendor=04d8, idProduct=00e0
usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-2: Product: Microchip Custom USB Device


How can I link Usb device to wine?

Now,I've got another problem also....
When I load my project in mplab ,it is showing error as.....MPLAB.exe has encountered a problem and this is the message in detail.

Unhandled exception: invalid float operation in 32-bit code (0x685d32dc).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:685d32dc ESP:0033d038 EBP:0033d1b0 EFLAGS:00010297(  R- --  I S -A-P-C)
 EAX:00ed4ac0 EBX:6861bc00 ECX:00ed4ac0 EDX:00ed4ac0
 ESI:0000007c EDI:0033d0e8
Stack dump:
0x0033d038:  00008578 00000022 0033d0e8 0033d058
0x0033d048:  6861bc00 0000007c 0033d4fc deadbabe
0x0033d058:  0033d32c 0033d060 0001003f 00000000
0x0033d068:  00000000 00000000 00000000 00000000
0x0033d078:  00000000 ffff0c72 ffffb8a1 ffff3fff
0x0033d088:  685dac42 00000010 0033daf4 0000002b
000c: sel=0067 base=00000000 limit=00000000 16-bit --x
Backtrace:
=>
0 0x685d32dc in gdi32 (+0x632dc) (0x0033d1b0)
  1 0x68ef34bb in winex11 (+0x534ba) (0x0033d560)
  2 0x68efa8ac in winex11 (+0x5a8ab) (0x0033d720)
  3 0x685c486f in gdi32 (+0x5486e) (0x0033d790)
  4 0x685def0d SelectObject+0x7c() in gdi32 (0x0033d7e0)
  5 0x6858ce89 in gdi32 (+0x1ce88) (0x0033d810)
  6 0x6858df07 CreateDCW+0x186() in gdi32 (0x0033dad0)
  7 0x6849a2d8 in user32 (+0x6a2d7) (0x0033daf0)
  8 0x6849a9be GetDCEx+0x39d() in user32 (0x0033db50)
  9 0x68498657 in user32 (+0x68656) (0x0033e020)
  10 0x684993c6 in user32 (+0x693c5) (0x0033e040)
  11 0x68454624 in user32 (+0x24623) (0x0033e100)
  12 0x684554ff DefWindowProcA+0x8e() in user32 (0x0033e160)
  13 0x6847c250 DefMDIChildProcA+0x16f() in user32 (0x0033e1c0)
  14 0x7c1c9c87 in mfc71 (+0x89c86) (0x0033e1f0)
  15 0x7c1ac5a9 in mfc71 (+0x6c5a8) (0x0033e250)
  16 0x7c1ac639 in mfc71 (+0x6c638) (0x0033e270)
  17 0x7c1d74df in mfc71 (+0x974de) (0x0033e29c)
  18 0x684c5e5a WINPROC_wrapper+0x19() in user32 (0x0033e2cc)
  19 0x684c796d in user32 (+0x9796c) (0x0033e31c)
  20 0x684c6842 in user32 (+0x96841) (0x0033e7ec)
  21 0x684c8d5e in user32 (+0x98d5d) (0x0033e83c)
  22 0x6848b142 in user32 (+0x5b141) (0x0033e8ac)
  23 0x6848e9b6 in user32 (+0x5e9b5) (0x0033e92c)
  24 0x6848ee5d SendMessageW+0x4c() in user32 (0x0033e97c)
  25 0x68499949 in user32 (+0x69948) (0x0033ea7c)
  26 0x6849afd0 in user32 (+0x6afcf) (0x0033eabc)
  27 0x684c1f92 in user32 (+0x91f91) (0x0033ebec)
  28 0x684c2ca2 EndDeferWindowPos+0x91() in user32 (0x0033ec5c)
  29 0x00419895 in mplab (+0x19894) (0x0033f634)
  30 0x00410333 in mplab (+0x10332) (0x0033f6f0)
  31 0x0043465b in mplab (+0x3465a) (0x0033f8f4)
  32 0x00434a5e in mplab (+0x34a5d) (0x0033f914)
  33 0x7c1b0f28 in mfc71 (+0x70f27) (0x0033f944)
0x685d32dc: fldz
Modules:
Module	Address			Debug info	Name (105 modules)
PE	  340000-  399000	Deferred        mppathan
PE	  3a0000-  3b6000	Deferred        zlibwapi
PE	  400000-  592000	Export          mplab
PE	  5a0000-  61c000	Deferred        msvcp71
PE	  9f0000-  a06000	Deferred        mplbcomm
PE	  c30000-  c72000	Deferred        mpprogram
PE	 2250000- 22d5000	Deferred        mpdisplay2
PE	 2340000- 237a000	Deferred        mpexpress
PE	 2f50000- 2f5b000	Deferred        borlndmm
PE	 33f0000- 34c8000	Deferred        mpeditor4
PE	 3670000- aad4000	Deferred        mpdisplays
PE	 ac10000- ac37000	Deferred        mpforum
PE	 b060000- b0fa000	Deferred        mpdevice
PE	 b100000- b131000	Deferred        mptranslator
PE	 b140000- b17d000	Deferred        mpdebugger
PE	 b5c0000- b64a000	Deferred        mpice2k
PE	 b960000- ba62000	Deferred        mpproject
PE	 bb80000- bc05000	Deferred        suite_pic32
PE	 bd20000- bdbf000	Deferred        suite_dspic
PE	 bed0000- bf86000	Deferred        suite_microchip
PE	 c0a0000- c0e8000	Deferred        suite_lscproxy
PE	 c530000- c563000	Deferred        vault_pvcs
PE	 c680000- c6b0000	Deferred        vault_vss
PE	 c7c0000- c7f6000	Deferred        vault_cvs
PE	 c940000- c982000	Deferred        mptags
PE	 c990000- c9a4000	Deferred        mpdiff
PE	 cac0000- cae1000	Deferred        mploader
PE	 cc00000- cc27000	Deferred        mpeditorstg
PE	 d7e0000- d805000	Deferred        mpmemory
PE	 d9a0000- d9c2000	Deferred        mpchecksum
PE	 de60000- dec5000	Deferred        mpusrcvw4
PE	10000000-10012000	Deferred        certification
PE	12000000-121ac000	Deferred        mpxerces-c_2_7
ELF	20000000-2003a000	Deferred        usp10<elf>

  \-PE	20010000-2003a000	\               usp10
ELF	4c758000-4c7b6000	Deferred        riched20<elf>

  \-PE	4c760000-4c7b6000	\               riched20
ELF	68000000-68020000	Deferred        ld-linux.so.2
ELF	68020000-68162000	Dwarf           libwine.so.1
ELF	68162000-6817d000	Deferred        libpthread.so.0
ELF	6817d000-6830f000	Deferred        libc.so.6
ELF	6830f000-68314000	Deferred        libdl.so.2
ELF	68314000-6833e000	Deferred        libm.so.6
ELF	6833e000-6834c000	Deferred        libnss_files.so.2
ELF	6834c000-68365000	Deferred        version<elf>

  \-PE	68350000-68365000	\               version
ELF	68365000-68415000	Deferred        winmm<elf>

  \-PE	68370000-68415000	\               winmm
ELF	68415000-68566000	Dwarf           user32<elf>

  \-PE	68430000-68566000	\               user32
ELF	68566000-68633000	Dwarf           gdi32<elf>

  \-PE	68570000-68633000	\               gdi32
ELF	68633000-6869c000	Deferred        advapi32<elf>

  \-PE	68640000-6869c000	\               advapi32
ELF	6869c000-687c2000	Deferred        ole32<elf>

  \-PE	686b0000-687c2000	\               ole32
ELF	687c2000-68840000	Deferred        rpcrt4<elf>

  \-PE	687d0000-68840000	\               rpcrt4
ELF	68840000-68869000	Deferred        msacm32<elf>

  \-PE	68850000-68869000	\               msacm32
ELF	68869000-68883000	Deferred        crtdll<elf>

  \-PE	68870000-68883000	\               crtdll
ELF	68883000-6891d000	Deferred        msvcrt<elf>

  \-PE	688a0000-6891d000	\               msvcrt
ELF	6891d000-68990000	Deferred        shlwapi<elf>

  \-PE	68930000-68990000	\               shlwapi
ELF	68990000-68bb6000	Deferred        shell32<elf>

  \-PE	689a0000-68bb6000	\               shell32
ELF	68bb6000-68cb5000	Deferred        comctl32<elf>

  \-PE	68bc0000-68cb5000	\               comctl32
ELF	68cb5000-68cf1000	Deferred        winspool<elf>

  \-PE	68cc0000-68cf1000	\               winspool
ELF	68cf1000-68dfb000	Deferred        oleaut32<elf>

  \-PE	68d10000-68dfb000	\               oleaut32
ELF	68dfb000-68e93000	Deferred        libfreetype.so.6
ELF	68e93000-68f2d000	Dwarf           winex11<elf>

  \-PE	68ea0000-68f2d000	\               winex11
ELF	68f2d000-68f35000	Deferred        libsm.so.6
ELF	68f35000-68f4f000	Deferred        libice.so.6
ELF	68f4f000-68f60000	Deferred        libxext.so.6
ELF	68f60000-69098000	Deferred        libx11.so.6
ELF	69098000-6909d000	Deferred        libuuid.so.1
ELF	6909d000-690bb000	Deferred        libxcb.so.1
ELF	690bb000-690be000	Deferred        libxau.so.6
ELF	690be000-690e1000	Deferred        imm32<elf>

  \-PE	690c0000-690e1000	\               imm32
ELF	690e1000-690e6000	Deferred        libxxf86vm.so.1
ELF	690e6000-690ef000	Deferred        libxrender.so.1
ELF	690ef000-69124000	Deferred        libfontconfig.so.1
ELF	69124000-6914c000	Deferred        libexpat.so.1
ELF	6914c000-69156000	Deferred        libxcursor.so.1
ELF	6a490000-6a4c1000	Deferred        ws2_32<elf>

  \-PE	6a4a0000-6a4c1000	\               ws2_32
ELF	6c779000-6c85d000	Deferred        comdlg32<elf>

  \-PE	6c780000-6c85d000	\               comdlg32
ELF	72d3f000-72d74000	Deferred        uxtheme<elf>

  \-PE	72d50000-72d74000	\               uxtheme
ELF	73fec000-73ff1000	Deferred        libxfixes.so.3
ELF	7b800000-7ba38000	Deferred        kernel32<elf>

  \-PE	7b810000-7ba38000	\               kernel32
ELF	7bc00000-7bcd0000	Deferred        ntdll<elf>

  \-PE	7bc10000-7bcd0000	\               ntdll
ELF	7bf00000-7bf03000	Deferred        <wine-loader>

PE	7c140000-7c246000	Export          mfc71
PE	7c360000-7c3b6000	Deferred        msvcr71
Threads:
process  tid      prio (all id:s are in hex)
0000000e services.exe
	00000020    0
	0000001f    0
	00000015    0
	00000010    0
	0000000f    0
00000012 winedevice.exe
	0000001d    0
	0000001a    0
	00000014    0
	00000013    0
0000001b plugplay.exe
	00000021    0
	0000001e    0
	0000001c    0
00000022 explorer.exe
	00000023    0
00000024 (D) C:\Program Files (x86)\Microchip\MPLAB IDE\Core\MPLAB.exe
	00000027    0
	00000026    0
	00000025    0 <==
System information:
    Wine build: wine-1.4.1
    Platform: i386 (WOW64)
    Host system: Linux
    Host version: 2.6.32-131.0.15.el6.x86_64


Sorry for this long post.............

Thank you
Fri Mar 08 2013, 05:36 pm
#4
"Microchip Custom USB Device" I dont think you will be able to use this hardware on linux, unless microchip gives support natively. Moreover with that error you're getting I would suggest you to stick with Windows only. If you really need linux then you can use VMware in windows and install linux there. so you can use both at same time.
Sat Mar 09 2013, 10:45 am
#5
hai,
I was just testing to see if it works or not.

Thank you for your response

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

RandyBence
Wed May 15 2024, 02:00 pm
JordanDic
Wed May 15 2024, 01:55 pm
DavidDeelf
Wed May 15 2024, 11:16 am
ytaletjkca
Wed May 15 2024, 09:45 am
MildredWoumb
Wed May 15 2024, 04:07 am
NaKrutkADamb
Wed May 15 2024, 12:03 am
MichaelGot
Tue May 14 2024, 04:08 pm
FrankTrelm
Tue May 14 2024, 10:39 am