intel / zephyr.js

JavaScript* Runtime for Zephyr* OS
Other
180 stars 65 forks source link

[ocf] Ocf Server doesn't work after zephyr update to 1.9 #1586

Closed qiaojingx closed 6 years ago

qiaojingx commented 6 years ago

Description

After update zephyr to 1.9.0, CPU exception occurs when running Ocf Server on A101(ble mode and Ethernet mode) and OcfClient cannot connect to OcfServer on FRDM_K64F.

Test Code

OcfServer.js; OcfSensorServer.js; OcfMultiSensor.js; test-ocfserver.js

Steps to Reproduction

Arduino 101 over BLE:

  1. make JS=samples/OcfServer.js ROM=256
  2. make dfu

Arduino 101 with Ethernet board:

  1. make JS=samples/OcfServer.js FORCE=zjs_net_l2_enc28j60.json ROM=256
  2. make dfu

FRDM_K64F:

  1. make JS=samples/OcfServer.js BOARD=frdm_k64f
  2. cp outdir/frdm_k64f/zephyr.bin /media/<USERNAME>/MBED/

Actual Result

Scene 1: Arduino 101 over ble

1). OcfServer.js: selection_031

2). OcfSensorServer.js and OcfMultiSensor.js:

No console log is printed.

3). test-ocfserver.js: selection_032

Scene 2: Arduino 101 with Ethernet board

1). OcfServer.js: selection_003

2). OcfSensorServer.js: selection_004

3). OcfMultiSensor.js: selection_005

4). test-ocfserver.js: selection_006

Scene 3: FRDM_K64F 1). OcfClient cannot connect to OcfServer selection_001 selection_002

Expected Result

OcfServer started without error and OcfClient can connect to OcfServer.

Test Builds

Branch Commit Id Target Device Test Date Result
master 6eedbe4 - 1d5a99d Arduino 101 Oct 12, 2017 Fail
master 03cc671 Arduino 101 Oct 12, 2017 Failed by #1565
master 6eedbe4 - 1d5a99d FRDM_K64F Oct 12, 2017 Fail
master 03cc671 FRDM_K64F Oct 12, 2017 Failed by #1565

Additional Information

qiaojingx commented 6 years ago

Verified with commit dcf56a9. OcfServer works on Arduino101, but it still doesn't work on FRDM-K64F. Create a separate issue(#1660) to track it.