Git Product home page Git Product logo

freemcan's Introduction

freemcan

What is freemcan?

freemcan is software for using custom gamma spectrum analyzer and geiger counter hardware. It consists of both the firmware to run on the custom hardware and of hostware to run a Linux PC.

As the custom hardware contains a high voltage generator, we have not published the schematics or board files for its hardware yet.

Build Status

Why the name?

  • We wanted it to be Free Software.

  • MCA is the acronym for Multi Channel Analyzer which is the common term for the device.

  • "freemca" produced a few hits on Google. "freemcan" did not. Brand name collision wise, an unused word appeared to be the better choice.

The Plan

(FIXME) No plan.

Building

For a reasonably quick build, we recommend a parallel build:

$ make -j -O -l 5

Otherwise, you can build serially with

$ make

Installation is not supported at this time.

Software Requirements

  • GNU make

  • avr-gcc based AVR toolchain

  • avr-binutils >= 2.19 (we use INSERT AFTER in linker scripts)

  • POSIX/GNU/Linux/Unix host system

  • gcc compiler for host system

For building the internal code documentation (mostly of interest to freemcan developers), you additionally need

Usage

TBA.

The License

LGPLv2.1+

Hacking

Subdirectory Contents

  • firmware/

    The device firmware for Atmel ATmega644 microcontroller

  • code-comparison/

    Some common tasks our firmware needs written in portable C and compiled for all platforms we have a cross compiler for. This lets us compare the assembly language generated for those platforms.

  • hostware/

    All the software running on the PC host. For lack of a better word, we called it "hostware" to distinguish it from the "firmware".

  • emulator/

    Simple attempt at emulating the device connected to a device file by having an Erlang program connected to a Unix domain socket.

Ideas

  • cbi/sbi do not modify SREG. That makes it easy to write an ISR without saving any registers, like e.g.:

    foo_vector:           /* enter ISR: 5 clock cycles */
            sbi foo,bar              /* 2 clock cycles */
            reti          /* leave ISR: 5 clock cycles */
    

    for doing the reset timing stuff, potentially at ADC trigger, and after timer IRQ counted delay later, or similar stuff.

Known issues

  • ccache is known to not generate the *.i and *.s when called with the -save-temps=obj option. Until your local ccache has been fixed, set CCACHE_DISABLE=true or remove /usr/lib/ccache or /usr/lib64/ccache from the PATH as a workaround.

    The same issue applies to other files like linker map files (-Wl,-Map=$(@:.elf=.map),--cref) and assembly listing files (-Wa,-adhlns=$(@:.o=.lst)).

freemcan's People

Contributors

ndim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.