Git Product home page Git Product logo

fx2eeprom's Introduction

Read and Write the eeprom of an fx2 chip with the vend_ax.hex firmware


COMPILE
-------
- Install libusb-dev or libusb-1.0-0-dev (rPI) on your system.
- (Optional) Install fxload
- Run make


USE
---
1) Mount the usbfs
mount -t usbfs usbfs /proc/bus/usb

2) Download the fw
fxload -I vend_ax.hex  -D /proc/bus/usb/002/011  -t fx2 -v

3) Run fx2eeprom
3a)Read example
./fx2eeprom r 0x123 0x234 45 > eeprom.raw
3b)Write example
cat eeprom.raw | ./fxeeprom w 0x123 0x234 45 > eeprom.raw



vend_ax.hex came is property of Cypress

fx2eeprom's People

Contributors

johndmcmaster avatar ribalda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fx2eeprom's Issues

Edit to docs

For info.
On the current Raspberry Pi Jessie build, the libusb install has to be updated to
apt-get install libusb-1.0-0-dev
Otherwise the app does not compile correctly

make error!

libusb 1.0 header is installed

libusb-1.0-0-dev/unstable,now 2:1.0.23-2 amd64 [installed]
  userspace USB programming library development files

but

allan@allan-home:/media/allan/c6293bbf-6fa1-49ca-9b01-24855a810e0e/jtag-usb-fx2lp/fx2lp/fx2eeprom$ make
cc -Wall  -lusb-1.0  fx2eeprom.c   -o fx2eeprom
/usr/bin/ld: /tmp/cc4Z84XR.o: in function `main':
fx2eeprom.c:(.text+0x14b): undefined reference to `libusb_init'
/usr/bin/ld: fx2eeprom.c:(.text+0x1a2): undefined reference to `libusb_open_device_with_vid_pid'
/usr/bin/ld: fx2eeprom.c:(.text+0x1f4): undefined reference to `libusb_kernel_driver_active'
/usr/bin/ld: fx2eeprom.c:(.text+0x209): undefined reference to `libusb_detach_kernel_driver'
/usr/bin/ld: fx2eeprom.c:(.text+0x254): undefined reference to `libusb_claim_interface'
/usr/bin/ld: fx2eeprom.c:(.text+0x2d4): undefined reference to `libusb_control_transfer'
/usr/bin/ld: fx2eeprom.c:(.text+0x3f5): undefined reference to `libusb_control_transfer'
/usr/bin/ld: fx2eeprom.c:(.text+0x45f): undefined reference to `libusb_close'
/usr/bin/ld: fx2eeprom.c:(.text+0x469): undefined reference to `libusb_exit'
collect2: error: ld returned 1 exit status
make: *** [<builtin>: fx2eeprom] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.