Difference between revisions of "Install nBlocksStudio and mbed-cli"

From emboxit
Jump to: navigation, search
(Import existing program from online compiler)
 
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
*[https://www.youtube.com/watch?v=PI1Kq9RSN_Y 3 minutes quickstart video]
+
==Install Python==
*[https://docs.mbed.com/docs/mbed-os-handbook/en/5.1/dev_tools/cli/ Handbook]
+
* Download 32 bit windows installer for Python 2.7 (dont use 64bit Python installer, issues with pip)
 +
* Configure installer for adding Python path to system path and complete Python 2.7 installation
 +
* Restart Windows (otherwise pip fails)
 +
* Test Python  and pip from command line:
 +
Python --version
  
 +
pip --version
 +
Both should work from any directory
  
==Import existing program from online compiler==
+
 
 +
==Install mbed-cli==
 +
* Install Mercurial
 +
* Install Git
 +
* nstall GCC
 +
* Install mbed cli from command prompt:
 +
pip install mbed-cli
 +
===Import existing program from online compiler===
 
*From online compiler right click on the project and publish (or FORK) in to something like this: [https://developer.mbed.org/users/chalikias/code/frequency_counter/ frequency_counter]
 
*From online compiler right click on the project and publish (or FORK) in to something like this: [https://developer.mbed.org/users/chalikias/code/frequency_counter/ frequency_counter]
 
*:If the project is copy from somebody else's project, probably have to fork to your own mbed space
 
*:If the project is copy from somebody else's project, probably have to fork to your own mbed space
Line 12: Line 25:
 
* Finnaly
 
* Finnaly
 
  mbed compile -m LPC1768 -t GCC_ARM
 
  mbed compile -m LPC1768 -t GCC_ARM
 +
===References===
 +
*[https://www.youtube.com/watch?v=PI1Kq9RSN_Y 3 minutes quickstart video]
 +
*[https://docs.mbed.com/docs/mbed-os-handbook/en/5.1/dev_tools/cli/ Handbook]
 +
*[https://www.youtube.com/watch?v=cM0dFoTuU14 Learn to use Mbed CLI: How to install manually]
 +
<br><br>
 +
 +
 +
 +
==Install n-Blocks Studio==
 +
pip install panda3d
 +
 +
pip install pywin32
 +
 +
pip install pyuserinput
 +
* Download the studio from [https://bitbucket.org/nimbus_it/prj_nblocksstudio bitbucket] (folder Studio): from command line
 +
hg clone https://bitbucket.org/nimbus_it/prj_nblocksstudio
 +
* From '''mbed_code''' folder with command line:
 +
C:....\mbed_code> mbed new . --mbedlib
 +
C:....\mbed_code> mbed deploy
 +
* Login to your [http://www.n-blocks.net nBlocksStudio] account and add '''nodes''' to your account
 +
* Start nBlocksStudio, from '''mbed_code''' folder with command line:
 +
....\Studio\Launch.cmd
 +
When exporting, save into the file '''main.cpp''' inside folder '''mbed_code''', and build with:
 +
C:....\mbed_code> mbed compile -t GCC_ARM -m LPC1768
 +
 +
 +
  
  

Latest revision as of 06:33, 22 March 2018

Install Python

  • Download 32 bit windows installer for Python 2.7 (dont use 64bit Python installer, issues with pip)
  • Configure installer for adding Python path to system path and complete Python 2.7 installation
  • Restart Windows (otherwise pip fails)
  • Test Python and pip from command line:
Python --version 
pip --version 

Both should work from any directory


Install mbed-cli

  • Install Mercurial
  • Install Git
  • nstall GCC
  • Install mbed cli from command prompt:
pip install mbed-cli

Import existing program from online compiler

  • From online compiler right click on the project and publish (or FORK) in to something like this: frequency_counter
    If the project is copy from somebody else's project, probably have to fork to your own mbed space
  • With administrative rights,
mbed import https://developer.mbed.org/users/chalikias/code/frequency_counter/ 
  • for a list of supported targets
mbed compile -S
  • Finnaly
mbed compile -m LPC1768 -t GCC_ARM

References




Install n-Blocks Studio

pip install panda3d
pip install pywin32
pip install pyuserinput
  • Download the studio from bitbucket (folder Studio): from command line
hg clone https://bitbucket.org/nimbus_it/prj_nblocksstudio 
  • From mbed_code folder with command line:
C:....\mbed_code> mbed new . --mbedlib
C:....\mbed_code> mbed deploy
  • Login to your nBlocksStudio account and add nodes to your account
  • Start nBlocksStudio, from mbed_code folder with command line:
....\Studio\Launch.cmd 

When exporting, save into the file main.cpp inside folder mbed_code, and build with:

C:....\mbed_code> mbed compile -t GCC_ARM -m LPC1768