Giter VIP home page Giter VIP logo

atmel-software-package's Introduction

Microchip Software Package

Overview

This softpack comes as an early delivery and all presented APIs are subject to change.

Each software module is provided with full source code, example of usage, and ready-to-use projects.

This softpack is hosted on GitHub.

Supported Platforms

Windows and Linux with the gnu GCC ARM Embedded toolchain. It is downloadable at this address: launchpad.net/gcc-arm-embedded (Mac OS X should also work but as not been tested yet).

Dependencies:

  • GNU make (from MinGW, Cygwin or GnuWin32 for Windows architectures)
  • bash (from MinGW, Cygwin for Windows architectures)

Windows with IAR Embedded Workbench. Dependencies:

  • IAR Embedded Workbench (Tested on version 7.80)
  • bash (from MinGW, Cygwin or GnuWin32) for IAR project generation
  • GNU make (from MinGW, Cygwin or GnuWin32) for IAR project generation
  • mktemp (from MinGW, Cygwin or GnuWin32) for IAR project generation

Contents

Directory Architecture

  • target/xxx All chip and board specific source files for xxx devices

  • target/xxx/toolchain/ Linker and debugger scripts for xxx devices

  • scripts/ generators and build script templates (Makefiles)

  • arch/ CPU Core driver source files

  • drivers/ Driver source files

  • examples/ All examples

  • samba_applets/ Source code for SAM-BA 3.x applets

  • flash_loader/ Source code for IAR flash loader

Examples

The examples are listed in softpack.md.

Usage (GCC ARM Embedded)

Environment Variable

TARGET: Name of the target (sama5d2-xplained for SAMA5D2 XPLAINED ULTRA boards).

VARIANT: Build variant, for example "sram","ddram" or "qspi".

DEBUG: Build with debug flags (default).

TRACE_LEVEL: Log level, 5 correspond to full, 0 to none (default to 5)

RELEASE: Build for release, otherwise build for debug.

V=1: Verbose build

All these variables are optional except for TARGET that must be provided or set at each make invocation.

Build

Run:

make TARGET=target

Run and Debug (with GDB)

To run examples with gdb, JLinkGDBServer must be started. It can be downloaded for each platform at www.segger.com

A make target is provided to launch the test with the correct gdb command arguments, run:

make TARGET=target debug

Usage (IAR)

The Win version of this softpack release comes with pregenerated IAR projects compatible with IAR Systems Embedded Workbench for ARM version 7.80.

The C-SPY device description files and device selections files are not included and must be installed manually.

IAR Project generation

An IAR project can be generated with GNU make, run in the example directory:

make TARGET=target iar

All needed IAR project files will be put in the example directory, including a default workspace one. Each IAR project is configured to JLINK as default debugger driver, as for other setting, you can set up in IAR IDE to suit your connection such as cmsis-dap driver. IAR flash loader is an agent that is downloaded to the target, more flash loaders are provided in this software package, each build variant, for example "sram","ddram", "flash" or "qspi", have it's dedicated flash loader.

Notice: GNU make may fail on Windows platforms if the Makefile contains UNIX line endings. You can use unix2dos on all Makefile files in scripts/ directory to fix this issue.

atmel-software-package's People

Contributors

dirtycold avatar dongjinju avatar edlibin avatar ian2015 avatar jefflinsha avatar jlitzinger-kinestral avatar joshwu avatar ldesroches avatar lfazio avatar libinsha avatar loiclefort avatar lvtingting avatar nicolehe1170 avatar patvilchez avatar pbugalski avatar quarkstrange avatar tonyhan11 avatar wpd avatar xiemin avatar yaxn avatar

Watchers

 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.