Replies: 2 comments 1 reply
-
Hi @ig-66. Thanks for the detailed report. This however doesn't look like a Zephyr bug, but rather an integration issue with JerryScript. Would you mind moving the bug report there? Thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
-
Update: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm simply not able to make JerryScript work with Zephyr. I have tried different processes with different outcomes:
1>
Tried running the command below (just like this tutorial) in the
targets\os\zephyr
, but changing the toolchain in the CMakeLists:Changes to the CMakeLists:
from this:
--toolchain=${JERRY_BASE}/cmake/toolchain_mcu_stm32f4.cmake)
to this:
--toolchain=${ZEPHYR_BASE}/boards/arm/waveshare_nrf52840_eval_kit/board.cmake)
Result:
2>
So, tried running the command to generate the libjerry files from the
jerryscript
folder:python tools\build.py
, but this gave me this error:So I set up the python build to use the ninja (because Zephyr uses ninja, and it is already configured in my machine) using CMake GUI, also set the following with CMake GUI:
Also set the configs in the
jerryscript\targets\os\zephyr\CMakeLists.txt
in CMake GUIAnd then ran the command
python tools\build.py
, the build is succeeded. After that tried buildingjerryscript\targets\os\zephyr
with west.Result:
3>
Then tried running west command in the jerryscript directory (after deleting the contents in the build folder, of course):
The build was succeeded, but got the following warning:
Then returned to
targets\os\zephyr
, removed the build folder and ran:Got:
So I removed the
#include <sys/printk.h>
header, as it is not required forprintk
anymore, and re-ran the west command.Result:
4>
Update Zephyr to 3.1.0, setup the the build in the jerryscript folder with CMake GUI, the same way as described above and ran west in
targets\os\zephyr
Result:
But that was fixed by setting float ABI to use soft float calling conventions using

menuconfig
/guiconfig
:After that I re-ran the west build command, the build was succeeded, so I flashed to the board and openned the Arduino's Serial Monitor, the program simply stops, note how the "js>" is not printed:


Tried sending
print('Test')
through the serial monitor, but nothing happens.When debbug with Ozone, the problem is in the
jerry_init()
function in thejerry-main.c
, a MemManage exception heppens:Maybe the warning in try number 3 has something to do with it:
Comments
I haven't setup Zephyr according to the JerryScript tutorial, because Zephyr is already setup and running.
Platform: Windows 10
Zephyr version: 2.7.0 and 3.1.0
JerryScript Version: 3.0.0
Beta Was this translation helpful? Give feedback.
All reactions