Left here for archival purposes.

User avatar
By TerryE
#43696 Are you doing a custom build. I just redid this exact test and it ran without problems:
Code: Select allCommunication with MCU...
Got answer! AutoDetect firmware...

NodeMCU firmware detected.
=node.heap()
45072
 local FILE="script1.lua" file.remove(FILE) file.open(FILE,"w+") uart.setup(0,115200,8,0,1,0)
> >> > > > > > > > > > > > > > > > > > >
--Done--
>

>
> dofile "script1.lua"
3795
1234567890...12345
END off programm
> =node.heap()
40528
> node.compile'script1.lua'
> =file.list()['script1.lc']
508
> dofile "script1.lc"
3795
1234567890...12345
END off programm
> buff1=nil
> =node.heap()
44248
What's the problem?
User avatar
By TerryE
#43746 I only use 512Kb modules for my development and debugging, but what would I know? I only develop the firmware. As I said, and please read what I said: do a custom build and select only the modules that you need or alternative just read Building the firmware

Sigggghhh. :(
User avatar
By jankop
#43820 I do not know really advice. I tried two new modules esp8266-12E and I got the same bad result. I tried different versions of Lua-based on NONOS 1.4 and 1.5.1. And I also updated esp_init_data_default.bin. Slowly I cease to believe that someone can work decently. I upload the software, but a compilation crashed as well as running a program.

Here is my state:

ESP8266-12E/32Mbit
GPIO0 PullUp 10k
GPIO2 PullUp 10k
Reset PullUp 10k
Ch-Pd PullUp 10k
RX PullUp 10k
GPIO15 PullDown 10k
GPIO16 to Reset 330R
Vcc to GND 100uF tantalum + 6,8uF tantalum on pins
Reset to GND 100nF
Good power and FTDI USB/RS232

And here is ESPlorer log:
Code: Select allfile.format()
format done.
>
----------------------------
No files found.
----------------------------
>
Total : 3426401 bytes
Used  : 0 bytes
Remain: 3426401 bytes

> Uploading to ESP file PictureWeb17.lua...Success

>
----------------------------
PictureWeb17.lua : 5358 bytes
----------------------------
Total file(s)   : 1
Total size      : 5358 bytes

Total : 3426401 bytes
Used  : 5773 bytes
Remain: 3420628 bytes

> node.compile("PictureWeb17.lua") -- first problem, node.compile() crashed
ş‰€šů¤…üâ°lněµ˙ę

----------------------------
PictureWeb17.lua : 5358 bytes
----------------------------
Total file(s)   : 1               
Total size      : 5358 bytes

Total : 3426401 bytes
Used  : 5773 bytes
Remain: 3420628 bytes

> dofile("PictureWeb17.lua")       -- second problem, dofile() crashed too
¨{@šś‹Ôţt’)ŐQs˙µ˙ő

NodeMCU custom build by frightanic.com
   branch: master
   commit: c8037568571edb5c568c2f8231e4f8ce0683b883
   SSL: false
   modules: adc,bit,bmp085,dht,enduser_setup,file,gpio,i2c,net,node,pwm,tmr,uart,wifi
 build    built on: 2016-03-22 07:19
 powered by Lua 5.1.4 on SDK 1.4.0
lua: cannot open init.lua
>