Supporting Arduino in ASF

Dc4a66b9383db539130c320c530ad28f?s=47 OlegZero13
August 15, 2018

Supporting Arduino in ASF

Supporting custom hardware in Atmel Software Framework 3. Preparation for the training session.

Dc4a66b9383db539130c320c530ad28f?s=128

OlegZero13

August 15, 2018
Tweet

Transcript

  1. 1.

    © 2012 Copyright Atmel Corporation 1 Oleg Żero Application Engineer

    Custom Application Support in Atmel Studio Framework (ASF)
  2. 2.

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

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

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

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

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

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

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

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

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

    17 © 2012 Atmel Confidential 06/10/2012 Select Insert > Header

    & Footer > Type Title in Footer field Thank you for your attention