Open supersjimmie opened 5 years ago
Hmm, this sounds like something isn't initialized properly. Unfortunately, I don't have an ESP32 to test this on, if you could debug I would appreciate it.
seemed to work when I just added the log with debug level, but then after going in and out the repl it hung again. the log doesn't show much specific.
cat ~/mpfshell.log
2019-03-29 09:39:12,734 INFO Micropython File Shell v0.9.0 started
2019-03-29 09:39:12,734 INFO Running on Python 2.7 using PySerial 3.4
19-03-29 09:39:12,852 DEBUG serial write >
019-03-29 09:39:12,854 DEBUG serial write >
2019-03-29 09:39:12,859 DEBUG serial read <
2019-03-29 09:39:12,860 DEBUG serial read <
2019-03-29 09:39:12,861 DEBUG serial read < >
2019-03-29 09:39:12,861 DEBUG serial read < >
2019-03-29 09:39:12,861 DEBUG serial read < >
2019-03-29 09:39:12,861 DEBUG serial read <
2019-03-29 09:39:12,862 DEBUG serial read <
2019-03-29 09:39:12,862 DEBUG serial read <
2019-03-29 09:39:12,864 DEBUG serial read < >
2019-03-29 09:39:12,865 DEBUG serial read < >
2019-03-29 09:39:12,866 DEBUG serial read < >
2019-03-29 09:39:12,866 DEBUG serial read <
2019-03-29 09:39:12,866 DEBUG serial read <
2019-03-29 09:39:12,867 DEBUG serial read <
2019-03-29 09:39:12,867 DEBUG serial read < >
2019-03-29 09:39:12,868 DEBUG serial read < >
2019-03-29 09:39:12,868 DEBUG serial read < >
2019-03-29 09:39:12,868 DEBUG serial read <
2019-03-29 09:39:12,869 DEBUG serial read <
2019-03-29 09:39:12,869 DEBUG serial read <
2019-03-29 09:39:12,869 DEBUG serial read < >
2019-03-29 09:39:12,869 DEBUG serial read < >
2019-03-29 09:39:12,870 DEBUG serial read < >
2019-03-29 09:39:12,870 DEBUG serial read <
2019-03-29 09:39:12,870 DEBUG serial read <
2019-03-29 09:39:12,870 DEBUG serial read <
2019-03-29 09:39:12,871 DEBUG serial read < r
2019-03-29 09:39:12,871 DEBUG serial read < a
2019-03-29 09:39:12,871 DEBUG serial read < w
2019-03-29 09:39:12,871 DEBUG serial read <
2019-03-29 09:39:12,872 DEBUG serial read < R
2019-03-29 09:39:12,872 DEBUG serial read < E
2019-03-29 09:39:12,873 DEBUG serial read < P
2019-03-29 09:39:12,873 DEBUG serial read < L
2019-03-29 09:39:12,873 DEBUG serial read < ;
2019-03-29 09:39:12,873 DEBUG serial read <
2019-03-29 09:39:12,873 DEBUG serial read < C
2019-03-29 09:39:12,874 DEBUG serial read < T
2019-03-29 09:39:12,874 DEBUG serial read < R
2019-03-29 09:39:12,874 DEBUG serial read < L
2019-03-29 09:39:12,874 DEBUG serial read < -
2019-03-29 09:39:12,875 DEBUG serial read < B
2019-03-29 09:39:12,875 DEBUG serial read <
2019-03-29 09:39:12,875 DEBUG serial read < t
2019-03-29 09:39:12,875 DEBUG serial read < o
2019-03-29 09:39:12,875 DEBUG serial read <
2019-03-29 09:39:12,876 DEBUG serial read < e
2019-03-29 09:39:12,876 DEBUG serial read < x
2019-03-29 09:39:12,876 DEBUG serial read < i
2019-03-29 09:39:12,876 DEBUG serial read < t
2019-03-29 09:39:12,876 DEBUG serial read <
2019-03-29 09:39:12,876 DEBUG serial read <
2019-03-29 09:39:12,877 DEBUG serial read < >
2019-03-29 09:39:12,877 DEBUG serial write > import uos, sys
2019-03-29 09:39:12,888 DEBUG serial write >
2019-03-29 09:39:12,890 DEBUG serial read < OK
2019-03-29 09:39:12,899 DEBUG serial read <
2019-03-29 09:39:12,899 DEBUG serial read <
2019-03-29 09:39:12,899 DEBUG serial read < >
2019-03-29 09:39:12,899 DEBUG serial write > try:
import ubinascii
except ImportError:
import binascii as ubinascii
2019-03-29 09:39:12,910 DEBUG serial write >
2019-03-29 09:39:12,912 DEBUG serial read < OK
2019-03-29 09:39:12,922 DEBUG serial read <
2019-03-29 09:39:12,923 DEBUG serial read <
2019-03-29 09:39:12,923 DEBUG serial read < >
2019-03-29 09:39:12,923 DEBUG serial write > print(uos.getcwd())
2019-03-29 09:39:12,933 DEBUG serial write >
2019-03-29 09:39:12,935 DEBUG serial read < OK
2019-03-29 09:39:12,949 DEBUG serial read < /
2019-03-29 09:39:12,949 DEBUG serial read < f
2019-03-29 09:39:12,950 DEBUG serial read < l
2019-03-29 09:39:12,950 DEBUG serial read < a
2019-03-29 09:39:12,950 DEBUG serial read < s
2019-03-29 09:39:12,950 DEBUG serial read < h
2019-03-29 09:39:12,951 DEBUG serial read <
2019-03-29 09:39:12,951 DEBUG serial read <
2019-03-29 09:39:12,951 DEBUG serial read <
2019-03-29 09:39:12,951 DEBUG serial read <
2019-03-29 09:39:12,952 DEBUG serial read < >
2019-03-29 09:39:12,952 DEBUG serial write > print(uos.uname()[0])
2019-03-29 09:39:12,963 DEBUG serial write >
2019-03-29 09:39:12,965 DEBUG serial read < OK
2019-03-29 09:39:12,976 DEBUG serial read < e
2019-03-29 09:39:12,976 DEBUG serial read < s
2019-03-29 09:39:12,977 DEBUG serial read < p
2019-03-29 09:39:12,977 DEBUG serial read < 3
2019-03-29 09:39:12,977 DEBUG serial read < 2
2019-03-29 09:39:12,978 DEBUG serial read < _
2019-03-29 09:39:12,978 DEBUG serial read < L
2019-03-29 09:39:12,978 DEBUG serial read < o
2019-03-29 09:39:12,978 DEBUG serial read < B
2019-03-29 09:39:12,979 DEBUG serial read < o
2019-03-29 09:39:12,979 DEBUG serial read <
2019-03-29 09:39:12,979 DEBUG serial read <
2019-03-29 09:39:12,980 DEBUG serial read <
2019-03-29 09:39:12,980 DEBUG serial read <
019-03-29 09:39:15,560 DEBUG serial write >
2019-03-29 09:39:15,561 DEBUG serial read < >
2019-03-29 09:39:15,571 DEBUG serial read <
2019-03-29 09:39:15,572 DEBUG serial read <
MicroPython ESP32_LoBo_v3.2.24 - 2018-09-06 on ESP32 board with ESP32
Type "help()" for more information.
>>>
So nothing at the moment it hangs.
@supersjimmie how to debug ?
I have an esp32 with loboris micropython. When I completely clear the esp32 and put a fresh flashed image, I can enter mpfshell, access the files and all seems fine. But when I want to enter repl, the system completely hangs.
Here nothing works anymore, I have to kill the mpfshell to get out.