Atmel Studio 6使用

https://www.jb51.net/softs/556230.html

Atmel Studio6也叫Avr Studio 6,是一款由Atmel公司開發的免費、集成化開發環境(IDE),可用來開發和調試基於Atmel ARM Cortex-M和AtmelAVR微控制器(MCU)的應用,Atmel Studio6提供了一個無縫、易用的環境,包含C/C++編譯器、彙編器和模擬器,供用戶編寫、構建和調試採用C/C++或彙編代碼編寫的應用,還能與系統內的調試器和編程器無縫連接,進一步簡化了代碼開發,需要此款工具的朋友們可以前來下載使用。

Atmel Studio 6.2現已推出,新版增加了先進的調試功能(例如數據和中斷跟蹤),提高了RTOS集成,能夠更好地調試已優化的代碼,通過引入Atmel Gallery和Atmel Spaces兩個模塊,進一步簡化了內嵌式MCU設計,減少了開發時間和成本。

Atmel Studio6使用教程

這裏以GCC編譯C語言編譯一個8位的AVR爲例,AVR Studio 6已經集成了AVR Toolchain,是最新版本3.4.0,不需要再安裝WinAVR,也不需要再安裝AVR toolchain。編譯一個AVR時,需要做以下幾件事,以AT90CAN128爲例:

假設在新建項目時已經選擇好了芯片AT90CAN128和工具,例如:JTEGMKII

1、在項目裏添加文件:

一般只需要添加C源程序文件,頭文件不需要。其它文件例如說明之類的可視情況添加,這樣的話可以快捷地打開查看。

方法:右鍵點擊項目名稱,我這裏是“controller_CANbootloader”,選擇“添加”--“現有項”

然後找到要添加的C文件。注意按添加按鈕時要按右邊的小三角形選擇“添加爲鏈接”。否則將會把文件拷貝到項目目錄下。

2、設置頭文件路徑 右鍵點擊項目名稱,我這裏是“controller_CANbootloader”,選擇“屬性”點帶綠色加號的按鈕,然後去找到存放頭文件的路徑。

3、設置晶振頻率在“屬性”裏:我這裏是16M

4、添加自定義庫,如果有的話在“屬性”裏:我這裏有3個,原來的m不管它,保留。

5、定位代碼地址,bootloader是必須的,其它程序也可能需要在“屬性”裏:

6、設置需要的生成文件在“屬性”裏:生成的文件在DEBUG文件夾下。

7、設置優化率

定位代碼地址:

 

設置晶振頻率:

 

設置頭文件路徑:

 

設置需要生成的文件:

 

設置優化率:

 

添加自定義庫:

 

現有項:

 

AVR Studio 6常用設置

1、字體和TAB鍵的設置。

由於AVR Studio 6採用Visual Studio 2010外殼,所以這部分的設置和VS完全相同。

選擇tools->options,打開相應的選項卡即可。

字體設置

 

TAB設置

由於在不同的編輯器中TAB鍵的長度不同,所以我個人習慣插入Space即空格!這樣在記事本打開的代碼的話就稍微好看一點!

 

 

2、時鐘設置

如果要使用AVR Studio內部自帶的軟件延時函數,則必須要定義時鐘頻率。若不定義,默認爲1000000MHZ。

選擇project->properties

Atmel Studio 6新功能特性

關鍵特性

•Support for 300+ Atmel AVR and SAM3, SAM4 and SAM D20 devices

支持300+ Atmel AVR SAM3,SAM4 SAMD20芯片

•Atmel Software Framework (ASF) 

愛特梅爾公司軟件框架

•Vast source code library including drivers, communication stacks, graphic services and touch functionality. ASF enables customers to focus on application differentiation, and accelerates design time.

巨大的源代碼庫包括司機、通信棧、圖形功能服務和聯繫,ASF使客戶專注於應用差異化和加速設計時間。

•More than 1,600 project examples with source code.

1600多個工程實例源代碼。

•ASF Explorer for selecting and integrating ASF components into your own design.

ASF Explorer用於選擇和集成ASF組件到您自己的設計。

