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

[ashell] Not enough memory if run a large size JS file. #783

Closed
@qiaojingx

Description

@qiaojingx

Description

Not enough memory if run a large size JS file.

Test Code

HeartRateDemo.js; test-grovelcd.js

Steps to Reproduction

  1. Set 'CONFIG_USB_CDC_ACM=y' in fragments/prj.conf.arduino_101_dev to enable USB CDC ACM device class driver.
  2. Execute "make DEV=ashell" in the latest zephyrJS build
  3. Execute "make dfu" to flash ashell to Arduino101 and Reset device
  4. Use the following command to connect to the ashell from a terminal $ screen /dev/ttyACM0 115200
  5. acm> load test.js and Enter
  6. RAW> /*Paste code for test cases*/ and CTRL+Z to finish transfer
  7. acm> run test.js
  8. acm> run test.js again after reset device.

Actual Result

After 6: Can't paste the whole test code one time. It will stuck
After 7: Not enough memory issue occur.
selection_011
After 8: Test case will be executed successfully.

Expected Result

After 6: Long code can be pasted one time.
After 7: A large size JS file can always be executed successfully. No memory issue occur.

Test Builds

Branch Commit Id Target Device Test Date Result
master 06004c9 Arduino 101 Mar 2, 2017 Fail

Additional Information

It will hang if test with zephyr IDE connected.
selection_010

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions