On 2013.03.23 12:25, Xiaofan Chen wrote: > Under Ubuntu 12.10's MinGW-w64 64bit cross compiler > (gcc 4.6.3), there is a minor warning about the fxload > example. > > ../../examples/fxload.c:67:28: warning: declaration of ‘errcode’ > shadows a global declaration [-Wshadow]
Thanks for the heads up. Should be easy to fix. In related news, thanks to a very generous soul, as well as, the USB committee's 3.0 micro-B connector [1] being all kinds of a lousy design (side by side? seriously?), I am now the proud owner of a salvaged yet fully working CYUSB3KIT-001 EZ-USB FX3 development board [2]: ---------------------------------------------------------------------- $ ./fxload.exe -v -i BulkLpAutoCpp.img found device 'Cypress FX3' [04b4:00f3] (1,2) microcontroller type: fx3 BulkLpAutoCpp.img: type Cypress IMG format single stage: load on-chip memory open firmware image BulkLpAutoCpp.img for RAM uploa write firmware, addr 0x00000100 len 4096 (0x1000) read firmware, addr 0x00000100 len 4096 (0x1000) (...) write firmware, addr 0x40048000 len 3112 (0x0c28) read firmware, addr 0x40048000 len 3112 (0x0c28) Jump command, addr 0x4002ac8c len 0 (0x0000) $ xusb -i 4b4:f0 Using libusbx v1.0.14.10633 Opening device 04B4:00F0... Device properties: bus number: 1 port path: 1 (from root hub) speed: 5000 Mbit/s (USB SuperSpeed) Reading device descriptor: length: 18 device class: 0 S/N: 0 VID:PID: 04B4:00F0 bcdDevice: 0000 iMan:iProd:iSer: 1:2:0 nb confs: 1 Reading configuration descriptors: nb interfaces: 1 interface[0]: id = 0 interface[0].altsetting[0]: num endpoints = 2 Class.SubClass.Protocol: FF.00.00 endpoint[0].address: 01 max packet size: 0400 polling interval: 00 endpoint[1].address: 81 max packet size: 0400 polling interval: 00 Claiming interface 0... Reading string descriptors: String (0x01): "Cypress" String (0x02): "FX3" Releasing interface 0... Closing device... ---------------------------------------------------------------------- Now, isn't this nice! :D And I'll take this opportunity to ask anyone on this list with an FX3 dev board, who happen to break their USB micro-B connector, to get a replacement from Cypress and then please contact either myself or Xiaofan, as we will be most interested in taking these boards off your hands... But to get back on topic, now that I have an FX3 board, I've picked up a couple additional small issues for fxload, one of which being that in non-verbose mode, you get a LIBUSB_IO_ERROR on the last transfer. This is expected, since our last transfer acts as a reset and effectively makes the device disconnect from the bus, potentially with a different VID:PID, but it would be nice to address that, so I'm planning to fix all these issues together. Also, for what is worth, these addons to the fxload sample will have no impact on the 1.0.15 release. I'm hoping to be able to to push a patch during the 1.0.15 RC, but if not, it'll just be part of 1.0.16/2.x. Regards, /Pete [1] http://commons.wikimedia.org/wiki/File:USB_3.0_Micro_B_plug.PNG [2] http://www.cypress.com/?rID=58321 ------------------------------------------------------------------------------ Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel