zeroday wrote:alonewolfx2 wrote:zeroday wrote:yes, the pre_build/0.9.4 is build with old xp vm. the file api works fine....
so how can we resolve file api problem? maybe its sdk problem?
I have push a fix to github. please have a try.
i still think its not working 100%
i can upload main.lua and write init.lua, and connect to wifi etc.
but calling dofile("main.lua") or node.heap() causes random reboots still, and node.restart() seems to bootloop rather than just reboot once and i had to power it off.
> print(wifi.sta.getip())
192.168.0.209
> file.open("init.lua","w")
> file.writeline([[print("Simon's ESP8266")]])
> file.close()
> node.restart()
> bB�Ǧ�Sb9���J���ȝH�WΦ�C�NodeMcu 0.9.4 build 20141222 powered by Lua 5.1.4
bB�Ǧ�Sb9���J���ȝH�WΦ�C�NodeMcu 0.9.4 build 20141222 powered by Lua 5.1.4
0�~�4�!��AOAE�a��$��2:�I��O&��C�NodeMcu 0.9.4 build 20141222 powered by Lua 5.1.4
POWERED OFF HERE
Simon's ESP8266
> dofile("main.lua")
> IP: 192.168.0.209
print(node.heap())
14792
> node.restart()
> bB�Ǧ�Sb9���J���ȝH�WΦ�C�NodeMcu 0.9.4 build 20141222 powered by Lua 5.1.4
bB�Ǧ�Sb9���J���ȝH�WΦ�C�NodeMcu 0.9.4 build 20141222 powered by Lua 5.1.4
0�~�4�!��AOAE�a��$��2:�I��O&��C�NodeMcu 0.9.4 build 20141222 powered by Lua 5.1.4
POWERED OFF HERE
Simon's ESP8266
> print(node.heap())
15672
> dofile("main.lua")
bB�Ǧ�Sb9���J���ȝH�WΦ�C�NodeMcu 0.9.4 build 20141222 powered by Lua 5.1.4
Simon's ESP8266
> > node.restart()
bB�Ǧ�Sb9���J���ȝH�WΦ�C�NodeMcu 0.9.4 build 20141222 powered by Lua 5.1.4
bB�Ǧ�Sb9���J���ȝH�WΦ�C�NodeMcu 0.9.4 build 20141222 powered by Lua 5.1.4
0�~�4�!��AOAE�a��$��2:�I��O&��C�NodeMcu 0.9.4 build 20141222 powered by Lua 5.1.4
POWERED OFF HERE
Simon's ESP8266
> print(node.heap())
15672
> dofile("main.lua")
bB�Ǧ�Sb9���J���ȝH�WΦ�C�NodeMcu 0.9.4 build 20141222 powered by Lua 5.1.4
Simon's ESP8266
> [A[A[A[B[B[B[B[B[B[B[B[B
bB�Ǧ�Sb9���J���ȝH�WΦ�C�NodeMcu 0.9.4 build 20141222 powered by Lua 5.1.4
bB�Ǧ�Sb9���J���ȝH�WΦ�C�NodeMcu 0.9.4 build 20141222 powered by Lua 5.1.4
0�~�4�!��AOAE�a��$��2:�I��O&��C�NodeMcu 0.9.4 build 20141222 powered by Lua 5.1.4
POWERED OFF HERE
Simon's ESP8266
> dofile("main.lua")
> IP: 192.168.0.209
> print(node.heap())
14792
> print(node.heap())
14792
> dofile("main.lua")
bB�Ǧ�Sb9���J���ȝH�WΦ�C�NodeMcu 0.9.4 build 20141222 powered by Lua 5.1.4
Simon's ESP8266
>
just to be sure i am doing the right thing, i'm building using:
make
cd app/
FLAVOR=debug ./gen_misc.sh
../tools/gen_flashbin.py ../bin/eagle.app.v6.flash.bin ../bin/eagle.app.v6.irom0text.bin
mv eagle.app.flash.bin ../bin/
cd ../bin/
then i have to copy esp_init_data_default.bin and blank.bin from the pre_build/0.9.2/4M-flash directory, as those files don't seem to get created by the compilation process - is this correct, seems odd using 4mb 092 files for a 512k 094 firmware....?
the i flash using:
esptool.py --port /dev/ttyUSB0 write_flash 0x00000 eagle.app.v6.flash.bin 0x10000 eagle.app.v6.irom0text.bin 0x7c000 esp_init_data_default.bin 0x7e000 blank.bin
my resulting files are:
354K eagle.app.flash.bin
7.2M eagle.app.v6.dump
52K eagle.app.v6.flash.bin
290K eagle.app.v6.irom0text.bin
8.3M eagle.app.v6.S