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
Description
Description
Not enough memory if run a large size JS file.
Test Code
HeartRateDemo.js; test-grovelcd.js
Steps to Reproduction
- Set 'CONFIG_USB_CDC_ACM=y' in fragments/prj.conf.arduino_101_dev to enable USB CDC ACM device class driver.
- Execute "make DEV=ashell" in the latest zephyrJS build
- Execute "make dfu" to flash ashell to Arduino101 and Reset device
- Use the following command to connect to the ashell from a terminal $ screen /dev/ttyACM0 115200
acm> load test.js
and EnterRAW> /*Paste code for test cases*/
and CTRL+Z to finish transferacm> run test.js
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.
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 |