Avatar for jbgagnon

jbgagnon

Member since Mar 2018 • Last active Nov 2018
  • 0 conversations
  • 5 comments

Most recent activity

  • in Other Boards
    Avatar for jbgagnon

    changing 6 by 7

    bool jsfLoadBootCodeFromFlash(bool isReset) {
      // Load code in .boot0/1/2/3
      char filename[7] = ".bootX";
    

    no more problem everything is ok know

    @ryan42 can you do the same change ?

    (One good point for this stupid windows : it detects some bugs ...)

  • in Other Boards
    Avatar for jbgagnon
    bool jsfLoadBootCodeFromFlash(bool isReset) {
      // Load code in .boot0/1/2/3
      char filename[6] = ".bootX";
      for (int i=0;i<4;i++) {
    

    filename 6 no place for '\0' it's a bug ?

  • in Other Boards
    Avatar for jbgagnon

    well after modifying

    JsfFileName jsfNameFromString(const char *name) {
      jsiConsolePrintf("jsfNameFromString [%s]%d\n",name, strlen(name));
      assert(strlen(name)<=8);
    

    at boot I have :

    ets Jun  8 2016 00:22:57
    rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:2
    load:0x3fff0018,len:4
    load:0x3fff001c,len:2364
    load:0x40078000,len:0
    load:0x40078000,len:10880
    entry 0x40078c4c
    jsfNameFromString [.varimg]7
    jsfNameFromString [.bootcde]8
    jsfNameFromString [.bootrst]8
    jsfNameFromString [.boot0ý?]8
    jsfNameFromString [.boot1ý?]8
    jsfNameFromString [.boot2ý?]8
    jsfNameFromString [.boot3ý?]8
    jsfNameFromString [.bootrst]8
    jsfNameFromString [.bootcde]8
    

    and after reset() I have :

    >reset()
    =undefined
    WARNING: Scan stop failed
    WARNING: set rssi scan not implemeted yet
    jsfNameFromString [.boot0ý?]9
    

    so the problem is of '\0' not well placed

  • in Other Boards
    Avatar for jbgagnon

    I don't know if it is the same problem, or this could help
    but I compile on windows 7 (not 10 WSL) the ESP32 version
    I flash it on an esp32 board.
    I can make some test
    but I can't use the reset() function because I have :

    >reset()
    =undefined
    WARNING: Scan stop failed
    WARNING: set rssi scan not implemeted yet
    ASSERT(strlen(name)<=8) FAILED AT src/jsflash.c:56
      #1[r1,l2] Object {
        #2[r1,l2] Name String [1 blocks] "\xFF"      #3[r1,l1] Object {
            #6[r1,l2] Name String [2 blocks] "timers"          #8[r2,l0] Array(0) [ ]
            #9[r1,l2] Name String [2 blocks] "watches"          #11[r2,l0] Array(0) [ ]
            #14[r1,l2] Name String [1 blocks] "net"          #12[r1,l1] String [2 blocks] "\x05\x00\x00\x00\x00\xFF\xFF\xFF\x00\x00\x00\x00"
          }
      }
    HALTING.
    

    it look's similar no ?

Actions