Update target mbedos5 README. (#1880)
JerryScript-DCO-1.0-Signed-off-by: Marko Fabo mfabo@inf.u-szeged.hu
This commit is contained in:
+15
-36
@@ -44,52 +44,31 @@ instructions above.
|
|||||||
make is used to automate the process of fetching dependencies, and making sure that
|
make is used to automate the process of fetching dependencies, and making sure that
|
||||||
mbed-cli is called with the correct arguments.
|
mbed-cli is called with the correct arguments.
|
||||||
|
|
||||||
|
### nodejs
|
||||||
|
|
||||||
|
npm is used to install the dependencies in the local node_modules folder.
|
||||||
|
|
||||||
|
### gulp
|
||||||
|
|
||||||
|
gulp is used to automate tasks, like cloning repositories or generate source files.
|
||||||
|
If you create an own project, for more info see [mbed-js-gulp](https://github.com/ARMmbed/mbed-js-gulp).
|
||||||
|
|
||||||
### (optional) jshint
|
### (optional) jshint
|
||||||
|
|
||||||
jshint is used to statically check your JavaScript code, as part of the build process.
|
jshint is used to statically check your JavaScript code, as part of the build process.
|
||||||
This ensures that pins you are using in your code are available on your chosen target
|
This ensures that pins you are using in your code are available on your chosen target
|
||||||
platform.
|
platform.
|
||||||
|
|
||||||
### Python modules
|
|
||||||
|
|
||||||
There are multiple Python module dependencies which can be installed with the
|
|
||||||
following command invoked from your jerryscript/targets/mbedos5/tools directory:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
pip install -r requirements.txt
|
|
||||||
```
|
|
||||||
|
|
||||||
If you have no pip installed but your are on an apt-managed system (e.g.,
|
|
||||||
Ubuntu), issue the following command first:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
apt-get -y install python-pip
|
|
||||||
```
|
|
||||||
|
|
||||||
(Otherwise, visit
|
|
||||||
[pip documentation](https://pip.pypa.io/en/stable/installing/) for more
|
|
||||||
information on how to install pip.)
|
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
||||||
Once you have all of your dependencies installed, you can build the project as follows:
|
Once you have all of your dependencies installed, you can build the example project as follows:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/jerryscript-project/jerryscript
|
git clone https://github.com/ARMmbed/mbed-js-example
|
||||||
cd jerryscript/targets/mbedos5
|
cd mbed-js-example
|
||||||
make getlibs
|
npm install
|
||||||
# NRF52 Development Kit:
|
gulp --target=YOUR_TARGET_NAME
|
||||||
make BOARD=NRF52_DK
|
|
||||||
# FRDM K64F
|
|
||||||
make BOARD=K64F
|
|
||||||
```
|
```
|
||||||
|
|
||||||
The produced file (in .build/**[BOARD]**/GCC_ARM) can then be uploaded to your board, and will
|
The produced file (in build/out/YOUR_TARGET_NAME) can then be uploaded to your board, and will
|
||||||
run when you press reset.
|
run when you press reset.
|
||||||
|
|
||||||
If you make a modification to main.js, you can simply rerun make, and it will remember your
|
|
||||||
previous choice of board:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
make
|
|
||||||
```
|
|
||||||
|
|||||||
Reference in New Issue
Block a user