Git Product home page Git Product logo

samd-touch's Introduction

Touch on Atmel SAMD20/21 and QT6 Xplained Board

A touchpad solution on Atmel SAMD20/21 and QT6 Xplained board based on ASF(Atmel Software Framework) and QTouch Surface Library.

  • The Atmel SAM D20/D21 Xplained Pro evaluation kit is ideal for evaluating and prototyping with the Atmel SAM D20/D21 ARM Cortex-M0+ based microcontrollers.
  • The QT6 Xplained Pro is a QTouch Surface extension board for Xplained Pro boards that demonstrates the Peripheral Touch Controller (PTC) as a high performance touch-surface controller.
  • The Atmel Software Framework (ASF) is a MCU software library providing a large collection of embedded software for Atmel flash MCUs: megaAVR, AVR XMEGA, AVR UC3 and SAM devices.
  • Atmel QTouch Surface Library makes it simple for developers to embed capacitive-touch surface functionality into general-purpose Atmel SAM D20/D21 microcontroller applications.

How to Build

Build with arm-none-eabi- toolchain in Cygwin/Linux/MacOS.

Build in App Dir

$ cd project_root_dir
$ source envsetup.sh    (*MUST*, one time shot)
$ cd apps/hmc
$ make clean
$ make
- or -
$ make -f Makefile

Build App from Top

$ cd project_root_dir
$ source envsetup.sh    (*MUST*, one time shot)
$ mmm apps/hmc

Usage:
  mmm [path] [option]
  - path   - relative path to Makefile (for an App) to be built with
  - option - target to make, eg clean, debug, release, etc
Example:
  mmm apps/hmc clean (* at top folder)
  mmm apps/hmc       (* at top folder)
  mmm . clean        (* at apps/hmc)
  mmm                (* at apps/hmc)

How to Flash Image

Flash by Path From Top

$ cd project_root_dir
$ ./fam.sh [path] [action]

Usage:
fam.sh [path] [option]
* path:
    - App path, relative path to exe/xxx.bin in unix format,
      eg, MUA/main (exe not included in path)
* option:
    - E - erase
    - P - program (default)
	- R - read
    - EP

Example:

$ ./fam.sh apps/hmc
$ ./fam.sh apps/hmc EP
$ ./fam.sh . E
$ ./fam.sh
$ ./fam.sh . P
**Support Linux and Mac OS.**

Flash Script Wrapper

$ cd project_root_dir
$ source envsetup.sh
$ fa [path] [action]
-or-
$ cd <path_to_app>
$ fa
**Support Linux and Mac OS.**

fa is a wrapper of fam.sh, it use the same parameters and can be used anywhere which have exe/xxx.bin in the folder without parameters.

edbg Usage

Usage: edbg [options]
Options:
  -h, --help                 print this help message and exit
  -b, --verbose              print verbose messages
  -e, --erase                perform a chip erase before programming
  -p, --program              program the chip
  -v, --verify               verify memory
  -k, --lock                 lock the chip (set security bit)
  -r, --read                 read the whole content of the chip flash
  -f, --file <file>          binary file to be programmed or verified
  -t, --target <name>        specify a target type (use '-t list' for a list of supported target types)
  -l, --list                 list all available debuggers
  -s, --serial <number>      use a debugger with a specified serial number
  -o, --offset <number>      offset for the operation
  -z, --size <number>        size for the operation

Example

$ edbg -bpv -t atmel_cm0p -f apps/hmc/samd_qtouch_mutlcap_example_flash.bin
Debugger: ATMEL EDBG CMSIS-DAP ATML2407060200000332 02.01.0157 (S)
Target type: Cortex-M0+
Target: SAM D21J18
Programming....... done.
Verification....... done.

Resources

samd-touch's People

Contributors

robbie-cao avatar

Stargazers

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