Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Apr 2008 23:25:28 +0800
From:      "Xiaofan Chen" <xiaofanc@gmail.com>
To:        "Hans Petter Selasky" <hselasky@c2i.net>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: PICkit 2 again with HPS stack
Message-ID:  <a276da400804240825i19a88d2m5b58687983df5d83@mail.gmail.com>
In-Reply-To: <200804241721.54385.hselasky@c2i.net>
References:  <a276da400710120332h5f780ee8g9a12d5fb5548f8da@mail.gmail.com> <a276da400710160542q71bb4983jf27b59cb0e5ee104@mail.gmail.com> <a276da400804240759s2e170cadn1dab42729a87369f@mail.gmail.com> <200804241721.54385.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Apr 24, 2008 at 11:21 PM, Hans Petter Selasky <hselasky@c2i.net> wrote:
>  I have fixed some issues where the Giant lock was not locked when calling into
>  the USB stack recently. What version are you at? A stack backtrace from the
>  panic would also be nice. Make sure that everything is built clean.

[mcuee@freebsd7 /usr/home/mcuee/Desktop/usb/i4b]$ svn info
Path: .
URL: svn://svn.turbocat.net/i4b
Repository Root: svn://svn.turbocat.net/i4b
Repository UUID: 4429bdba-5c01-0410-9f4f-ee3375ed255f
Revision: 651
Node Kind: directory
Schedule: normal
Last Changed Author: hselasky
Last Changed Rev: 651
Last Changed Date: 2008-03-29 20:04:10 +0800 (Sat, 29 Mar 2008)

I will update to see if the later code fixed this problem. The backtrace
is enclosed in the previous post.

The other libusb based program fsusb_demo still works fine.
(discussed last time in the thread:
http://lists.freebsd.org/pipermail/freebsd-usb/2007-October/004087.html).

[mcuee@freebsd7 /usr/home/mcuee/Desktop/build/fsusb]$ ./fsusb_demo --readpot
Locating Microchip(tm) PICDEM(tm) FS USB Demo Board (vendor
0x04d8/product 0x000c)
usb_set_debug: Setting debugging level to 255 (on)
setting USB debug on by adding usb_set_debug(255)
usb_os_find_busses: Found /dev/usb0
usb_os_find_busses: Found /dev/usb1
usb_os_find_busses: can't open /dev/usb2: Permission denied
usb_os_find_devices: Found /dev/ugen0 on /dev/usb0
usb_control_msg: 128 6 512 0 0xbfbfe964 8 1000
usb_control_msg: 128 6 512 0 0x2820c070 41 1000
skipped 1 class/vendor specific interface descriptors
usb_control_msg: 128 6 513 0 0xbfbfe964 8 1000
usb_control_msg: 128 6 513 0 0x2820a080 32 1000
usb_os_find_devices: Found /dev/ugen1 on /dev/usb1
usb_control_msg: 128 6 512 0 0xbfbfe964 8 1000
usb_control_msg: 128 6 512 0 0x2820a0c0 32 1000
Found USB PICDEM FS USB Demo Board as device '/dev/ugen1' on USB bus /dev/usb1
Communication established.
answer was correct!
Onboard firmware version is 1.20
Potentiometer now reads 650
usb_os_close: closing endpoint 4

Xiaofan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a276da400804240825i19a88d2m5b58687983df5d83>