MOS BUILD errors

#1
  1. My goal is: Be able to built without error

  2. My actions are: mos built --platform esp32

  3. The result I see is: See logs here http://api.llavemovil.com/build.txt

  4. My expectation & question is: Why is not building

    $ mos version
    The Mongoose OS command line tool
    Version: 201910271210
    Build ID: 20191031-112548/2.15.0-9-g20f93fb-master
    Update channel: latest
    Command completed.

#2

The error is here:

Traceback (most recent call last):
  File "/mongoose-os/tools/mgos_fw_meta.py", line 543, in <module>
    handlers[args.cmd](args)
  File "/mongoose-os/tools/mgos_fw_meta.py", line 238, in cmd_gen_ffi_exports
    data = f.read()
  File "/usr/lib/python3.6/codecs.py", line 321, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf1 in position 6619: invalid continuation byte
#3

I found that the problems goes for an Out of Memory because of the use of: https://github.com/tripflex/captive-portal-wifi-web without the minified files.

After building, it was ok but now the flash tool gives me an error, even on a brand new open NodeMCU:

$ mos flash
Loaded app5/esp32 version 1.0 (20191104-175350)
Opening COM8 @ 115200...
Connecting to ESP32 ROM, attempt 1 of 10...
Error: EOF
/go/src/github.com/mongoose-os/mos/mos/flash/common/slip.go:50: error reading
/go/src/github.com/mongoose-os/mos/mos/flash/esp/rom_client/rom_client.go:209: error reading response
/go/src/github.com/mongoose-os/mos/mos/flash/esp/rom_client/rom_client.go:255: error reading response to cmd 10
/go/src/github.com/mongoose-os/mos/mos/flash/esp/rom_client/rom_client.go:449: failed to read reg 0x6001a104
/go/src/github.com/mongoose-os/mos/mos/flash/esp32/efuses.go:495: 
/go/src/github.com/mongoose-os/mos/mos/flash/esp32/efuses.go:507: 
/go/src/github.com/mongoose-os/mos/mos/flash/esp32/efuses.go:533: failed to perform eFuse read operation
/go/src/github.com/mongoose-os/mos/mos/flash/esp32/esp32.go:48: 
/go/src/github.com/mongoose-os/mos/mos/flash/esp/rom_client/rom_client.go:164: failed to read chip type
/go/src/github.com/mongoose-os/mos/mos/flash/esp/rom_client/rom_client.go:124: failed to connect to ROM
/go/src/github.com/mongoose-os/mos/mos/flash/esp/rom_client/rom_client.go:110: failed to create ROM client
/go/src/github.com/mongoose-os/mos/mos/flash/esp/flasher/common.go:59: Failed to talk to bootloader.
See https://github.com/espressif/esptool/wiki/ESP8266-Boot-Mode-Selection
for wiring instructions or pull GPIO0 low and reset.
/go/src/github.com/mongoose-os/mos/mos/flash/esp/flasher/flash.go:74: 
/go/src/github.com/mongoose-os/mos/mos/flash.go:230: 
/go/src/github.com/mongoose-os/mos/mos/main.go:196: flash failed
exit status 1
Command completed.

Also I have try to keep the reset button pressed until the flash process starts with no success either.

#4

You are trying to flash an ESP8266 with ESP32 code.