Slide 1

Slide 1 text

© 2012 Copyright Atmel Corporation 1 Oleg Żero Application Engineer Custom Application Support in Atmel Studio Framework (ASF)

Slide 2

Slide 2 text

2 © 2012 Atmel Confidential Content 1. A bit of theory... • Structure of the 3rd generation of ASF 2. A bit of practice... • Assignment 1 – simple application • Assignment 2 – porting to a custom board • Assignment 3 – adding support for a new component 3. General guidelines in customizing ASF • Board • Component 10/10/2012

Slide 3

Slide 3 text

3 © 2012 Atmel Confidential AN-9684: Custom application support in ASF A bit of theory... The structure of the 3rd generation of ASF 10/10/2012

Slide 4

Slide 4 text

10 © 2012 Atmel Confidential A bit of theory... The structure of the 3rd generation of ASF • Pinout and pinmux definitions • I/O initialization • ”schematic in code” • replace register-level code • configure peripheral modules • high-level functions to handle e.g.: - graphics - file systems • manage hardware external to MCU • similar to drivers • compiler abstraction layer • 1000’s of example applications • representation of user application AN-9684: Custom application support in ASF 10/10/2012

Slide 5

Slide 5 text

11 © 2012 Atmel Confidential 10/10/2012 A bit of theory... Folder system • Pinout and pinmux definitions • I/O initialization • ”schematic in code” • replace register-level code • configure peripheral modules • high-level functions to handle e.g.: - graphics - file systems • manage hardware external to MCU • similar to drivers • compiler abstraction layer • 1000’s of example applications • representation of user application common common2 sam0 thirdparty ASF services components drivers boards services components drivers boards services components drivers boards config conf_clocks.h conf_boards.h conf_display.h conf_whatever.h AN-9684: Custom application support in ASF

Slide 6

Slide 6 text

12 © 2012 Atmel Confidential 06/10/2012 Select Insert > Header & Footer > Type Title in Footer field A bit of practice... Assignment 1 – simple application • SAMD21 Xplained Pro board + 2 extensions • All support in ASF (boards, drivers, components, services) • simple: reading sensor data – displaying text

Slide 7

Slide 7 text

13 © 2012 Atmel Confidential 06/10/2012 Select Insert > Header & Footer > Type Title in Footer field A bit of practice... Assignment 2 – changing of the board • SAMD21 Xplained Pro board replaced with Arduino Zero • SAMD21J18A replaced with SAMD21G18A • No ASF support for the board

Slide 8

Slide 8 text

14 © 2012 Atmel Confidential 06/10/2012 Select Insert > Header & Footer > Type Title in Footer field A bit of practice... Assignment 3 – now component • Arduino Zero stays • Assume no SSD1306 display controller • We will learn how to add new features

Slide 9

Slide 9 text

15 © 2012 Atmel Confidential 06/10/2012 Select Insert > Header & Footer > Type Title in Footer field General guidelines Boards • We have a standard recipe • Three files to work with • Four steps to follow

Slide 10

Slide 10 text

16 © 2012 Atmel Confidential 06/10/2012 Select Insert > Header & Footer > Type Title in Footer field General guidelines Components (drivers) • We have guidelines • Complex process • Uses datasheets a lot

Slide 11

Slide 11 text

17 © 2012 Atmel Confidential 06/10/2012 Select Insert > Header & Footer > Type Title in Footer field Thank you for your attention