Giter Site home page Giter Site logo

avr-microboot's Introduction

Microboot AVR bootloader

FEATURES

  • Written in C with only 3 inline assembler instructions.
  • Flash requirement: 256 bytes (atmega8)
  • Only hardware USART required. No interrupts.
  • Fast upload
  • Optional verification
  • Conditional start
  • No power cycle/reset required after code upload to start main app

HARDWARE REQUIREMENTS

AVR mega mcu with at least 1 hardware USART. 3.3V/5V PC UART (FT232r-like USB bridge or MAX232-like level converter is recommended)

SOFTWARE REQUIREMENTS

AVR GCC 4.3.3 or higher Binutils AVR 2.20 or higher Any linux distribution for controlling software

INSTALLATION

Set F_CPU, start condition and baud rate in the firmware/bootloaderconfig.h file. Run make in the firmware directory. Flash firmware/real.bin to the MCU. Run make in the commandline directory to build commandline/boot tool. Connect TTL UART to both MCU and PC (assume /dev/ttyUSB0 to be it's character device later). Restart the MCU while maintaining configured bootloader start condition (just reset it with the reset pin by default)

Build and upload main firmware to the MCU:

 commandline/boot /dev/ttyUSB0 mainfirmware.bin [-v]

Supply optional 3rd argument (anything for now) to enable verification: ~2 times longer upload.

Uploaded firmware will start automatically upon successful upload.

Have a fun.

avr-microboot's People

Watchers

 avatar  avatar

Forkers

vehar

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.