Difference between revisions of "Install nBlocksStudio and mbed-cli"
From emboxit
(→Install n-Blocks Studio) |
|||
Line 46: | Line 46: | ||
* Download the mbed source code from this repository (folder mbed_code) [https://bitbucket.org/nimbus_it/prj_nblocksstudio bitbucket] | * Download the mbed source code from this repository (folder mbed_code) [https://bitbucket.org/nimbus_it/prj_nblocksstudio bitbucket] | ||
− | * Go to command line, navigate to the mbed_code folder and type: | + | * Go to command line, navigate to the '''mbed_code''' folder and type: |
C:....\mbed_code> mbed new . --mbedlib | C:....\mbed_code> mbed new . --mbedlib | ||
C:....\mbed_code> mbed deploy | C:....\mbed_code> mbed deploy |
Revision as of 06:17, 22 March 2018
Contents
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 from command line:
Python --version
and pip with
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
References
Install n-Blocks Studio
pip install panda3d
pip install pywin32
pip install pyuserinput
- Download the studio from this repository (folder Studio) bitbucket
- Download the mbed source code from this repository (folder mbed_code) bitbucket
- Go to command line, navigate to the mbed_code folder and type:
C:....\mbed_code> mbed new . --mbedlib C:....\mbed_code> mbed deploy
- Use the studio. When exporting, save into the file main.cpp inside mbed_code, and build with:
C:....\mbed_code> mbed compile -t GCC_ARM -m LPC1768