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 [2020/02/19 07:15]
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 3: Line 3:
 </​WRAP>​ </​WRAP>​
  
-======nBlocksStudio installation======+======nBlocksStudio1.0 Installation======
  
-**nBlocksStudio** is using mbed-cli infrastructure including GCC compiler, for the microprocessor code compilation.\\+**nBlocksStudio1.0** 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 52: 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 76: 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 124: 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.1582114507.txt.gz · Last modified: 2020/02/19 07:15 by faizan