close

如何建立新的專案 for LAUNCHXL-F28379D

1. 需要的編譯軟體

   a. Code Composer Studio (CCS) Integrated Development Environment (IDE)

      網址: http://www.ti.com/tool/CCSTUDIO-C2000

  b. C2000Ware for C2000 Microcontrollers

     (內含單晶片的define, drivers, libraries、example..縮短開發時間)

   網址: http://www.ti.com/tool/C2000WARE

2. 新增一個新專案

   a. 開啟一個新專案

     CreateProject1.png 

  

  b. 設定晶片參數,這個步驟要選擇空專案,因新增的專案是main.c

     所以自已新增一個main.cpp或是選擇包含main.c的專案,然後手動

    更改副檔名.c 改為.cpp。

   ps. 因include "F28x_Project.h",有包含類別(class)的定義

    CreateProject2.png  

  c. 新增主程式 main.cpp

CreateProject3.png

CreateProject4.png

d. 引用 "F28x_Project.h"

   因單晶片的定義都在這個標頭檔裡

CreateProject5.png

 

e. 設定標頭檔存放的位置 

CreateProject6.png

CreateProject7.png

CreateProject8.png

 f. 編譯

CreateProject9.png

若編譯後沒有出現錯誤訊息,表示編譯成功。

 

 
arrow
arrow
    文章標籤
    F28379D C2000 LanunchPad
    全站熱搜
    創作者介紹
    創作者 Dennis 的頭像
    Dennis

    Dennis的學習筆記

    Dennis 發表在 痞客邦 留言(0) 人氣()