-->
Page 5 of 7

Re: Build 20150108 does not always restart cleanly

PostPosted: Sun Jan 11, 2015 5:10 pm
by yes8s
brig wrote:
Fr4gg0r wrote:Looks like a clean boot, doesn't it?

Yes, this is when the unit is powered.
Is this ...
0‚~–4ы!‹“Y…$Ћ’2:’¶ЈяOґ:БBCб 0‚~–4ы!‹“Y…$Ћ’2:’¶ЈяOґ:БBCб 0‚~–4ы!‹“Y…$Ћ’2:’¶ЈяOґ:БCб 0‚~–4ы!‹“Y…$Ћ’2:’¶ЈяOґ:БBCб
...four attempts to power up.
node.restart () is always executed correctly.


As I originally stated and as others have also experienced, when the issue occurs, there is no "NodeLua xxx xxx xx" start-up message printed. Issuing commands whilst in this state results in no response and therefore issuing a node.restart() would also not reboot the device in this state.

Each failed hardware reset (power cycle) or power up just prints garbage on the serial and the chip does not respond to any commands. Once the esp finally resets ok and prints out the start up message, then it is totally functional including node.restart() until you power cycle the board and get only garbage data printed out.

Re: Build 20150108 does not always restart cleanly

PostPosted: Mon Jan 12, 2015 3:56 am
by sfinx
Exact same problem here with ESP-03, build 20150108 and dedicated power supply (max. 700 mA). Takes 3-4 power on/off cycles to properly boot the module.

Re: Build 20150108 does not always restart cleanly

PostPosted: Mon Jan 12, 2015 8:29 am
by zeroday
after reset, before lua engine start.
recent build add code to init default data for different flash-size.
maybe this code cause the issue?
the code is in app/user/user_main.c, line 86 to line 92.
Code: Select all    if( !flash_init_data_written() ){
        NODE_ERR("Restore init data.\n");
      // Flash init data at FLASHSIZE - 0x04000 Byte.
        flash_init_data_default();
      // Flash blank data at FLASHSIZE - 0x02000 Byte.
        flash_init_data_blank();
    }

anyone comment this part out and re-build and test?

Re: Build 20150108 does not always restart cleanly

PostPosted: Mon Jan 12, 2015 8:41 am
by alonewolfx2
i am trying now and i put info asap
zeroday wrote:after reset, before lua engine start.
recent build add code to init default data for different flash-size.
maybe this code cause the issue?
the code is in app/user/user_main.c, line 86 to line 92.
Code: Select all    if( !flash_init_data_written() ){
        NODE_ERR("Restore init data.\n");
      // Flash init data at FLASHSIZE - 0x04000 Byte.
        flash_init_data_default();
      // Flash blank data at FLASHSIZE - 0x02000 Byte.
        flash_init_data_blank();
    }

anyone comment this part out and re-build and test?