intel / zephyr.js

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

[f411re] No enough space for flash Nucleo F411RE many times #1203

Open haoxli opened 7 years ago

haoxli commented 7 years ago

Description

After flash image to Nucleo F411RE board for many times(>5), it will report that no space left on board, we need to reset the board for next flash.

Test Code

HelloWorld.js

Steps to Reproduction

  1. $ make JS=samples/HelloWorld.js BOARD=nucleo_f411re
  2. $ cp outdir/nucleo_f411re/zephyr.bin /media/<username>/NODE_F411RE/
  3. Repeat the 2nd step for more than 5 times

Actual Result

screenshot from 2017-05-27 16-50-05

$ minicom -D /dev/ttyACM0 screenshot from 2017-05-27 16-49-39

Expected Result

Flash image without error for every times, and execute the code with output 'Hello, ZJS world!'

Test Builds

Branch Build ID Target Device Date Result
master 6180fec ST Nucleo F411RE May 27, 2017 Fail
grgustaf commented 7 years ago

This sounds like maybe it's a problem with the board's flashing mechanism, not our code? Could you try this with some native Zephyr images or even non-Zephyr images?

haoxli commented 7 years ago

Yes, I've tried the native sample application Hello World.

$ cd <zephyr_root_path>
$ source zephyr-env.sh
$ cd $ZEPHYR_BASE/samples/hello_world/
$ make BOARD=nucleo_f411re

After flash many times, this still work normally. f411re

grgustaf commented 7 years ago

Note: we don't have this board but will look into getting one.