Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

Unable to finish flashing / device setup with webui ESP32

bdelarrebdelarre United States

Trying to follow the javascript getting started guide here: https://mongoose-os.com/docs/quickstart/using-javascript.html

Downloaded the mos.exe on Windows 10, am running it and the webui pops up. I select the COM port for the Sparkfun ESP32 Thing and then the mos-esp32 firmware and hit flash. Sometimes this results in flashing othertimes not.

Often I'll get this console output:

[Sep 12 21:50:50.377] E0912 21:50:50.377946    3688 ui.go:494] Calling: FS.ListExt
[Sep 12 21:50:50.379] E0912 21:50:50.379948    3688 ui.go:494] Calling: Sys.GetInfo
[Sep 12 21:50:52.677] E0912 21:50:52.677534    3688 reconnect_wrapper.go:72] [reconnectWrapperCodec to COM7; connecting...] Connection closed
[Sep 12 21:50:52.677] E0912 21:50:52.677534    3688 ui.go:518] Call complete, error: context deadline exceeded
[Sep 12 21:50:55.754] E0912 21:50:55.754070    3688 ui.go:518] Call complete, error: context deadline exceeded
[Sep 12 21:50:55.756] E0912 21:50:55.754070    3688 reconnect_wrapper.go:72] [reconnectWrapperCodec to COM7; connecting...] Connection closed
[Sep 12 21:50:55.923] E0912 21:50:55.923201    3688 ui.go:494] Calling: FS.ListExt

Othertimes when I click Flash it will complete the flashing but will never complete Step 2 and allow me to enter the wifi configuration step:

[Sep 12 21:55:59.722] Fetching https://mongoose-os.com/downloads/mos-esp32-1.15.zip...
[Sep 12 21:56:01.751] Loaded default/esp32 version 1.0 (20170907-122944/???)
[Sep 12 21:56:01.751] Opening COM7 @ 115200...
[Sep 12 21:56:01.770] Connecting to ESP32 ROM, attempt 1 of 10...
[Sep 12 21:56:03.597]   Connected
[Sep 12 21:56:03.597] Running flasher @ 460800...
[Sep 12 21:56:04.205]   Flasher is running
[Sep 12 21:56:04.221] Flash size: 4194304, params: 0x0220 (dio,32m,40m)
[Sep 12 21:56:04.224] Deduping...
[Sep 12 21:56:04.268]     18224 @ 0x1000 -> 0
[Sep 12 21:56:04.284]      3072 @ 0x8000 -> 0
[Sep 12 21:56:04.316]     16384 @ 0x9000 -> 8192
[Sep 12 21:56:06.352]   1318928 @ 0x10000 -> 0
[Sep 12 21:56:06.767]    262144 @ 0x190000 -> 0
[Sep 12 21:56:06.767] Writing...
[Sep 12 21:56:06.767]      8192 @ 0x9000
[Sep 12 21:56:06.992]      8192 @ 0xd000
[Sep 12 21:56:07.220] Wrote 16384 bytes in 0.45 seconds (282.03 KBit/sec)
[Sep 12 21:56:07.220] Verifying...
[Sep 12 21:56:07.220]     18224 @ 0x1000
[Sep 12 21:56:07.252]      3072 @ 0x8000
[Sep 12 21:56:07.268]     16384 @ 0x9000
[Sep 12 21:56:07.300]      8192 @ 0xd000
[Sep 12 21:56:07.316]   1318928 @ 0x10000
[Sep 12 21:56:08.631]    262144 @ 0x190000
[Sep 12 21:56:08.901] Booting firmware...
[Sep 12 21:56:09.070] All done!
[Sep 12 21:56:12.073] E0912 21:56:12.073567   13852 ui.go:494] Calling: Sys.GetInfo
[Sep 12 21:56:17.338] E0912 21:56:17.336172   13852 ui.go:518] Call complete, error: context deadline exceeded
[Sep 12 21:56:17.338] E0912 21:56:17.338174   13852 reconnect_wrapper.go:72] [reconnectWrapperCodec to COM7; connecting...] Connection closed
[Sep 12 21:56:20.351] E0912 21:56:20.351131   13852 ui.go:494] Calling: FS.ListExt
[Sep 12 21:56:20.353] E0912 21:56:20.352133   13852 ui.go:494] Calling: Sys.GetInfo
[Sep 12 21:56:22.558] E0912 21:56:22.558457   13852 reconnect_wrapper.go:72] [reconnectWrapperCodec to COM7; connecting...] Connection closed
[Sep 12 21:56:22.558] E0912 21:56:22.558457   13852 ui.go:518] Call complete, error: context deadline exceeded
Server Error: Lost connection with your board. Please restart mos tool from terminal

I've also tried flashing from the console, this completes as expected, but then I'm unsure where to go from there to get a working webui since when I restart the mos.exe tool I have to go through the setup process again. Regardless the serial output from the flashed version is garbled, so I suspect there's something wrong with the mos-esp32-1.15 firmware that I'm putting on the device.

Any suggestions?

Comments

Sign In or Register to comment.