Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

[ocf] Cannot create multiple resources #1707

Closed
qiaojingx opened this issue Dec 13, 2017 · 6 comments
Closed

[ocf] Cannot create multiple resources #1707

qiaojingx opened this issue Dec 13, 2017 · 6 comments
Assignees
Labels

Comments

@qiaojingx
Copy link

Description

Error 512:(ERROR) failed to create new resource will occurs when running ocfserver which has multiple resources.

Test Code

OcfMultiSensor.js;
th02-ocf.js;
test-ocfserver.js;

Steps to Reproduction

  1. make JS=tests/test-ocfserver.js ROM=256
  2. make dfu

Actual Result

selection_020

Expected Result

Each resource can be created without error.

Test Builds

Branch Commit Id Target Device Test Date Result
master 1b970c8 Arduino 101 Dec 13, 2017 Fail
master 1b970c8 FRDM-K64F Dec 13, 2017 Fail

Additional Information

@jimmy-huang
Copy link
Contributor

This is related to RAM issue on the Arduino101, is this reproducible on the 96b_carbon?

@qiaojingx
Copy link
Author

qiaojingx commented Jan 12, 2018

@jimmy-huang , Ocf cannot be built for 96b_carbon.
Does ocf moudle be supported on 96b_carbon(ble) and OLIMEX STM32 E407(Ethernet)? If so, I need create issues for them.

@jimmy-huang
Copy link
Contributor

Yeah, it probably make sense to create issues, since they should work, we probably just need to update the json files to add the board for it to compile.

@qiaojingx
Copy link
Author

Ocf issue on 96b_carbon is tracking by #1771 and ocf issue on OLIMEX STM32 E407 is tracking by #1772 .

jimmy-huang added a commit to jimmy-huang/zephyr.js that referenced this issue Jan 23, 2018
Fixes intel#1707

Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
jimmy-huang added a commit to jimmy-huang/zephyr.js that referenced this issue Jan 23, 2018
Fixes intel#1707

Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
jimmy-huang added a commit to jimmy-huang/zephyr.js that referenced this issue Jan 23, 2018
Fixes intel#1707

Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
jimmy-huang added a commit to jimmy-huang/zephyr.js that referenced this issue Jan 23, 2018
Fixes intel#1707

Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
jimmy-huang added a commit to jimmy-huang/zephyr.js that referenced this issue Jan 23, 2018
The problem is that all the required preprocessor defines added
to iotivity-constrained using -include doesn't work with CMake,
so instead, we should pass those definitions to cmake using
add_definitions().

Fixes intel#1707

Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
@jimmy-huang
Copy link
Contributor

patch submitted #1785, please retest.

@cuiyanx
Copy link
Contributor

cuiyanx commented Jan 24, 2018

Reproduced this issue on 96b board with commit f51fcc3 on master.

A101 K64f 96b
test-ocfserver.js Fail Fail Fail
OcfMultiSensor.js Fail Fail Not Support AIO

grgustaf pushed a commit that referenced this issue Jan 25, 2018
The problem is that all the required preprocessor defines added
to iotivity-constrained using -include doesn't work with CMake,
so instead, we should pass those definitions to cmake using
add_definitions().

Fixes #1707

Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants