Skip to main content

Python package for generation of AVR8 project

Project description

AVR project skeleton generator

gen_avr8 is tool for generation of AVR8 project skeleton for development of embedded applications.

Developed in python code.

The README is used to introduce the tool modules and provide instructions on how to install the tool modules, any machine dependencies it may have and any other information that should be provided before the modules are installed.

gen_avr8 python checker gen_avr8 package checker GitHub issues open GitHub contributors

Table of Contents

Installation

Used next development environment

debian linux os

gen_avr8 python3 build

Currently there are three ways to install package

  • Install process based on using pip mechanism
  • Install process based on build mechanism
  • Install process based on setup.py mechanism
  • Install process based on docker mechanism
Install using pip

Python is located at pypi.org.

You can install by using pip

#python3
pip3 install gen-avr8
Install using build

Navigate to release page download and extract release archive.

To install gen_avr8 type the following

tar xvzf gen_avr8-x.y.z.tar.gz
cd gen_avr8-x.y.z/
# python3
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py 
python3 -m pip install --upgrade setuptools
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
pip3 install -r requirements.txt
python3 -m build --no-isolation --wheel
pip3 install ./dist/gen_avr8-*-py3-none-any.whl
rm -f get-pip.py
chmod 755 /usr/local/lib/python3.9/dist-packages/usr/local/bin/gen_avr8_run.py
ln -s /usr/local/lib/python3.9/dist-packages/usr/local/bin/gen_avr8_run.py /usr/local/bin/gen_avr8_run.py
Install using py setup

Navigate to release page download and extract release archive.

To install gen_avr8 locate and run setup.py with arguments

tar xvzf gen_avr8-x.y.z.tar.gz
cd gen_avr8-x.y.z
# python3
pip3 install -r requirements.txt
python3 setup.py install_lib
python3 setup.py install_egg_info
Install using docker

You can use Dockerfile to create image/container.

Dependencies

gen_avr8 tool requires other modules/libraries

Usage

Short example of usage gen_avr8 tool

Create workspace directory Blink

mkdir Blink
cd Blink/

Crete AVR8 project files, by using parameters

python gen_avr8_run.py -n Blink -t app

Running build process

cd build/
make all

In case for missing subtool from toolchain, please install the following packages with your favorite package manager

  • gcc-avr
  • binutils-avr
  • gdb-avr
  • avr-libc
  • avrdude

Install directly from the shell as root user (debian)

apt-get install gcc-avr binutils-avr gdb-avr avr-libc avrdude

Supported MCUS

Current list of supported microcontrollers

attiny2313    atmega128      at90s2313
attiny24      atmega1280     at90s2333
attiny25      atmega1281     at90s4414
attiny26      atmega1284p    at90s4433
attiny261     atmega16       at90s4434
attiny44      atmega163      at90s8515
attiny45      atmega164p     at90s8535
attiny461     atmega165
attiny84      atmega165p
attiny85      atmega168
attiny861     atmega169
              atmega169p
              atmega2560
              atmega2561
              atmega32
              atmega324p
              atmega325
              atmega3250
              atmega329
              atmega3290
              atmega32u4
              atmega48
              atmega64
              atmega640
              atmega644
              atmega644p
              atmega645
              atmega6450
              atmega649
              atmega6490
              atmega8
              atmega8515
              atmega8535
              atmega88

Tool structure

gen_avr8 is based on Template mechanism

Generator structure

    gen_avr8/
        ├── conf/
           ├── fosc.yaml
           ├── gen_avr8.cfg
           ├── gen_avr8.logo
           ├── gen_avr8_util.cfg
           ├── mcu.yaml
           ├── project_app.yaml
           ├── project_lib.yaml
           └── template/
               ├── adc/
               ├── app/
                  ├── cflags.template
                  ├── csflags.template
                  ├── Makefile.template
                  ├── module.template
                  ├── objects.template
                  ├── ocflags.template
                  ├── odflags.template
                  ├── sources.template
                  ├── subdir.template
                  └── tools.template
               ├── eeprom/
               ├── gpio/
               ├── lib/
                  ├── aflags.template
                  ├── avr_lib_c.template
                  ├── avr_lib_h.template
                  ├── cflags.template
                  ├── csflags.template
                  ├── Makefile.template
                  ├── objects.template
                  ├── ocflags.template
                  ├── odflags.template
                  ├── sources.template
                  ├── subdir.template
                  └── tools.template
               └── uart
        ├── __init__.py
        ├── log/
           └── gen_avr8.log
        ├── pro/
           ├── __init__.py
           ├── mcu_selector.py
           ├── module_type.py
           ├── osc_selector.py
           ├── read_template.py
           ├── template_dir.py
           ├── template_type.py
           └── write_template.py
        ├── py.typed
        └── run/
            └── gen_avr8_run.py
    
    12 directories, 41 files

Code coverage

Name Stmts Miss Cover
gen_avr8/__init__.py 74 10 86%
gen_avr8/pro/__init__.py 79 4 95%
gen_avr8/pro/mcu_selector.py 51 0 100%
gen_avr8/pro/module_type.py 47 0 100%
gen_avr8/pro/osc_selector.py 51 0 100%
gen_avr8/pro/read_template.py 36 0 100%
gen_avr8/pro/template_dir.py 35 0 100%
gen_avr8/pro/template_type.py 43 1 98%
gen_avr8/pro/write_template.py 87 0 100%
Total 503 15 97%

Docs

Documentation Status

More documentation and info at

Contributing

Contributing to gen_avr8

Copyright and Licence

License: GPL v3 License

Copyright (C) 2018 - 2026 by vroncevic.github.io/gen_avr8

gen_avr8 is free software; you can redistribute it and/or modify it under the same terms as Python itself, either Python version 3.x or, at your option, any later version of Python 3 you may have available.

Lets help and support PSF.

Python Software Foundation

Donate

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gen_avr8-2.6.3.tar.gz (32.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gen_avr8-2.6.3-py3-none-any.whl (54.0 kB view details)

Uploaded Python 3

File details

Details for the file gen_avr8-2.6.3.tar.gz.

File metadata

  • Download URL: gen_avr8-2.6.3.tar.gz
  • Upload date:
  • Size: 32.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.0 CPython/3.12.3

File hashes

Hashes for gen_avr8-2.6.3.tar.gz
Algorithm Hash digest
SHA256 5e0bd873217383b14b28baed035185418bbcf68e6324f3850593852867c1bc1a
MD5 27545c47256d1d281c91815c5deb0c3c
BLAKE2b-256 dbf380fa97f65b5589d8ab2a4c44a5c098098126c343041622bbfccfa1ae166d

See more details on using hashes here.

File details

Details for the file gen_avr8-2.6.3-py3-none-any.whl.

File metadata

  • Download URL: gen_avr8-2.6.3-py3-none-any.whl
  • Upload date:
  • Size: 54.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.0 CPython/3.12.3

File hashes

Hashes for gen_avr8-2.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 be5021c90035a01c4a197c3b49c40a4d5cf3f7591ec3fadafcd096863d6531e7
MD5 72c5b585f0b5ea6356c12153b26d428c
BLAKE2b-256 e5547e4652ba5807b3773f9a0525ebc08e5ab6ae70324054d2621edb8fddb8be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page