Tuesday, March 25, 2014

Simple Blink example for XMEGA (using ASF)

Environment

Board: ATXMEGAA3BU-XPLD
Device: ATxmega256A3BU
Debugger: Atmel-ICE
IDE: Atmel Studio 6.2b - full



It's easy! Just follow the steps.




Connect the board, debugger to PC.
Look at that Adapter board.
It's ridiculous!!!




Run Atmel Studio. SPLASH!



New Project (Ctrl + Shift + N)


Board Selection
(If you are using other board. Just select the device you are using.)


main.c is in the 'src' folder




Now let's add some ASF modules for Blink project.
ASF Wizard (Alt + W)

Search for 'Delay routines'
Add >>
Apply




It's just a summary. Press 'OK'


Got all modules. Time to code.


It is just a code for blink! Simple!
Read the comments.




Build the project(F7), Start Without Debugging(in the Debug menu)

than Project Properties window ( Alt + F7 ) pops up.

Choose correct tool and interface.


Start Without Debugging(in the Debug menu) again.

Success!

No comments:

Post a Comment