File read error if generate_jsc = false

Hi,

I am working with 1M flash and want to save space by disabling jsc file creation:

  • [“mjs.generate_jsc”, false]

But, it caused the following error:

MJS error: failed to exec file “api_file.js”: failed to read file “api_file.js”

The file api_file.js exists in the filesystem.

Any hints please?

Thanks,
Michael

You might be running out of memory.
load('aaa.js'); needs to allocate memory and if malloc fails, returns NULL, hence the failed to exec file error.

I see. Now I save space by removing the axios.min.js and use XMLHttpRequest directly.

Thanks,
Michael