f:id:almightyman:20190904203431p:plain                 +              f:id:almightyman:20190904204211p:plain

 

Eclipse環境構築手順


■Windosw上でのScriptファイル実行できる環境構築

**NOTE** 
git for windowsの方が軽いのでインストール早い。
Bash Shell環境下でScript Fileを実行する為に導入する事であり、IDEデバッグ環境のみ欲しければ特にインストールをしなくても良い。

nrfjprog.exe実行できる環境構築
「nRF Command Line Tools」をインストール。

**NOTE**
インストールした先に「nrfjprog.exe」があるので、windwoswの環境変数のPATHに追加して置くこと。


GNU toolchain for ARM Cortex-M環境構築
GNU ARM Embedded Toolchainから4.9 2015q3のVersionをDownloadしインストールする。

**NOTE**
Windwoswの環境変数のPATHに追加して置くこと。
SDK Versionによってテストしたgcc versionが違う為、SDKのリリースノートを参照してからgcc versionを選定した方が良い。

GNU make環境構築
Make for WindowsからSetupファイルをDownloadしインストールする。

**NOTE**
Windwoswの環境変数のPATHに追加して置くこと。


■SDK 準備
nRF5_SDK_15.0.0

**NOTE**
Windwoswの環境変数のPATHに追加して置くこと。
SDKの種類(for mesh, for homekit)が分けている為、目的に合わせての選定が必要。この場では一版用のnRF5 SDKを使う。


■Install Eclipse Neon IDE for C/C++ Developers
Neon 3

■Install GNU ARM Eclipse plug-in
・必要なPackages.

  • GNU ARM C/C++ Packs
  • GNU ARM C/C++ Cross Compiler
  • GNU ARM C/C++ J-link Debugging


・一番簡単な手順
go to the Eclipse menu → Help → Eclipse Marketplace…, find GNU MCU Eclipse and install

**NOTE**
詳細はこちら


■Install device family pack for the nRF5x series 
The device family pack includes CMSIS System View Description, which is basically is a memory map of all peripheral registers on the device. Although it is not required to have installed it can be quite useful for debugging purposes; it allows you to easily read and write to particular peripherals through a built in peripheral viewer (part of GNU ARM Eclipse Plug-in) without having to look up the the addresses and register descriptions in the datasheet first.

・ Steps to install:

1) Select the Window item from the menu bar, and enter perspective -> open perspective -> other -> Packs.
2) Click the refresh button in the top right corner of the window that got opened. This will fetch all packs from the repositories.
3) Select Nordic Semiconductor in the list of vendors, and install the latest version of Device family pack.


以上で環境の構築は出来ます。
次回は実際のProjectを立上げてから、Compile、書込み、デバッグについて説明します。

ペタしてねフォローしてね!