Re: [Fx2lib-devel] Fx2Tools
Status: Beta
Brought to you by:
mulicheng
From: Chris M. <fx...@m3...> - 2009-07-21 22:47:16
|
Yeah I looked at the fx2load package but it seems to be very Linux-oriented (e.g it seems to use the USB device nodes in /dev directly rather than going via libusb). Having something work cross-platform (or at least Linux/Windows) was one of my main design goals, along with elimination of intermediate file processing. Patching fxload to meet those design goals wouldn't leave much of the original code, which is why I decided to start afresh. - Chris Dennis Muhlestein wrote: > I've been meaning to add something like that to the fx2load package > actually. Feel free to contribute patches if you'd like. > > -Dennis > > Chris McClelland wrote: > >> Hi Dennis & Co, >> >> I've been working on a lightweight cross-platform tool to make it easier >> to upload SDCC-generated I8HEX files directly to the FX2's RAM and >> EEPROM, without the need for any intermediate packihx, hex2bix or >> hex2iic stages: >> >> http://www.makestuff.eu/wordpress/?page_id=343 >> >> You can do: >> >> fx2loader -src firmware.ihx -dst ram -vid 0x04b4 -pid 0x8613 >> >> ...and it will parse the ihx file into binary on-the-fly and upload it >> to the RAM. Or if you have a 0xA2-capable firmware loaded into RAM, you >> can do: >> >> fx2loader -src firmware.ihx -dst eeprom -vid 0x04b4 -pid 0x8613 >> >> ...which will parse the ihx file into IIC records on-the-fly and upload >> them to EEPROM. >> >> I hope someone finds it useful. >> >> - Chris >> |