on OSX, after compiling the ESP32 code, first stage is to erase the flash, second is to flash the firmware, both stages complete without errors.
I have tried several different branches, and also re-cloned xtensa, esp-idf and micropython-esp32 several times the result is always the same.
The esp-idf hash is correct and there are no warnings or errors during the build, the pre-compiled file is identical in size to my compiled file 995792 bytes:
The pre-compiled file ( esp32-20170610-v1.8.7-964-g62d40e8b.bin ) does not have this boot error.
Code: Select all
ls -all
-rwxrwxrwx@ 1 xxx staff 995792 10 чер 11:54 esp32-20170610-v1.8.7-964-g62d40e8b.bin
-rwxrwxrwx 1 xxx staff 995792 11 чер 11:07 firmware.bin
Code: Select all
Traceback (most recent call last):
Traceback (most recent call last):
File "_boot.py", line 10, in <module>
File "inisetup.py", line 28, in setup
File "inisetup.py", line 6, in check_bootsec
File "flashbdev.py", line 13, in readblocks
OSError: [Errno 5] EIO
OSError: [Errno 1] EPERM
OSError: [Errno 1] EPERM
MicroPython v1.8.7-964-g62d40e8b on 2017-06-11; ESP32 module with ESP32
Type "help()" for more information.
>>> import os
>>> os.listdir()
[]
>>> import flashbdev
>>> os.VfsFat.mkfs(flashbdev.bdev)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "flashbdev.py", line 18, in writeblocks
OSError: [Errno 5] EIO
>>>
As you can see from the listdir() there are no files or folders, attempting to format the file system results in EIO error.
Any suggestions on what the problem may be as I am at a loss now and run out of ideas