Giter VIP home page Giter VIP logo

ftdi_cpu_prog's Introduction

ftdi_cpu_prog

tool to automate the programming of microcontrollers

In order for this tool to work, the CBUS pins must be configured as GPIO. This configuration can be achieved by using the tool at ft232_cbus_config which configures all CBUS pins as GPIOs. This configuration, updates internal EEPROM and needs only be performed once on a given FTDI chip.

compile

This application uses libftdi1 and libudev-dev, so these libraries must be installed (and, depending of the distribution, headers too)

apt-get install libftdi1-2 libftdi1-dev libudev-dev

and if not already done, install pkg-config, make and gcc.

To build the app:

$ make

udev

By default, users have no access to converters. A rule file (99-ftdi_cpu_progr.rules) for udev is provided at the root directory of this repository. These rules set access right and group (plugdev) when a converter is plugged.

$ sudo cp 99-ftdi_cpu_prog.rules /etc/udev/rules.d/
$ sudo udevadm control --reload-rules && udevadm trigger # force udev to take new rule
$ sudo usermod -a YourUserName -G plugdev # add user to plugdev group

After that you need to unplug and replug your device.

Usage

./ftdi_cpu_prog -b [0-3] [-bd [0-1]] -r [0-3] [-rd [0-1]] -m [0-1] -d device
        -b pin connected to BOOT
        -bd default state for BOOT
        -r pin connected to reset
        -rd default state for reset
        -m mode 0: bootloader, 1: simple reset

For -b and -r args, value must match indexes for CBUSx connected to BOOT and RESET

ftdi_cpu_prog's People

Contributors

trabucayre avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

noisesignal

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.