Left here for archival purposes.

User avatar
By yes8s
#7023
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.
User avatar
By zeroday
#7078 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?
User avatar
By alonewolfx2
#7080 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?