ASF built using routine methods of writing programs is very convenient, but because ATMEL development board system routines and user support are often different board configurations, so we need to create their own projects. The following describes a method to quickly create an ASF project in AS7.0 in.
1, first of all start from the menu, select File -> New -> Project
2, and select GCC C ASF Board Project, the project thus created will automatically add the ASF framework. If you do not use ASF, you can select the following GCC C Executeable Project or GCC C ++ Executeable Project, it is the most basic use of C / C ++ projects created in this way. Then select the name and location of the following items, you can create a project.
3, and then select the chip is used. Select a category start Device Famlily chip, and then select the specific model. It can also be part of the model name of the filter input box, so you can quickly find the required model. After selecting the chip, also you need to choose what template board. Generally, we use User Board template, if there ATMEL chips using its own development board, but also more and more templates. After determining the project file is created.
4. Once created, the AS7 Solution Explorer on the right you can see the file of the project. In which the ASF ASF is a system file, do not modify this section
5, the basic configuration is the config, including a clock, the board parameters.
6, the next step is to configure ASF module. In ASF Wizard tab, choose Project we just created. The need to select Project, is because a Solution that can have multiple Project, but usually we add only one.
ASF can then select the required modules, such as serial, GPIO, ADC, etc. Available Modules in the following. After selecting a module, the following points need to be added Add. We can also delete unwanted ASF module from the right.
7, there can also be filtered, ASF quickly find the required modules.
8、添加好需要的ASF模块,按下Apply添加文件,添加前,AS7会提示需要进行哪些操作,比如添加哪些文件、删除哪些文件等。
9、 如果不清楚某个ASF模块的用法,也可以在这里找到。点开ASF模块,就可以看到有API Documentation和Quick Start Guide,双击就可以看到相关文档。
10、这些文档和帮助是在ATMEL网站上,所以需要联网在线查看,稍微有些不方便。