gnupic: Re: [gnupic] PICDEM FS USB and Linux tools


Previous by date: 22 Sep 2007 10:22:17 +0100 Re: [gnupic] PICDEM FS USB and Linux tools, Nicolas
Next by date: 22 Sep 2007 10:22:17 +0100 Re: [gnupic] PICDEM FS USB and Linux tools, Xiaofan Chen
Previous in thread: 22 Sep 2007 10:22:17 +0100 Re: [gnupic] PICDEM FS USB and Linux tools, Nicolas
Next in thread: 22 Sep 2007 10:22:17 +0100 Re: [gnupic] PICDEM FS USB and Linux tools, Xiaofan Chen

Subject: Re: [gnupic] PICDEM FS USB and Linux tools
From: "Xiaofan Chen" ####@####.####
Date: 22 Sep 2007 10:22:17 +0100
Message-Id: <a276da400709220221x1210a22ay19742e6bb80363f4@mail.gmail.com>

On 9/22/07, Nicolas ####@####.#### wrote:
> On 9/22/07, Xiaofan Chen ####@####.#### wrote:
> > I tried the released version 0.14.5 and it does not crash like the
> > SVN version but it still does not work.
> >
> > Message:
> > The selected programmer cannot read device memory."
>
> The message may not be clear enough but it just means that this
> bootloader cannot read the contents of the device memory... You may
> want to try writing instead.
>

Ok now I see what it means even though this is strange. The bootloader
should be able to read the program memory. fsusb works fine with
reading and writing.

So I tried erasing and writing: both did not work.

Debug message"

disconnect hardware
Connecting Picdem Bootloader on USB Port with device 18F4550...
USB Port: find if there is already an installed driver
USB Port: alternate setting is 0
USB Port: USB bcdDevice: 0x0000
USB Port: send: "\00\00\00\00\00"
USB Port: write to endpoint 0x01 (bulk - out) 5 chars: "\00\00\00\00\00"
USB Port: read from endpoint 0x81 (bulk - in) 4 chars
USB Port: received: "\00\00\00\01"
Bootloader version 1.0.0 detected
  Set target self powered: true
Connected.
Erasing...
USB Port: send: "\01\00\00\30\20"
USB Port: write to endpoint 0x01 (bulk - out) 5 chars: "\01\00\00\30\20"
USB Port: read from endpoint 0x81 (bulk - in) 37 chars
USB Port: Error receiving data (ep=0x81 res=-110) (err=could not get
bound driver: No data available).

disconnect hardware
The selected programmer cannot read device memory.
connect hardware
disconnect hardware
Connecting Picdem Bootloader on USB Port with device 18F4550...
USB Port: find if there is already an installed driver
USB Port: alternate setting is 0
USB Port: USB bcdDevice: 0x0000
USB Port: send: "\00\00\00\00\00"
USB Port: write to endpoint 0x01 (bulk - out) 5 chars: "\00\00\00\00\00"
USB Port: read from endpoint 0x81 (bulk - in) 4 chars
USB Port: received: "\00\00\00\01"
Bootloader version 1.0.0 detected
  Set target self powered: true
Connected.
Programming device memory...
USB Port: send: "\01\00\00\30\20"
USB Port: write to endpoint 0x01 (bulk - out) 5 chars: "\01\00\00\30\20"
USB Port: read from endpoint 0x81 (bulk - in) 37 chars
USB Port: Error receiving data (ep=0x81 res=-110) (err=could not get
bound driver: No data available).
disconnect hardware

fsusb works fine (I made some minor modifications so that I do not
need to run it as root with some udev rules).

####@####.#### ./fsusb
--program picdemfsusb.hex
Locating USB Microchip(tm) PICDEM-FS USB(tm) (vendor 0x04d8/product 0x000b)
Found USB PICDEM-FS USB as device '002' on USB bus 002
Communication established.  Onboard firmware version is 1.0
Writing program memory successful
Program memory validated

####@####.#### ./fsusb --read
test4550.hex
Locating USB Microchip(tm) PICDEM-FS USB(tm) (vendor 0x04d8/product 0x000b)
Found USB PICDEM-FS USB as device '002' on USB bus 002
Communication established.  Onboard firmware version is 1.0
Finished reading


Regards,
Xiaofan

Previous by date: 22 Sep 2007 10:22:17 +0100 Re: [gnupic] PICDEM FS USB and Linux tools, Nicolas
Next by date: 22 Sep 2007 10:22:17 +0100 Re: [gnupic] PICDEM FS USB and Linux tools, Xiaofan Chen
Previous in thread: 22 Sep 2007 10:22:17 +0100 Re: [gnupic] PICDEM FS USB and Linux tools, Nicolas
Next in thread: 22 Sep 2007 10:22:17 +0100 Re: [gnupic] PICDEM FS USB and Linux tools, Xiaofan Chen


Powered by ezmlm-browse 0.20.