MOS BUILD errors

  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

  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.


The error is here:

Traceback (most recent call last):
  File "/mongoose-os/tools/", line 543, in <module>
  File "/mongoose-os/tools/", line 238, in cmd_gen_ffi_exports
    data =
  File "/usr/lib/python3.6/", 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

I found that the problems goes for an Out of Memory because of the use of: 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/ error reading
/go/src/ error reading response
/go/src/ error reading response to cmd 10
/go/src/ failed to read reg 0x6001a104
/go/src/ failed to perform eFuse read operation
/go/src/ failed to read chip type
/go/src/ failed to connect to ROM
/go/src/ failed to create ROM client
/go/src/ Failed to talk to bootloader.
for wiring instructions or pull GPIO0 low and reset.
/go/src/ 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.


You are trying to flash an ESP8266 with ESP32 code.