-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
I'm struggling to upload code to a Feather Huzzah board using the latest 3.0.0 Release Candidate 0. If I rollback to version 2.3.1, everything seems to work as expected.
Based on the recommendation of the CircuitPython for ESP8266 page, I've tried using AMPY in place of using my usual mpfshell
utility. Even running the list command ampy --port /dev/cu.SLAB_USBtoUART ls /
results in an error. Other commands return the same error.
18:26 $ ampy --port /dev/cu.SLAB_USBtoUART ls /
b'#5 ets_task(40100394, 3, 3fff83f0, 4)\r\nThe FAT filesystem starting at sector 153 with size 866 sectors appears to\r\nbe corrupted. If you had important data there, you may want to make a flash\r\nsnapshot to try to recover it. Otherwise, perform factory reprogramming\r\nof MicroPython firmware (completely erase flash, followed by firmware\r\nprogramming).\r\n\r\nTraceback (most recent call last):\r\n File "_boot.py", line 12, in <module>\r\n File "inisetup.py", line 40, in setup\r\n File "inisetup.py", line 25, in check_bootsec\r\n File "inisetup.py", line 37, in fs_corrupted\r\nKeyboardInterrupt: \r\n'
Traceback (most recent call last):
File "/Users/awarner/anaconda2/envs/upy/bin/ampy", line 11, in <module>
sys.exit(cli())
File "/Users/awarner/anaconda2/envs/upy/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/Users/awarner/anaconda2/envs/upy/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/Users/awarner/anaconda2/envs/upy/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/awarner/anaconda2/envs/upy/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/awarner/anaconda2/envs/upy/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/Users/awarner/anaconda2/envs/upy/lib/python3.6/site-packages/ampy/cli.py", line 147, in ls
for f in board_files.ls(directory):
File "/Users/awarner/anaconda2/envs/upy/lib/python3.6/site-packages/ampy/files.py", line 94, in ls
self._pyboard.enter_raw_repl()
File "/Users/awarner/anaconda2/envs/upy/lib/python3.6/site-packages/ampy/pyboard.py", line 210, in enter_raw_repl
raise PyboardError('could not enter raw repl')
ampy.pyboard.PyboardError: could not enter raw repl
One issue I've noticed which could be the root problem, is that a file cannot be created within CircuitPython 3 as can be done for version 2. For example:
Adafruit CircuitPython 3.0.0-rc.0 on 2018-06-18; ESP module with ESP8266
>>> f = open('temp.txt', 'wb')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 1] Permission denied
I think that the Express boards still need to prevent file system issues with the USB mounted file system and prevent file creation in this way but there is no such issue with the Feather Huzzah boards that I know of.
Also, I tried to upload files using the webrepl but that seems to have a similar issue.
Adafruit CircuitPython 3.0.0-rc.0 on 2018-06-18; ESP module with ESP8266
>>> import webrepl
>>> webrepl.start()
WebREPL is not configured, run 'import webrepl_setup'
>>> import webrepl_setup
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "webrepl_setup.py", line 108, in <module>
File "webrepl_setup.py", line 76, in main
File "webrepl_setup.py", line 45, in get_daemon_status
OSError: [Errno 1] Permission denied