Coder Social home page Coder Social logo

mfile's Introduction

MFile

This is an update to the winAVR MFile meant to make my life with AVR on linux (and with AS6) a bit easier. I will eventually add some additional tools to facilitate:

  • Creation of Makefiles using an existing AS6 project as a source.
  • Creation of AS6 .cproj files to facilitate debugging
  • Fuses
  • Automated devicelist based generation using <avr/io.h>
  • ???

Version

0.1...ish

Recipe

Unless you're really good with your editor's macros, and you need a new device list, simply skip to Installation.

Vim and AVR-GCC. For now, I'm (in vim) copying most of <avr/io.h> directly into the xmem.c, and then including every single device file, and collecting every single device tag (using some #undefs to keep the compile going).

Build xmem.c, piping stderr into a file. (Failure is success!)

avr-gcc -c xmem.c 2> output.txt

Note that the 2 is important!

Once that's done, some macros are executed in vim to remove the noise, leaving only #pragma messages, and #warnings (unsupported devices). Allowing a scrape of every supported device, and their external memory starting address, if there is one.

one more macro to make the device list, and place into mfile.tcl

Installation

Simply copy the new mfile.tcl over your old one.

License

Whatever MFile's licence is, I suppose.

Anthony Clay - ZarthCode LLC

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.