大神们好!
我在测试ESP32-S3-box芯片
刚开始就碰到状况,我根据视频材料安装Thonny,然后安装microPython,选择的是ESP32-S3
在配置解释器,然后安装MicroPython以后。
在Thonny中显示:
Hard resetting via RTS pin...
Done!
然后电脑就不停的发出嘀嘀声
Thonny 报错,内容为:
PROBLEM IN THONNY'S BACK-END: Internal error (serial.serialutil.SerialTimeoutException: Write timeout).
See Thonny's backend.log for more info.
You may need to press "Stop/Restart" or hard-reset your MicroPython device and try again.
Process ended with exit code 0.
这是backend.log的信息:
00:12:06.573 INFO thonny: Thonny version: 4.0.2
00:12:06.573 INFO thonny: cwd: C:\Program Files (x86)\Thonny
00:12:06.573 INFO thonny: original argv: ['C:\\Program Files (x86)\\Thonny\\python.exe', '-u', '-B', 'C:\\Program Files (x86)\\Thonny\\lib\\site-packages\\thonny\\plugins\\esp\\esp_back.py', "{'clean': False, 'port': 'COM3', 'dtr': None, 'rts': None, 'submit_mode': None, 'interrupt_on_connect': True, 'write_block_size': None, 'write_block_delay': None, 'proxy_class': 'ESP32Proxy', 'sync_time': True, 'validate_time': False, 'local_rtc': True}"]
00:12:06.573 INFO thonny: sys.executable: C:\Program Files (x86)\Thonny\python.exe
00:12:06.573 INFO thonny: sys.argv: ['C:\\Program Files (x86)\\Thonny\\lib\\site-packages\\thonny\\plugins\\esp\\esp_back.py', "{'clean': False, 'port': 'COM3', 'dtr': None, 'rts': None, 'submit_mode': None, 'interrupt_on_connect': True, 'write_block_size': None, 'write_block_delay': None, 'proxy_class': 'ESP32Proxy', 'sync_time': True, 'validate_time': False, 'local_rtc': True}"]
00:12:06.573 INFO thonny: sys.path: ['C:\\Program Files (x86)\\Thonny\\lib\\site-packages\\thonny\\plugins\\esp', 'C:\\Program Files (x86)\\Thonny\\python310.zip', 'C:\\Program Files (x86)\\Thonny\\DLLs', 'C:\\Program Files (x86)\\Thonny\\lib', 'C:\\Program Files (x86)\\Thonny', 'C:\\Program Files (x86)\\Thonny\\lib\\site-packages']
00:12:06.573 INFO thonny: sys.flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=1, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0, dev_mode=False, utf8_mode=0, warn_default_encoding=0, int_max_str_digits=-1)
00:12:06.574 INFO thonny.plugins.micropython.bare_metal_backend: Starting backend, args: {'clean': False, 'port': 'COM3', 'dtr': None, 'rts': None, 'submit_mode': None, 'interrupt_on_connect': True, 'write_block_size': None, 'write_block_delay': None, 'proxy_class': 'ESP32Proxy', 'sync_time': True, 'validate_time': False, 'local_rtc': True}
00:12:06.578 INFO thonny.plugins.micropython.bare_metal_backend: Initial submit_mode: raw_paste, write_block_size: 127, write_block_delay: 0, read_block_size: 0
00:12:06.578 INFO thonny.plugins.micropython.mp_back: Initializing MicroPythonBackend of type EspMicroPythonBackend
00:12:06.580 INFO thonny: TIME/MODS 0.052 before prepare (+73 modules)
00:12:06.580 INFO thonny: NEW MODS ['__future__', '_bz2', '_compression', '_ctypes', '_datetime', '_heapq', '_lzma', '_queue', '_struct', '_tkinter', 'binascii', 'bz2', 'ctypes', 'ctypes._endian', 'ctypes.wintypes', 'datetime', 'encodings.ascii', 'errno', 'faulthandler', 'fnmatch', 'gettext', 'heapq', 'lzma', 'math', 'msvcrt', 'pathlib', 'platform', 'posixpath', 'queue', 'serial', 'serial.serialutil', 'serial.serialwin32', 'serial.win32', 'shlex', 'shutil', 'signal', 'struct', 'subprocess', 'textwrap', 'thonny.backend', 'thonny.base_file_browser', 'thonny.codeview', 'thonny.config_ui', 'thonny.editors', 'thonny.languages', 'thonny.misc_utils', 'thonny.plugins', 'thonny.plugins.backend_config_page', 'thonny.plugins.micropython', 'thonny.plugins.micropython.bare_metal_backend', 'thonny.plugins.micropython.connection', 'thonny.plugins.micropython.mp_back', 'thonny.plugins.micropython.mp_common', 'thonny.plugins.micropython.mp_front', 'thonny.plugins.micropython.serial_connection', 'thonny.plugins.micropython.webrepl_connection', 'thonny.roughparse', 'thonny.running', 'thonny.tktextext', 'thonny.ui_utils', 'thonny.workdlg', 'tkinter', 'tkinter.commondialog', 'tkinter.constants', 'tkinter.dialog', 'tkinter.filedialog', 'tkinter.font', 'tkinter.messagebox', 'tkinter.simpledialog', 'tkinter.ttk', 'urllib', 'urllib.parse', 'zlib']
00:12:06.580 INFO thonny.plugins.micropython.mp_back: Sending interrupt
00:12:06.580 INFO thonny.plugins.micropython.mp_back: Done sending interrupt
00:12:06.680 INFO thonny.plugins.micropython.mp_back: Sending interrupt
00:12:07.325 ERROR thonny.plugins.micropython.mp_back: Exception in MicroPython main method
Traceback (most recent call last):
File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\plugins\micropython\mp_back.py", line 139, in __init__
self._process_until_initial_prompt(
File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\plugins\micropython\bare_metal_backend.py", line 268, in _process_until_initial_prompt
self._process_output_until_active_prompt(
File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\plugins\micropython\bare_metal_backend.py", line 844, in _process_output_until_active_prompt
self._interrupt()
File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\plugins\micropython\mp_back.py", line 337, in _interrupt
self._write(INTERRUPT_CMD)
File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\plugins\micropython\mp_back.py", line 466, in _write
return self._connection.write(data)
File "C:\Program Files (x86)\Thonny\lib\site-packages\thonny\plugins\micropython\serial_connection.py", line 89, in write
size = self._serial.write(data)
File "C:\Program Files (x86)\Thonny\lib\site-packages\serial\serialwin32.py", line 325, in write
raise SerialTimeoutException('Write timeout')
serial.serialutil.SerialTimeoutException: Write timeout
我更换了数据线,更换了测试电脑,都显示该信息。
我不确认是ESP32-S3-box有问题,还是其它原因。
安装microPython后出错,求教!
-
- Posts: 96
- Joined: Wed Nov 10, 2021 9:28 am
Re: 安装microPython后出错,求教!
建议通过 u0 rx 和 u0 tx 连接 TTL 转usb 模块,通过串口烧录程序。https://www.google.com/search?q=TTL+%E8 ... bbAstkkf4M
当前你是通过 USB 去烧录,芯片被擦除后,Flash 内无代码 USB 重复连接导致 ‘电脑音箱嘀嘀’ 是正常现象。建议提前烧录稳定的固件。
https://espressif-docs.readthedocs-host ... pc-usb-usb
当前你是通过 USB 去烧录,芯片被擦除后,Flash 内无代码 USB 重复连接导致 ‘电脑音箱嘀嘀’ 是正常现象。建议提前烧录稳定的固件。
https://espressif-docs.readthedocs-host ... pc-usb-usb
Who is online
Users browsing this forum: No registered users and 4 guests