User Tools

Site Tools


nblocksstudio:installation_for_nblocksstudio1.0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
nblocksstudio:installation_for_nblocksstudio1.0 [2019/12/03 10:06]
faizan
nblocksstudio:installation_for_nblocksstudio1.0 [2020/08/22 04:11] (current)
engineer ↷ Page name changed from nblocksstudio:installation to nblocksstudio:installation_for_nblocksstudio1.0
Line 1: Line 1:
 <WRAP classes width :​language>​ <WRAP classes width :​language>​
-"​big"​ content+
 </​WRAP>​ </​WRAP>​
  
-  * <todo @Faizan> Test the instalation procedure</​todo>​ +======nBlocksStudio1.0 Installation======
-  * <todo #​engineer:​2019-11-27>​ Correct link for Bitbucket nBlockStudio cloning</​todo>​+
  
-======nBlocksStudio installation====== +**nBlocksStudio1.0** is using mbed-cli infrastructure including GCC compiler, for the microprocessor code compilation.\\
-**nBlocksStudio** is using mbed-cli infrastructure including GCC compiler, for the microprocessor code compilation.\\+
 The Graphical interface is written in Python and is accessing the n-Blocks.net server when it starts, to get the definition of the Nodes\\ The Graphical interface is written in Python and is accessing the n-Blocks.net server when it starts, to get the definition of the Nodes\\
    
Line 54: Line 52:
   * Install mbed cli from command prompt: <​code>​ pip install mbed-cli </​code> ​   * Install mbed cli from command prompt: <​code>​ pip install mbed-cli </​code> ​
   * Verify mbed installation:​ <​code>​ mbed --version </​code>​   * Verify mbed installation:​ <​code>​ mbed --version </​code>​
 +  * 07-March-2020,​ install Microsoft Visual C++ Compiler for Python 2.7:  (([[ http://​aka.ms/​vcpython27]]))
 \\ \\
 \\ \\
Line 78: Line 77:
   *new OS2 project:<​code>​ mbed new project2 --mbedlib </​code>​   *new OS2 project:<​code>​ mbed new project2 --mbedlib </​code>​
   *new OS5 project at current directory:<​code>​ mbed new . </​code>​   *new OS5 project at current directory:<​code>​ mbed new . </​code>​
 +
 +
 +===Alternative method to import OS2 program from mbed online compiler=== ​
 +I had issues with the import method described above. This Alternative method works.Tested for Target LPC11U35_401 [20 May 2020] 
 +  * From mbed online compiler right-click on a **Program** in the **Program Workspace**:​ Export Program using <​code>​ Export</​code>​ Toolchain <​code>​ZIP archive (with repositories)</​code>​
 +  * Extract the ZIP file to a Temporary folder.
 +  * Create a new folder as new mbed OS2 project. This folder will be the project working folder: <​code>​ mbed new project_name --mbedlib </​code>​
 +  * **From Inside** the Temporary folder copy all files and folders.
 +  * Paste the copied files and folders, to **project_name** folder created from  **mbed new project_name --mbedlib**
 +      * Just overwrite existing files when Windows asks
 +  * From Command line Compile: <​code>​mbed compile -t GCC_ARM -m LPC11U35_401</​code>​
 +
  
  
Line 119: Line 130:
  
 ====Use n-Blocks Studio==== ====Use n-Blocks Studio====
-  * Login to your nBlocksStudio (([[http://​www.n-blocks.net |nBlocksStudio page]])) account and add **nodes** to your account {{:​nblocks:​nblocksstudio-03.jpg?​1000|}}+  * Login to your nBlocksStudio (([[https://​www.n-blocks.net/studio|nBlocksStudio page]])) account and add **nodes** to your account {{:​nblocks:​nblocksstudio-03.jpg?​1000|}}
 \\ \\
   * Start nBlocksStudio,​ from **Studio** folder with command line:   * Start nBlocksStudio,​ from **Studio** folder with command line:
Line 126: Line 137:
  
  
-  * On 0.7.02.2019 I had to edit nworkbench.py,​ to change[t]kinter to [T]kinter\\ ​+  * On 07.02.2019 I had to edit nworkbench.py,​ to change[t]kinter to [T]kinter\\  
 +  * On 05.03.2020 this does not seem to be needed any more...\\ 
  <​code>​ from tkinter import TclError</​code>​ to <​code>​from Tkinter import TclError </​code>​  <​code>​ from tkinter import TclError</​code>​ to <​code>​from Tkinter import TclError </​code>​
   * ...and to install missing python modules:​\\ ​   * ...and to install missing python modules:​\\ ​
  <​code>​ pip install enum </​code> ​  <​code>​ pip install enum </​code> ​
  <​code>​ pip install pywinusb</​code> ​  <​code>​ pip install pywinusb</​code> ​
- +  * ...one more March 2020:\\  
 + <​code>​ pip install requests</​code> ​ 
    
 When exporting, save into the file **main.cpp** inside folder **mbed_code**,​ and build with: When exporting, save into the file **main.cpp** inside folder **mbed_code**,​ and build with:
nblocksstudio/installation_for_nblocksstudio1.0.1575385603.txt.gz · Last modified: 2019/12/03 10:06 by faizan