Giter Site home page Giter Site logo

samc21democan's Introduction

CAN and CAN-FD demonstration code for SAMC21-XPRO (Atmel SAMC21)

Existing example CAN code for the Atmel SAMC21 was limited to the AT6493 app note.

In the author's opinion, said app note isn't particularly helpful (and is based on the infernal Atmel Software Framework (ASF) to boot).

What is bemusing is that Atmel has some excellent open-source CAN demonstration code in its Atmel SAMA5 Software Package.

Although that code was written for the SAMA5D2, the same Bosch M_CAN is used in both the SAMA5D2 and the SAMC21.

I can only assume that those working on documenting the SAMC21 Atmel didn't realize that they already had this excellent resource at their disposal.

This is my quick and dirty adaptation of said code to run on the SAMC21-XPRO evaluation board.

Requirements

Rowley Crossworks for ARM is needed to compile this code. The source code is written to compile with gcc/clang, but you must adapt the code yourself (adding all the startup code that tends to not be available as freely-distributable open-source) if you wish to adopt a different tool chain.

OR

Leveraging a modified version of the build environment provided by Alex Taradov's mcu-starter-projects, the code can be built using only open-source software. In Ubuntu-derived distributions, this is likely achieved with as little as:

sudo apt-get install gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential

Target Hardware

SAM C21 Xplained Pro Evaluation Kit

Usage

The SAMC21-XPRO provides a USB serial port to the SAMC21 target. Using terminal emulator, open the port at 115200,n,8,1. An 'h' keystroke provides a help menu, and this explains operation.

samc21democan's People

Contributors

majbthrd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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