Skip to content

Qtouch on SAMD20/21 and QT6 Xplained board by Ateml

Notifications You must be signed in to change notification settings

robbie-cao/samd-touch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Qtouch on SAMD20/21 and QT6 Xplained board by Ateml

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published