Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

Miot Tool (Error: (1) leveldb: not found)

iH8c0ff33iH8c0ff33 Italy
edited September 2016 in Mongoose OS

I used miot auth login to get logged in, then i run miot fw init --arch esp8266 to create the project, but build is not working because of some error. (I am using the latest version of miot tool downloaded from https://mongoose-iot.com/downloads.html.
The output (last lines) I get is this:

    Built mongoose-iot/esp8266 version head (custom_project)
  make: Leaving directory '/code'
  == Build took 18.400607934s
Error: (1) leveldb: not found

Is it some problem with my environment, or is it server-related issue?
Thanks for the help.

Comments

  • Download new version miot

    miot -version
    The Mongoose IoT command line tool
    Version: 20160927182903
    Build ID: 20160927-182903/master@27ed0bd3+

    This bug is fixed.

  • iH8c0ff33iH8c0ff33 Italy
    edited September 2016

    @xinetd said:
    Download new version miot

    miot -version
    The Mongoose IoT command line tool
    Version: 20160927182903
    Build ID: 20160927-182903/master@27ed0bd3+

    This bug is fixed.

    Where can I download that version? I can't find it on https://mongoose-iot.com/

    PS: I forgot to say I'm on Mac

  • SergeySergey Dublin, Ireland
    edited September 2016

    https://mongoose-iot.com/downloads.html
    Let me put the downloads link to the top menu .

  • iH8c0ff33iH8c0ff33 Italy
    edited September 2016

    @Sergey Lyubka said:
    https://mongoose-iot.com/downloads.html
    Let me put the downloads link to the top menu .

    The problem is only in the mac version:

    ~ ❯❯❯ ~/Downloads/miot\ \(4\) -version                                        ⏎
    The Mongoose IoT command line tool
    Version: 20160925074015
    Build ID: 20160925-074015/lsm@0f2a1128+
    

    Maybe it's not updated

  • SergeySergey Dublin, Ireland
    edited September 2016

    @iH8c0ff33 thanks!
    I have updated the miot mac version. I have put Downloads link to the top bar.
    Please try again

  • @Sergey Lyubka Thanks!!
    now the firmare is building with new version

  • iH8c0ff33iH8c0ff33 Italy
    edited September 2016

    @Sergey Lyubka I have now a problem flashing, but don't know whether it's related to the miot tool or to my esp module. Program output is:

    ~/D/e/fw ❯❯❯ miot dev flash -port /dev/tty.wchusbserial1420 -fw build/fw.zip -esp8266-baud-rate 115200 -esp8266-erase-chip -esp8266-flash-params dio,32m,40m
    Loaded mongoose-iot/esp8266 version head (custom_project)
    Opening /dev/tty.wchusbserial1420...
    Connecting to ESP8266 ROM, attempt 1 of 4...
      Connected
    Running flasher @ 115200...
    Error: failed to run flasher: failed to run flasher stub: failed to write params: failed to start mem write: error reading response to cmd 5: error reading response: error reading: EOF
    

    PS: Ok I think the problem is due to my module using chinese serial adapter (ch340g), because it's working with my ftdi cable

  • SergeySergey Dublin, Ireland

    @iH8c0ff33 have you been able to flash the module?

  • @iH8c0ff33 have you been able to flash the module?

    No I haven't been able to flash it with ch340g using miot tool, but I did it with esptool.py using files from fw.zip
  • @Sergey Lyubka said:
    iH8c0ff33 have you been able to flash the module?

    Ok, I don't know what the problem actually is...
    I tried many times to flash, and it seems that sometimes it works and sometimes it gives an error. Could you help me? I will post the different errors I get.

    This time anything...

    Running flasher @ 115200...
    Error: failed to run flasher: failed to run flasher stub: failed to write params: failed to start mem write: error reading response to cmd 5: error reading response: error reading: EOF
    

    Now it does something more...

      Flasher is running
    Flash size: 4194304, params: 0x0240
    Deduping...
        4096 @ 0xfb000 -> 0
    Writing...
        4096 @ 0x0
        4096 @ 0x1000
      634880 @ 0x11000
    Error: fw: failed to write: flash write failed @ 0/0: error reading: EOF
    

    And this time it has completely flashed, but not been able to verify...

      Flasher is running
    Flash size: 4194304, params: 0x0240
    Deduping...
        2512 @ 0x0 -> 0
        4096 @ 0x1000 -> 0
        4096 @ 0xfb000 -> 0
    Writing...
      634880 @ 0x11000
      131072 @ 0xdb000
        4096 @ 0x3fc000
    Wrote 770048 bytes in 86.54 seconds (69.51 KBit/sec)
    Verifying...
        2512 @ 0x0
        4096 @ 0x1000
    Error: boot_cfg: failed to compute digest 4096 @ 0x1000: error reading response packet: error reading: EOF
    

    I really have no clue, do you think it's a problem with my serial adapter?

  • SergeySergey Dublin, Ireland

    @iH8c0ff33 could you try on linux machine please?

  • @Sergey Lyubka said:
    iH8c0ff33 could you try on linux machine please?

    Ok, i will try asap and report the results

  • @Sergey Lyubka said:
    iH8c0ff33 could you try on linux machine please?

    I tried on debian but I can't run miot auth login because of this error:

    Error: user: lookup userid 1000: no such file or directory
    
  • I've see the same problem my ESP32_core_board_v2 on a Breadboard.
    it seem some problem with uart0 rx or tx pin

    "D:\my_progetti\moongose_os\fw_test>mos flash --port com7
    Loaded fw_test/esp32 version 1.0 (20170421-221642/???)
    Opening com7...
    Connecting to ESP32 ROM, attempt 1 of 10...
    Connected
    Running flasher @ 460800...
    Error: failed to run flasher: failed to run flasher stub: failed to write params: failed to start mem write: error reading response to cmd 5: error reading response: error reading: EOF"

    do you have some idea of how to solve the problem?

  • SergeySergey Dublin, Ireland

    @iH8c0ff33 update mos tool, https://mongoose-os.com/software.html

    @william.frasson does it happen consistently, if you retry several times?
    Also, try to reduce port speed, mos flash --port com7 --esp-baud-rate 115200

  • D:\my_progetti\moongose_os\fw_test>mos flash --port com7 --logtostderr
    Loaded fw_test/esp32 version 1.0 (20170421-221642/???)
    Opening com7...
    I0424 09:07:54.508381 1372 report.go:13] Opening com7...
    Connecting to ESP32 ROM, attempt 1 of 10...
    I0424 09:07:54.731007 1372 report.go:13] Connecting to ESP32 ROM, attempt 1 of 10...
    Connected
    I0424 09:07:55.403377 1372 report.go:13] Connected
    Running flasher @ 460800...
    I0424 09:07:55.405324 1372 report.go:13] Running flasher @ 460800...
    I0424 09:07:55.508097 1372 main.go:207] Error: failed to run flasher: failed to run flasher stub: failed to write params: failed to start mem write: error reading response to cmd 5: error reading response: error reading: EOF
    EOF
    /Users/lsm/src/cesanta.com/mos/flash/common/slip.go:35: error reading
    /Users/lsm/src/cesanta.com/mos/flash/esp/rom_client/rom_client.go:173: error reading response
    /Users/lsm/src/cesanta.com/mos/flash/esp/rom_client/rom_client.go:219: error reading response to cmd 5
    /Users/lsm/src/cesanta.com/mos/flash/esp/rom_client/rom_client.go:304: failed to start mem write
    /Users/lsm/src/cesanta.com/mos/flash/esp/rom_client/rom_client.go:378: failed to write params
    /Users/lsm/src/cesanta.com/mos/flash/esp/flasher/flasher_client.go:83: failed to run flasher stub
    /Users/lsm/src/cesanta.com/mos/flash/esp/flasher/flasher_client.go:64:
    /Users/lsm/src/cesanta.com/mos/flash/esp/flasher/common.go:62: failed to run flasher
    /Users/lsm/src/cesanta.com/mos/flash/esp/flasher/flash.go:43:
    /Users/lsm/src/cesanta.com/mos/flash.go:125:
    /Users/lsm/src/cesanta.com/mos/main.go:120:
    Error: failed to run flasher: failed to run flasher stub: failed to write params: failed to start mem write: error reading response to cmd 5: error reading response: error reading: EOF

  • SergeySergey Dublin, Ireland

    @william.frasson could you please reduce the baud rate as i have suggested?

  • trying to change the baudate in conf_schema.yaml: ["uart.baud_rate", 9600],

    mos build --arch esp32
    happen this:

    strong text While parsing /app/src/conf_schema.yaml: 'uart.baud_rate: Cannot override, no such entry' AR libsoc.a /opt/Espressif/esp-idf/components/esptool_py/Makefile.projbuild:76: warning: undefined variable 'OS' /mongoose-os/fw/src/sys_config.mk:15: recipe for target '/app/build/gen/sys_config.c' failed make[1]: [/app/build/gen/sys_config.c] Error 1 /opt/Espressif/esp-idf/make/project.mk:394: recipe for target 'src-build' failed make: [src-build] Error 2 make: * Waiting for unfinished jobs.... CC log.o

  • SergeySergey Dublin, Ireland

    I've sent an exact command to try:

    mos flash --port com7 --esp-baud-rate 115200
    

    Please run it

  • none.. same problem

    D:\my_progetti\moongose_os\fw_test>mos flash --port com7 --esp-baud-rate 9600
    Loaded fw_test/esp32 version 1.0 (20170424-202708/???)
    Opening com7...
    Connecting to ESP32 ROM, attempt 1 of 10...
    Connected
    Running flasher @ 9600...
    Error: failed to run flasher: failed to run flasher stub: failed to write params: failed to start mem write: error reading response to cmd 5: error reading response: error reading: EOF

  • SergeySergey Dublin, Ireland

    Thanks @william.frasson . Could you give details about the ESP32 you're using pelase?

    Also, please run with these flags and attach the output:

    mos flash esp32 --v 4 --logtostderr --port COM7
    
  • I'm using a ESP32_Coreboard_V2

    ps. just as info: using the console @9600, mos doen't show any character, while using a serial terminal like teraterm i see the strings.. going back to 115200 the console works.

  • this is the log:
    D:\my_progetti\moongose_os\fw_test>mos flash esp32 --v 4 --logtostderr --port COM7
    Fetching https://mongoose-os.com/downloads/esp32.zip...
    I0425 09:42:45.819854 9704 report.go:13] Fetching https://mongoose-os.com/downloads/esp32.zip...
    Loaded mjs_base/esp32 version 1.0 (20170421-141820/???)
    Opening COM7...
    I0425 09:42:47.747200 9704 report.go:13] Opening COM7...
    Connecting to ESP32 ROM, attempt 1 of 10...
    I0425 09:42:47.814848 9704 report.go:13] Connecting to ESP32 ROM, attempt 1 of 10...
    I0425 09:42:48.271272 9704 rom_client.go:160] => {cmd:Sync(8) csum:0 arg(36):"0707122055555555555555555555555555555555555555555555555555555555..."}
    I0425 09:42:48.271272 9704 slip.go:91] => (44) 0008240000000000070712205555555555555555555555555555555555555555555555555555555555555555
    I0425 09:42:48.475162 9704 rom_client.go:160] => {cmd:Sync(8) csum:0 arg(36):"0707122055555555555555555555555555555555555555555555555555555555..."}
    I0425 09:42:48.475162 9704 slip.go:91] => (44) 0008240000000000070712205555555555555555555555555555555555555555555555555555555555555555
    I0425 09:42:48.492167 9704 slip.go:47] <= (12) 010804000712205500000000
    I0425 09:42:48.492167 9704 rom_client.go:204] <= {cmd:Sync(8) value:1428165127 ok:true lastError:0 body(4):"00000000"}
    I0425 09:42:48.493100 9704 slip.go:47] <= (12) 010804000712205500000000
    I0425 09:42:48.493100 9704 rom_client.go:204] <= {cmd:Sync(8) value:1428165127 ok:true lastError:0 body(4):"00000000"}
    I0425 09:42:48.493100 9704 slip.go:47] <= (12) 010804000712205500000000
    I0425 09:42:48.494081 9704 rom_client.go:204] <= {cmd:Sync(8) value:1428165127 ok:true lastError:0 body(4):"00000000"}
    I0425 09:42:48.494081 9704 slip.go:47] <= (12) 010804000712205500000000
    I0425 09:42:48.494081 9704 rom_client.go:204] <= {cmd:Sync(8) value:1428165127 ok:true lastError:0 body(4):"00000000"}
    I0425 09:42:48.495070 9704 slip.go:47] <= (12) 010804000712205500000000
    I0425 09:42:48.495070 9704 rom_client.go:204] <= {cmd:Sync(8) value:1428165127 ok:true lastError:0 body(4):"00000000"}
    I0425 09:42:48.495070 9704 slip.go:47] <= (12) 010804000712205500000000
    I0425 09:42:48.495070 9704 rom_client.go:204] <= {cmd:Sync(8) value:1428165127 ok:true lastError:0 body(4):"00000000"}
    I0425 09:42:48.496080 9704 slip.go:47] <= (12) 010804000712205500000000
    I0425 09:42:48.500991 9704 rom_client.go:204] <= {cmd:Sync(8) value:1428165127 ok:true lastError:0 body(4):"00000000"}
    I0425 09:42:48.501939 9704 slip.go:47] <= (12) 010804000712205500000000
    I0425 09:42:48.501939 9704 rom_client.go:204] <= {cmd:Sync(8) value:1428165127 ok:true lastError:0 body(4):"00000000"}
    Connected
    I0425 09:42:48.501939 9704 report.go:13] Connected
    Running flasher @ 460800...
    I0425 09:42:48.502921 9704 report.go:13] Running flasher @ 460800...
    I0425 09:42:48.503891 9704 rom_client.go:370] RunStub: params: 1 @ 0x40090000; code: 2128 @ 0x40090004, entry @ 40090650; data: 32 @ 0x3ffd800c
    I0425 09:42:48.503891 9704 rom_client.go:296] memWrite(0x40090000, 4, 0x00000000)
    I0425 09:42:48.503891 9704 rom_client.go:160] => {cmd:MemWriteStart(5) csum:0 arg(16):"04000000010000000010000000000940"}
    I0425 09:42:48.504872 9704 slip.go:91] => (24) 000510000000000004000000010000000010000000000940
    I0425 09:42:48.508828 9704 slip.go:47] <= (12) 010504000712205500000000
    I0425 09:42:48.508828 9704 rom_client.go:204] <= {cmd:MemWriteStart(5) value:1428165127 ok:true lastError:0 body(4):"00000000"}
    I0425 09:42:48.508828 9704 rom_client.go:160] => {cmd:MemWriteBlock(7) csum:224 arg(20):"0400000000000000000000000000000000080700"}
    I0425 09:42:48.509799 9704 slip.go:91] => (28) 00071400e00000000400000000000000000000000000000000080700
    I0425 09:42:48.520656 9704 slip.go:47] <= (12) 010704000712205500000000
    I0425 09:42:48.521555 9704 rom_client.go:204] <= {cmd:MemWriteBlock(7) value:1428165127 ok:true lastError:0 body(4):"00000000"}
    I0425 09:42:48.521555 9704 rom_client.go:160] => {cmd:MemWriteFinish(6) csum:0 arg(8):"0100000000000000"}
    I0425 09:42:48.521555 9704 slip.go:91] => (16) 00060800000000000100000000000000
    I0425 09:42:48.622553 9704 main.go:212] Error: failed to run flasher: failed to run flasher stub: failed to write params: failed to finish mem write: error reading response to cmd 6: error reading response: error reading: EOF
    EOF
    /Users/lsm/src/cesanta.com/mos/flash/common/slip.go:35: error reading
    /Users/lsm/src/cesanta.com/mos/flash/esp/rom_client/rom_client.go:173: error reading response
    /Users/lsm/src/cesanta.com/mos/flash/esp/rom_client/rom_client.go:219: error reading response to cmd 6
    /Users/lsm/src/cesanta.com/mos/flash/esp/rom_client/rom_client.go:332: failed to finish mem write
    /Users/lsm/src/cesanta.com/mos/flash/esp/rom_client/rom_client.go:378: failed to write params
    /Users/lsm/src/cesanta.com/mos/flash/esp/flasher/flasher_client.go:83: failed to run flasher stub
    /Users/lsm/src/cesanta.com/mos/flash/esp/flasher/flasher_client.go:64:
    /Users/lsm/src/cesanta.com/mos/flash/esp/flasher/common.go:62: failed to run flasher
    /Users/lsm/src/cesanta.com/mos/flash/esp/flasher/flash.go:43:
    /Users/lsm/src/cesanta.com/mos/flash.go:125:
    /Users/lsm/src/cesanta.com/mos/main.go:125:
    Error: failed to run flasher: failed to run flasher stub: failed to write params: failed to finish mem write: error reading response to cmd 6: error reading response: error reading: EOF

    D:\my_progetti\moongose_os\fw_test>

  • while tring to go @9600:

    D:\my_progetti\moongose_os\fw_test>mos flash esp32 --v 4 --logtostderr --port COM7 --esp-baud-rate 9600
    Fetching https://mongoose-os.com/downloads/esp32.zip...
    I0425 09:45:55.530652 16656 report.go:13] Fetching https://mongoose-os.com/downloads/esp32.zip...
    Loaded mjs_base/esp32 version 1.0 (20170421-141820/???)
    Opening COM7...
    I0425 09:45:57.277361 16656 report.go:13] Opening COM7...
    Connecting to ESP32 ROM, attempt 1 of 10...
    I0425 09:45:57.344999 16656 report.go:13] Connecting to ESP32 ROM, attempt 1 of 10...
    I0425 09:45:57.802005 16656 rom_client.go:160] => {cmd:Sync(8) csum:0 arg(36):"0707122055555555555555555555555555555555555555555555555555555555..."}
    I0425 09:45:57.802005 16656 slip.go:91] => (44) 0008240000000000070712205555555555555555555555555555555555555555555555555555555555555555
    I0425 09:45:58.004527 16656 rom_client.go:160] => {cmd:Sync(8) csum:0 arg(36):"0707122055555555555555555555555555555555555555555555555555555555..."}
    I0425 09:45:58.004527 16656 slip.go:91] => (44) 0008240000000000070712205555555555555555555555555555555555555555555555555555555555555555
    I0425 09:45:58.208253 16656 rom_client.go:142] Sync #1 failed: error reading sync response #1: error reading response: error reading: EOF
    Connecting to ESP32 ROM, attempt 2 of 10 (inverted)...
    I0425 09:45:58.210209 16656 report.go:13] Connecting to ESP32 ROM, attempt 2 of 10 (inverted)...
    I0425 09:45:58.664578 16656 rom_client.go:160] => {cmd:Sync(8) csum:0 arg(36):"0707122055555555555555555555555555555555555555555555555555555555..."}
    I0425 09:45:58.665559 16656 slip.go:91] => (44) 0008240000000000070712205555555555555555555555555555555555555555555555555555555555555555
    I0425 09:45:58.875200 16656 rom_client.go:160] => {cmd:Sync(8) csum:0 arg(36):"0707122055555555555555555555555555555555555555555555555555555555..."}
    I0425 09:45:58.875200 16656 slip.go:91] => (44) 0008240000000000070712205555555555555555555555555555555555555555555555555555555555555555
    I0425 09:45:59.385136 16656 rom_client.go:142] Sync #2 failed: error reading sync response #1: error reading response: error reading: EOF
    Connecting to ESP32 ROM, attempt 3 of 10...
    I0425 09:45:59.386118 16656 report.go:13] Connecting to ESP32 ROM, attempt 3 of 10...
    I0425 09:45:59.840158 16656 rom_client.go:160] => {cmd:Sync(8) csum:0 arg(36):"0707122055555555555555555555555555555555555555555555555555555555..."}
    I0425 09:45:59.840158 16656 slip.go:91] => (44) 0008240000000000070712205555555555555555555555555555555555555555555555555555555555555555
    I0425 09:46:00.043008 16656 rom_client.go:160] => {cmd:Sync(8) csum:0 arg(36):"0707122055555555555555555555555555555555555555555555555555555555..."}
    I0425 09:46:00.043008 16656 slip.go:91] => (44) 0008240000000000070712205555555555555555555555555555555555555555555555555555555555555555
    I0425 09:46:00.247366 16656 rom_client.go:142] Sync #3 failed: error reading sync response #1: error reading response: error reading: EOF
    Connecting to ESP32 ROM, attempt 4 of 10 (inverted)...
    I0425 09:46:00.249241 16656 report.go:13] Connecting to ESP32 ROM, attempt 4 of 10 (inverted)...
    I0425 09:46:00.704590 16656 rom_client.go:160] => {cmd:Sync(8) csum:0 arg(36):"0707122055555555555555555555555555555555555555555555555555555555..."}
    I0425 09:46:00.704590 16656 slip.go:91] => (44) 0008240000000000070712205555555555555555555555555555555555555555555555555555555555555555
    I0425 09:46:00.913795 16656 rom_client.go:160] => {cmd:Sync(8) csum:0 arg(36):"0707122055555555555555555555555555555555555555555555555555555555..."}
    I0425 09:46:00.913795 16656 slip.go:91] => (44) 0008240000000000070712205555555555555555555555555555555555555555555555555555555555555555
    I0425 09:46:01.423713 16656 rom_client.go:142] Sync #4 failed: error reading sync response #1: error reading response: error reading: EOF
    Connecting to ESP32 ROM, attempt 5 of 10...
    I0425 09:46:01.425631 16656 report.go:13] Connecting to ESP32 ROM, attempt 5 of 10...
    I0425 09:46:01.881916 16656 rom_client.go:160] => {cmd:Sync(8) csum:0 arg(36):"0707122055555555555555555555555555555555555555555555555555555555..."}
    I0425 09:46:01.881916 16656 slip.go:91] => (44) 0008240000000000070712205555555555555555555555555555555555555555555555555555555555555555
    I0425 09:46:02.084967 16656 rom_client.go:160] => {cmd:Sync(8) csum:0 arg(36):"0707122055555555555555555555555555555555555555555555555555555555..."}
    I0425 09:46:02.084967 16656 slip.go:91] => (44) 0008240000000000070712205555555555555555555555555555555555555555555555555555555555555555
    I0425 09:46:02.102572 16656 slip.go:47] <= (12) 010804000720555500000000
    I0425 09:46:02.102572 16656 rom_client.go:204] <= {cmd:Sync(8) value:1431642119 ok:true lastError:0 body(4):"00000000"}
    I0425 09:46:02.103078 16656 slip.go:47] <= (12) 010804000720555500000000
    I0425 09:46:02.103583 16656 rom_client.go:204] <= {cmd:Sync(8) value:1431642119 ok:true lastError:0 body(4):"00000000"}
    ....
    ....
    Running flasher @ 9600...
    I0425 09:46:02.113171 16656 report.go:13] Running flasher @ 9600...
    I0425 09:46:02.114161 16656 rom_client.go:370] RunStub: params: 1 @ 0x40090000; code: 2128 @ 0x40090004, entry @ 40090650; data: 32 @ 0x3ffd800c
    I0425 09:46:02.114161 16656 rom_client.go:296] memWrite(0x40090000, 4, 0x00000000)
    I0425 09:46:02.114161 16656 rom_client.go:160] => {cmd:MemWriteStart(5) csum:0 arg(16):"04000000010000000010000000000940"}
    I0425 09:46:02.114161 16656 slip.go:91] => (24) 000510000000000004000000010000000010000000000940
    I0425 09:46:02.119106 16656 slip.go:47] <= (12) 010504000720555500000000
    I0425 09:46:02.119106 16656 rom_client.go:204] <= {cmd:MemWriteStart(5) value:1431642119 ok:true lastError:0 body(4):"00000000"}
    I0425 09:46:02.119106 16656 rom_client.go:160] => {cmd:MemWriteBlock(7) csum:74 arg(20):"0400000000000000000000000000000080250000"}
    I0425 09:46:02.119106 16656 slip.go:91] => (28) 000714004a0000000400000000000000000000000000000080250000
    I0425 09:46:02.621892 16656 main.go:212] Error: failed to run flasher: failed to run flasher stub: failed to write params: failed to write block #0: error reading response to cmd 7: error reading response: error reading: EOF
    EOF
    /Users/lsm/src/cesanta.com/mos/flash/common/slip.go:35: error reading
    /Users/lsm/src/cesanta.com/mos/flash/esp/rom_client/rom_client.go:173: error reading response
    /Users/lsm/src/cesanta.com/mos/flash/esp/rom_client/rom_client.go:219: error reading response to cmd 7
    /Users/lsm/src/cesanta.com/mos/flash/esp/rom_client/rom_client.go:320: failed to write block #0
    /Users/lsm/src/cesanta.com/mos/flash/esp/rom_client/rom_client.go:378: failed to write params
    /Users/lsm/src/cesanta.com/mos/flash/esp/flasher/flasher_client.go:83: failed to run flasher stub
    /Users/lsm/src/cesanta.com/mos/flash/esp/flasher/flasher_client.go:64:
    /Users/lsm/src/cesanta.com/mos/flash/esp/flasher/common.go:62: failed to run flasher
    /Users/lsm/src/cesanta.com/mos/flash/esp/flasher/flash.go:43:
    /Users/lsm/src/cesanta.com/mos/flash.go:125:
    /Users/lsm/src/cesanta.com/mos/main.go:125:
    Error: failed to run flasher: failed to run flasher stub: failed to write params: failed to write block #0: error reading response to cmd 7: error reading response: error reading: EOF

    D:\my_progetti\moongose_os\fw_test>

  • rojerrojer Dublin, Ireland

    hm. in the first log i see timeout after just 100 ms. weird.

  • SergeySergey Dublin, Ireland
    edited April 2017

    @william.frasson please update mos and try again. We've made some tuning for Windows.

    Also, please double-check that the COM port is indeed COM7, not some other.

  • rojerrojer Dublin, Ireland

    yes, connecting to esp32 on windows should now be more reliable now.

  • @Sergey . yes only com7 is existing.
    I try last mos but the problem is still there...

    D:\my_progetti\moongose_os\fw_test>mos flash --port COM7
    Loaded fw_test/esp32 version 1.0 (20170425-201024/???)
    Opening COM7...
    Connecting to ESP32 ROM, attempt 1 of 10...
    Connecting to ESP32 ROM, attempt 2 of 10...
    Connected
    Running flasher @ 460800...
    Error: failed to run flasher: failed to run flasher stub: failed to write params: failed to start mem write: error reading response to cmd 5: error reading response: error reading: EOF

    D:\my_progetti\moongose_os\fw_test>mos flash esp32 --v 4 --logtostderr --port COM7 --esp-baud-rate 9600
    Fetching https://mongoose-os.com/downloads/esp32.zip...
    I0425 22:12:53.406415 8188 report.go:13] Fetching https://mongoose-os.com/downloads/esp32.zip...
    Loaded mjs_base/esp32 version 1.0 (20170425-150114/???)
    Opening COM7...
    I0425 22:12:54.528422 8188 report.go:13] Opening COM7...
    Connecting to ESP32 ROM, attempt 1 of 10...
    I0425 22:12:54.594085 8188 report.go:13] Connecting to ESP32 ROM, attempt 1 of 10...
    I0425 22:12:56.198118 8188 rom_client.go:170] => {cmd:Sync(8) csum:0 arg(36):"0707122055555555555555555555555555555555555555555555555555555555..."}
    I0425 22:12:56.198623 8188 slip.go:91] => (44) 0008240000000000070712205555555555555555555555555555555555555555555555555555555555555555
    I0425 22:12:56.400147 8188 rom_client.go:170] => {cmd:Sync(8) csum:0 arg(36):"0707122055555555555555555555555555555555555555555555555555555555..."}
    I0425 22:12:56.400613 8188 slip.go:91] => (44) 0008240000000000070712205555555555555555555555555555555555555555555555555555555555555555
    I0425 22:12:56.416151 8188 slip.go:47] <= (12) 010804001255555500000000
    I0425 22:12:56.416151 8188 rom_client.go:214] <= {cmd:Sync(8) value:1431655698 ok:true lastError:0 body(4):"00000000"}
    I0425 22:12:56.416151 8188 slip.go:47] <= (12) 010804001255555500000000
    I0425 22:12:56.416654 8188 rom_client.go:214] <= {cmd:Sync(8) value:1431655698 ok:true lastError:0 body(4):"00000000"}
    I0425 22:12:56.416654 8188 slip.go:47] <= (12) 010804001255555500000000
    I0425 22:12:56.416654 8188 rom_client.go:214] <= {cmd:Sync(8) value:1431655698 ok:true lastError:0 body(4):"00000000"}
    I0425 22:12:56.417169 8188 slip.go:47] <= (12) 010804001255555500000000
    I0425 22:12:56.417169 8188 rom_client.go:214] <= {cmd:Sync(8) value:1431655698 ok:true lastError:0 body(4):"00000000"}
    I0425 22:12:56.417169 8188 slip.go:47] <= (12) 010804001255555500000000
    I0425 22:12:56.417675 8188 rom_client.go:214] <= {cmd:Sync(8) value:1431655698 ok:true lastError:0 body(4):"00000000"}
    I0425 22:12:56.417675 8188 slip.go:47] <= (12) 010804001255555500000000
    I0425 22:12:56.417675 8188 rom_client.go:214] <= {cmd:Sync(8) value:1431655698 ok:true lastError:0 body(4):"00000000"}
    I0425 22:12:56.418157 8188 slip.go:47] <= (12) 010804001255555500000000
    I0425 22:12:56.418157 8188 rom_client.go:214] <= {cmd:Sync(8) value:1431655698 ok:true lastError:0 body(4):"00000000"}
    I0425 22:12:56.418658 8188 slip.go:47] <= (12) 010804001255555500000000
    I0425 22:12:56.418658 8188 rom_client.go:214] <= {cmd:Sync(8) value:1431655698 ok:true lastError:0 body(4):"00000000"}
    Connected
    I0425 22:12:56.422168 8188 report.go:13] Connected
    Running flasher @ 9600...
    I0425 22:12:56.422168 8188 report.go:13] Running flasher @ 9600...
    I0425 22:12:56.422168 8188 rom_client.go:379] RunStub: params: 1 @ 0x40090000; code: 2128 @ 0x40090004, entry @ 40090650; data: 32 @ 0x3ffd800c
    I0425 22:12:56.422168 8188 rom_client.go:305] memWrite(0x40090000, 4, 0x00000000)
    I0425 22:12:56.422669 8188 rom_client.go:170] => {cmd:MemWriteStart(5) csum:0 arg(16):"04000000010000000010000000000940"}
    I0425 22:12:56.422669 8188 slip.go:91] => (24) 000510000000000004000000010000000010000000000940
    I0425 22:12:56.426680 8188 slip.go:47] <= (12) 010504001255555500000000
    I0425 22:12:56.426680 8188 rom_client.go:214] <= {cmd:MemWriteStart(5) value:1431655698 ok:true lastError:0 body(4):"00000000"}
    I0425 22:12:56.426680 8188 rom_client.go:170] => {cmd:MemWriteBlock(7) csum:74 arg(20):"0400000000000000000000000000000080250000"}
    I0425 22:12:56.426680 8188 slip.go:91] => (28) 000714004a0000000400000000000000000000000000000080250000
    I0425 22:12:56.927259 8188 main.go:212] Error: failed to run flasher: failed to run flasher stub: failed to write params: failed to write block #0: error reading response to cmd 7: error reading response: error reading: EOF
    EOF
    /Users/lsm/src/cesanta.com/mos/flash/common/slip.go:35: error reading
    /Users/lsm/src/cesanta.com/mos/flash/esp/rom_client/rom_client.go:183: error reading response
    /Users/lsm/src/cesanta.com/mos/flash/esp/rom_client/rom_client.go:229: error reading response to cmd 7
    /Users/lsm/src/cesanta.com/mos/flash/esp/rom_client/rom_client.go:329: failed to write block #0
    /Users/lsm/src/cesanta.com/mos/flash/esp/rom_client/rom_client.go:387: failed to write params
    /Users/lsm/src/cesanta.com/mos/flash/esp/flasher/flasher_client.go:83: failed to run flasher stub
    /Users/lsm/src/cesanta.com/mos/flash/esp/flasher/flasher_client.go:64:
    /Users/lsm/src/cesanta.com/mos/flash/esp/flasher/common.go:62: failed to run flasher
    /Users/lsm/src/cesanta.com/mos/flash/esp/flasher/flash.go:43:
    /Users/lsm/src/cesanta.com/mos/flash.go:127:
    /Users/lsm/src/cesanta.com/mos/main.go:125:
    Error: failed to run flasher: failed to run flasher stub: failed to write params: failed to write block #0: error reading response to cmd 7: error reading response: error reading: EOF

    **I see that the problem happen also when i touch with a finger or with a short wire the RX0 pin on the ESP32 coreboard v2 ..... **

    I see that the problem happen when i

Sign In or Register to comment.