Supporting custom hardware in Atmel Software Framework 3. Preparation for the training session.
© 2012 Copyright Atmel Corporation1Oleg ŻeroApplication EngineerCustom Application Supportin Atmel Studio Framework (ASF)
View Slide
2 © 2012 Atmel ConfidentialContent1. A bit of theory...• Structure of the 3rd generation of ASF2. A bit of practice...• Assignment 1 – simple application• Assignment 2 – porting to a custom board• Assignment 3 – adding support for a new component3. General guidelines in customizing ASF• Board• Component10/10/2012
3 © 2012 Atmel Confidential AN-9684: Custom application support in ASFA bit of theory...The structure of the 3rd generation of ASF10/10/2012
10 © 2012 Atmel ConfidentialA bit of theory...The structure of the 3rd generation of ASF• Pinout and pinmuxdefinitions• I/O initialization• ”schematic in code”• replace register-levelcode• configure peripheralmodules• high-level functions tohandle e.g.:- graphics- file systems• manage hardwareexternal to MCU• similar to drivers• compiler abstractionlayer• 1000’s of exampleapplications• representation of userapplicationAN-9684: Custom application support in ASF 10/10/2012
11 © 2012 Atmel Confidential 10/10/2012A bit of theory...Folder system• Pinout and pinmuxdefinitions• I/O initialization• ”schematic in code”• replace register-levelcode• configure peripheralmodules• high-level functions tohandle e.g.:- graphics- file systems• manage hardwareexternal to MCU• similar to drivers• compiler abstractionlayer• 1000’s of exampleapplications• representation of userapplicationcommon common2 sam0 thirdpartyASFservicescomponentsdriversboardsservicescomponentsdriversboardsservicescomponentsdriversboardsconfigconf_clocks.hconf_boards.hconf_display.hconf_whatever.hAN-9684: Custom application support in ASF
12 © 2012 Atmel Confidential 06/10/2012Select Insert > Header & Footer > Type Title in Footer fieldA 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
13 © 2012 Atmel Confidential 06/10/2012Select Insert > Header & Footer > Type Title in Footer fieldA 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
14 © 2012 Atmel Confidential 06/10/2012Select Insert > Header & Footer > Type Title in Footer fieldA bit of practice...Assignment 3 – now component• Arduino Zero stays• Assume no SSD1306 display controller• We will learn how to add new features
15 © 2012 Atmel Confidential 06/10/2012Select Insert > Header & Footer > Type Title in Footer fieldGeneral guidelinesBoards• We have a standard recipe• Three files to work with• Four steps to follow
16 © 2012 Atmel Confidential 06/10/2012Select Insert > Header & Footer > Type Title in Footer fieldGeneral guidelinesComponents (drivers)• We have guidelines• Complex process• Uses datasheets a lot
17 © 2012 Atmel Confidential 06/10/2012Select Insert > Header & Footer > Type Title in Footer fieldThank you for your attention