Re: [Fx2lib-devel] FX2 Firmware device descriptor read/64, error -110
Status: Beta
Brought to you by:
mulicheng
From: Dennis M. <djm...@gm...> - 2014-08-13 14:14:48
|
On 8/13/14, 5:53 AM, Christoph Kuhr wrote: > > Google told me, error -110 means something aboult not enough power for > the usb device. > So I experimented with the values for > .db 0xE0 ; attrs = bus powered, no wakeup > .db 0x00 ; max power = 100ma > > but nothing changed. If it is a power problem, that likely means the device is really having issues with too much power or not enough power or whatever. Whatever you put in the descriptor is only a hint to the software on the computer but it's up to the device to actually obey that hint. > > > > I also tried to download the firmware with fxload. > But here I receive the error: > > fxload -vvv -t fx2 -D /dev/bus/usb/001/039 -I build/firmware.ihx > > microcontroller type: fx2 > single stage: load on-chip memory > open RAM hexfile image build/firmware.ihx > stop CPU > ** LINE: :040000000201B9320E > ** LINE: :01000B0032C2 > write on-chip, addr 0x0000 len 4 (0x0004) > ... ... ... > can't write 188 bytes external memory at 0x3e00 > unable to download build/firmware.ihx > > What am I doing wrong? > > > Where can I find a mapping between error description and numercial error > code? > All I found until now are error codes without number. Are you using libusb-1.0? At least for libusb errors you can look at the libusb header. http://www.libusb.org/browser/libusb/libusb/libusb.h For kernel errors you'll have to look which module produced the error and look at the kernel sources for your distro. If you look in the fx2lib examples you can see how loading is actually done and perhaps check any errors about what might be going on. https://github.com/djmuhlestein/fx2lib/blob/master/examples/fx2/cpp/fx2.cpp That uses libusb-0.1 though and is pretty outdated. As far as fx2lib goes, it's firmware is as good/stable as ever but I haven't spent time maintaining any driver support at the fx2lib level. I am still working on drivers that work both with the fx2 and the fx3 device though. https://github.com/ubixum/nitro The driver layer of the nitro package has the utilities to load firmware on both devices. It may or may not be useful but you could check the src/*usb* files to get a better explanation of what is going on. Anyway, if you post a dropbox link or gist or whatever with your fx2lib firmware perhaps I could download it to a known working device and see what's might be going on. -Dennis |