GithubHelp home page GithubHelp logo

matveyt / usbisp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aleh/usbisp

0.0 0.0 0.0 769 KB

USBasp firmware working with a clone "USB ISP Version 2.0" (marked "MX-USBISP-V4.00" or "MX-USBISP-V5.00" on the PCB)

Shell 0.02% C++ 0.59% C 40.25% PHP 10.03% Assembly 40.75% Makefile 2.11% HTML 6.25%

usbisp's Introduction

USBasp on a clone

This is a fork of the original USBasp firmware (the file from 2011-05-28) tweaked to work with clone "USB ISP Version 2.0" devices (marked "MX-USBISP-V4.00" on the PCB). The original documentation and license is in Readme.txt.

Update: as reported by erokui and steadramon devices marked with "MX-USBISP-V5.00" and "MX-USBISP-V6.00" work as well, the latter have to be flashed with -p ATmega88P option. Thanks guys!

What is USB ISP?

This is a very cheap programmer for AVR-based microcontrollers available from many Chinese suppliers. Hardware-wise it appears to be very similar to USBasp, but out of the box it works only with a Windows GUI utility from the manufacturer and does not work with avrdude.

Here is how it looks:

USBISP Assembled

With the aluminium shell removed:

USBISP PCB Front

There is a "MX-USBISP-V4.00" label on the back of the PCB, see the photo below. If you have "V3.00" device, then better check this post instead.

Quick Start

  1. Remove the aluminium shell and put the device into the "self-programming" mode by connecting two pads on the back of the PCB marked with "UP":

    USBISP PCB Back

  2. Connect your favorite programmer to the header of USB ISP referring to the pinout on the case of the device. If you don't have one around, then use an Arduino with ArduinoISP example running on it. It is supported by avrdude as avrisp. Be sure to set baud rate to 19200.

  3. Upload the prebuilt firmware in ./firmware/main.hex and set the fuses to HFUSE=0xDD and LFUSE=0xFF.

  4. Disable self-programming jumper.

Now connect the USB ISP to your computer. You should see the LED turning red for a bit and then turning blue. A USBasp HID device should appear in your USB tree. (Go to System Information > USB on a Mac.) Note that the device won't appear as a serial port, this is normal.

Now you can check if avrdude can talk to it:

 avrdude -c usbasp -P usb -p m328p

If you don't have anything connected to the programmer, then you'll see it complaining:

$ avrdude -c usbasp  -P usb -p m328p

avrdude: error: program enable: target doesn't answer. 1 
avrdude: initialization failed, rc=-1

But you should not get any USB-related errors.

Now connect it to a device to be programmed and read the flash first. If it works, then try writing something.

Building from Sources

If you have avr-gcc toolchain installed, then navigate to ./firmware and run:

make main.hex

After this succeeds adjust the Makefile to suit your programmer and then do:

make flash && make fuses

Good luck!


usbisp's People

Contributors

aleh avatar evark avatar

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.