$30 off During Our Annual Pro Sale. View Details »

Supporting Arduino in ASF

OlegZero13
August 15, 2018

Supporting Arduino in ASF

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

OlegZero13

August 15, 2018
Tweet

More Decks by OlegZero13

Other Decks in Research

Transcript

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

    View Slide

  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

    View Slide

  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

    View Slide

  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

    View Slide

  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

    View Slide

  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

    View Slide

  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

    View Slide

  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

    View Slide

  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

    View Slide

  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

    View Slide

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

    View Slide