AVR Visual Programming

milgo's picture
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Type: 

Compiler/Assembler: 

 

What I've created is a environment containing open source software to build applications for AVR microcontroler (atmega8 in this example) using diagrams in DIA (Microsoft Windows only).
This environment consists of software like: imagemagick, doxygen, saxon xslt, dia diagram editor, java, WinAVR.

Basecally it works like this:

  1. Modify functions.c which contain function definitions
  2. Modify functions.h which contain function declaration
  3. Generate functions blocks for DIA using generate.bat script (as administrator)
  4. Open DIA to draw your program using previously generated function block (drag blocks from side bar)
  5. Connect blocks with each other.
  6. Save and compile program using compile.bat script (writing "compile.bat program_name.dia" - program_name.dia must be in the same directory as compile.bat).
  7. Download binary to device (you can use download.bat script but you must modify MAKEFILE in src directory to use with your programmer)

 

So as you can see there are to scripts generate.bat and compile.bat. What they do is they transform doxygen and dia files (which are XML files) using special XSLT transformations and they output them as other files.
This project was tested on atmega8. You can try for other devices it should work but you must modify makefile and setup.c in src directory.

How to install:

  1. Install newest Java JRE  (add it's directory to PATH environment variable)
  2. Install imagemagick  (add it's directory to PATH environment variable)
  3. Install Doxygen (add it's directory to PATH environment variable)
  4. Install SAXON XSLT (set SAXONDIR variable in setup.bat to point directory to saxon main directory)
  5. Install DIA diagram editor (set DIADIR variable in setup.bat to point directory to DIA main directory)
  6. Install WinAVR (add it's directory to PATH environment variable)

 

 

For more information visit develimgo.blogspot.com