gnupic: Re: [gnupic] USB code, PICDEM FS USB and Linux


Previous by date: 3 Mar 2006 18:17:50 +0000 Re: [gnupic] running 18f252 at 3.3Volts, octaloctal
Next by date: 3 Mar 2006 18:17:50 +0000 Re: [gnupic] USB code, PICDEM FS USB and Linux, Bradley Minch
Previous in thread: 3 Mar 2006 18:17:50 +0000 Re: [gnupic] USB code, PICDEM FS USB and Linux, Ben Dugan
Next in thread: 3 Mar 2006 18:17:50 +0000 Re: [gnupic] USB code, PICDEM FS USB and Linux, Bradley Minch

Subject: Re: [gnupic] USB code, PICDEM FS USB and Linux
From: Ben Dugan ####@####.####
Date: 3 Mar 2006 18:17:50 +0000
Message-Id: <4408879D.9020803@curdes.com>

Alessandro,

I have been working more on sending to the picdem, using vendor
requests. Its working well for my purposes. The VendorRequests code you
put in usb-test.asm was very helpful getting me started on this.

I had been getting a timeout error from libusb when I sent vendor
requests to the board, even though the requests were working (that is, I
could get data to the board as I'd hoped.) I was thinking that the host
was waiting for some sort of acknowledgement, so I copied some lines
from elsewhere in the Minch code and it no longer times out. I'm noting
them here in case its of interest to you:

VendorRequests
	banksel	USB_buffer_data
	movf	USB_buffer_data+bRequest, W, BANKED
	select
		case 0x01
			banksel	demo_buffer
			movf	USB_buffer_data+wValue, W, BANKED
			movwf	demo_buffer+0, BANKED
			movf	USB_buffer_data+wValueHigh, W, BANKED
			movwf	demo_buffer+1, BANKED

			movf	USB_buffer_data+wIndex, W, BANKED
			movwf	demo_buffer+2, BANKED
			movf	USB_buffer_data+wIndexHigh, W,BANKED
			movwf	demo_buffer+3, BANKED

*			movlw		0x0
*			movwf		BD0IBC, BANKED			
*			movlw		0xC8
*			movwf		BD0IST, BANKED			
			break

The four *'ed lines seem to eliminate the timeout error.

Ben


Previous by date: 3 Mar 2006 18:17:50 +0000 Re: [gnupic] running 18f252 at 3.3Volts, octaloctal
Next by date: 3 Mar 2006 18:17:50 +0000 Re: [gnupic] USB code, PICDEM FS USB and Linux, Bradley Minch
Previous in thread: 3 Mar 2006 18:17:50 +0000 Re: [gnupic] USB code, PICDEM FS USB and Linux, Ben Dugan
Next in thread: 3 Mar 2006 18:17:50 +0000 Re: [gnupic] USB code, PICDEM FS USB and Linux, Bradley Minch


Powered by ezmlm-browse 0.20.