Skip to content
/ jerryZ Public

This a repository of a Zephyr project meant to be used for tests with JerryScript in Zephyr, the JerryZ

License

Notifications You must be signed in to change notification settings

ig-66/jerryZ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JerryScript for Zephyr, JerryZ

The JerryZ is a Zephyr compatible JavaScript engine, made from a modified JerryScript build process. The JerryZ repo can be found in this repo.

This repository contains tests of the JerryScript in Zephyr, AKA JerryZ, follow the instruction for installation.

Installation

On an empty folder, run the command:

west init -m https://github.com/ig-66/jerry_z_tests

This command will result in the following:

[folder_where_the_command_was_executed]
    + .west 
    + jerry_z_tests
        + west.yml
        + ...

Now run:

west update

Running the Examples

Selecting the Example to Build

To select the example simply run the menuconfig or guiconfig:

west build -b <board> -t guiconfig

Flashing the Build

Simply run:

west flash

Snapshot Load Example

In this example, the application will load and execute a snapshot file that is present in the mass storage.

The snapshot file, named .snapshot, must be placed in the selected storage device before the program runs, it can be placed in the storage through the USB.

The snapshot file can be created using a JerryScript on Linux or Windows. To learn more visit the official JerryScript repo.

To select the snapshot load and execution example, open Zephyr's guiconfig or menuconfig and select "Build the snapshot file sample" choice under the "JerryZ sample to be built" menu.

When it is selected, the configuration options to make the device: use the SDHC over SPI; put it USB mass storage; use long file names; and name mount point to SD, are automatically selected.

About

This a repository of a Zephyr project meant to be used for tests with JerryScript in Zephyr, the JerryZ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published