•Atmel Gallery 

Atmel Gallery

•Online apps store for development tools and embedded software from Atmel and third parties.

嵌入式軟件開發工具在線應用商店從愛特梅爾公司和第三方提供。

•Easy and secure purchasing process from the Atmel Studio 6 platform.

容易和安全從Atmel Studio 6平臺採購流程。

•Atmel QTouch® Composer 

愛特梅爾公司QTouch®庫

•Seamlessly ties together the tools required to edit the code in Atmel Studio 6 and to tune the touch design, making 

無縫聯繫在一起的工具需要編輯Atmel Studio 6中的代碼和優化觸摸設計,製作比以往更容易將電容觸摸功能集成到應用程序。

•The validation wizard provides an easy and intuitive way of testing system performance.

驗證嚮導提供了一個簡單而直觀的方式測試系統的性能。

•With the power analyzer, users can monitor power consumption of the microcontroller in real time.

隨着功率分析儀,用戶可以實時監控單片機的功耗。

•The real-time data graph and trace graph records data generated during debugging, storing it for later playback. 

This allows the user to inspect recorded data sets.

實時數據圖和跟蹤圖記錄在調試的過程中生成的數據,存儲後回放,這使得用戶檢查記錄的數據集。

•Wireless Composer 1.0 

無線設計 1.0

•Provides a performance test application and contains easy-to-understand displays to configure, command, and monitor information coming from the performance test application running on the target.

提供了一個性能測試應用程序,包含易於理解的顯示配置,命令,並監控信息在目標系統上運行性能測試應用程序。

•Integrated C/C++ compiler 

C / c++編譯器集成

•Provides one seamless environment with everything the designer needs to write, build, program and debug C/C++ andassembly code.

爲設計師提供了一個無縫的環境,在寫,構建、程序和調試C / c++和彙編代碼。

•Customers can choose the coding style that best fits their project and generates the most optimal code for their designs.

客戶可以選擇最適合他們的項目的編碼風格和生成最優的代碼設計。

•Advanced debugging features 

高級調試功能

Support for complex data breakpoints

支持複雜的數據斷點

•Nonintrusive trace support for SAM3 and SAM4 family of devices, including:

專業不跟蹤支持SAM3和SAM4的設備,包括: 

•Statistical code profiling

統計代碼分析

•Interrupt trace / monitoring

中斷跟蹤/監控

•Data trace

資料追蹤

•Polled Data trace support for ARM Cortex M0+

調查數據跟蹤支持ARM Cortex M0 +

•Real-time variable tracking with optional timestamp

實時變量跟蹤與可選的時間戳

•Integration of Percepio Tracealyzer technology for providing leading-edge visualization of debug data and RTOS awareness

整合Percepio Tracealyzer提供前沿技術的可視化調試數據和操作系統意識

•Integrated editor with visual assist

綜合編輯器與視覺輔助 

•Write code faster with visual assist code completion tools

編寫代碼更快的使用視覺輔助代碼完成工具

•New project wizard 

新項目嚮導

•Easily create a new project from scratch or from a large library of example designs.

輕鬆地從頭開始創建一個新項目或大型庫的設計例子

•In-system programming and debugging 

在系統編程和調試

•Provides a seamless interface to all Atmel in-circuit programmers and debuggers.

所有愛特梅爾公司提供了一個無縫接口軟件編程和調試器。

•Full debug views 

完整的調試視圖

•Creates a transparent view into CPU and peripherals, enabling easy code development and debugging.

創建一個透明的視圖到CPU和外圍設備,使簡單的代碼開發和調試。

•Full chip simulation 

全芯片軟件仿真 

•Delivers an accurate model of CPU, interrupts and peripherals.

提供一個精確的模型,CPU、中斷和外圍設備

•Support for external stimuli.

支持外部激勵

•Atmel Spaces

Atmel 空間

•Cloud-based collaborative workspace for securely sharing embedded design and tracking progress of projects with your peers.

基於雲計算的協作工作空間和你的同行安全地共享嵌入式設計和跟蹤項目的進展

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章