FX3 SDK 預設的 IDE 是 Eclipse. 雖然 Eclipse 很常見, 但是因為它可以客製化, 有些細節的地方還是要摸索一下. 例如說, include 和 library 的路徑設定.
include path
在專案瀏覽畫面, 在要設定的專案名稱上按右鍵, 會跳出專案選單, 選擇最下面的 Properties, 打開專案屬性視窗.
在以下的專案屬性視窗中, 依序進入 include 設定:
- 在左邊的選項中, 選擇 “C/C++ Build”, 以及其下的 “Settings”.
- 在中間的 Settings 窗格, 選擇 “Tool Settings” 分頁.
- 在“Tool Settings” 分頁中, 選擇 “ARM Sourcery Windows GCC Compiler”, 以及其下的 “Directories”
- 按右上角的加號, 加入新的 include path

library path
- 在左邊的選項中, 選擇 “C/C++ Build”, 以及其下的 “Settings”.
- 在中間的 Settings 窗格, 選擇 “Tool Settings” 分頁.
- 在“Tool Settings” 分頁中, 選擇 “ARM Sourcery Windows GCC Linker”, 以及其下的 “Miscellaneos”
- 在右邊的窗格, 捲到最下面, 可以看到 “Other flags”, 在這邊可以輸入要用到的 library 的路徑及檔名.

沒有留言:
張貼留言
請提供您寶貴的意見