nRF5 SDK for Mesh(三) Installing the mesh toolchain 安裝編譯工具鏈


To build the example applications, a toolchain based on either CMake or SEGGER Embedded Studio is required. Install instructions are provided for Windows and Debian/Ubuntu. The steps should be similar for other platforms.

SEGGER Embedded Studio

Please see the SEGGER Embedded Studio website for download and installation instructions.

Python

Python is not required to build the mesh stack and examples, but it is required when working with DFU, the Interactive PyACI, generating SEGGER Embedded Studio projects and when building documentation. The nRF5 SDK for Mesh uses Python 3,however, the nrfutil tool used for transferring firmware images over serial requires Python 2.7.

Development tools

For programming nRF5x devices, using nrfjprog is recommended. It is available in the nRFx Command Line Tools for Windows and nRFx Command Line Tools for Linux (64-bit).

CMake based setup

CMake is a build management system used for managing an environment that is independent of the compiler and build system used. Version 3.6 or above is required by the mesh stack.

The following tools must be installed:

Instructions for how to install these tools are provided for the following platforms:

If you want to build the documentation, make sure that the following tools are installed and available from the command line:

See the tools' websites for installation instructions.

 

 

安裝網格工具鏈


  要構建示例應用程序,需要一個基於CMake或SEGGER嵌入式Studio的工具鏈。
  安裝說明是為Windows和debian/ubuntu提供的。
  其他平台的步驟應該類似。

SEGGER Embedded Studio

  請參閱SEGGER嵌入式Studio網站下載和安裝說明。

Python

  Python不需要構建網格棧和示例,但是在使用DFU、交互式PyACI、生成嵌入式Studio項目以及構建文檔時需要它。
  但是,nRF5 SDK使用了Python 3,而用於將固件鏡像傳輸到串行的nrfutil工具則需要Python 2.7。

開發工具

  對於nRF5x設備的編程,建議使用nrfjprog。
  它可以在nRFx命令行工具中使用,用於Linux(64位)的windows和nRFx命令行工具。

基於CMake的設置

  CMake是一個構建管理系統,用於管理一個獨立於編譯器和構建系統的環境。
  版本3.6或以上是網格堆棧需要的。

必須安裝以下工具:

CMake
工具鏈。
支持的工具是arm-eabi-gcc工具鏈和armcc v5工具鏈。
armcc v5的工具鏈也由Keil提供,並與Keil uVision IDE捆綁在一起。
構建系統。
cbuild支持一系列的構建系統,例如忍者和制作。
以下平台提供了如何安裝這些工具的說明:

窗戶
Debian / Ubuntu
如果您想要構建文檔,請確保以下工具已安裝並可從命令行獲得:

Doxygen
Graphviz
Mscgen
Python 3
請參閱工具的網站以獲得安裝說明。

 

第一步:安裝下載HEX工具,即jlink的驅動包,下載地址: nRFx Command Line Tools for Windows .

第二步:安裝Cmake工具:Download the latest installer from the CMake download site and follow the installation instructions.

 

我Windows7 64安裝的是  下面截圖 ,解壓即可

 

cmake-3.10.0-rc5-win64-x64\bin\cmake-gui.exe 雙擊打開即可。2017年11月13日14:09:27,suozhang.

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM