Coder Social home page Coder Social logo

fv1_eeprog's Introduction

FV1 EEProg

Expansion board used in conjunction with an EZ-USB FX2LP (LCSOFT version) Cypress CY7C68013A dev board (source: ebay) to create an EEPROM programmer that works directly within the SpinAsm software. Idea based on FV-1 Dev board.

*** DOES NOT INVOLVE COPYING THE ORIGINAL FIRMWARE ***

The trick is to force a new hardware to be enumerated as FV-1 Dev board, after being detected by the SpinAsm software the firmware is uploaded via USB into the RAM of the CY7C68013A microcontroller.

The EZ-USB FX2LP board requires a small modification using an external I2C EEPROM programmer, like i.e. PicKit2: The onboard 24LC128 EEPROM needs to be erased and written with the following sequence of bytes starting from the address 0x00:

C0 79 18 01 10 00 00 00

If you don't have any other EEPROM programmer the same task could be done using the Cypress CyConsole program (part of the Cypress Suite USC 3.4.7).

The jumper J1 should be installed, setting the EEPROM I2C address to 0xA2.

Here is how it works: after plugging the usb cable, the cypress chip looks at the I2C bus for an EEPROM at address 0xA0 to read the VID and PID and send them back to the PC. Normally, if the programmer is connected to any FV1 based device, it would read the first bytes of the EEPROM storing the dsp program (it's address is 0xA0). That's why the I2C bus has to be disconnected from the target after plugging the programmer into the USB. That is the job for the daughter board, consisting of a 4066 quad switch controlled from the PA0 line. It's turned on only after a successful enumeration opening up the I2C bus to the target. If the MCU doesn't find any EEPROM at 0xA0 it looks if there is anything at 0xA2 and finds the onboard 24LC128 EEPROM and stored VID&PID there.

After the successful enumeration and detection the RED led goes on showing the programmer is online and ready to work. SpinAsm can directly upload the new firmware into the target eeprom and reset the dsp if necessary.

Automatic resetting the DSP after firmware upload: this feature is done by quickly changing the T0 line (internal/external set of programs), which results in rereading the current DSP program. In order to make a use of it in your application do not tie up the T0 line directly to the VDD (3.3V), but use a 10k pull up resistor.

*** UPDATE 10.2019 *** I have updated the project to work with the newer CY7C68013A dev boards.

Here is the link to the OSH Park project:

https://oshpark.com/shared_projects/5Jfe9GrT

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.