Raspberry Pi PICO keeps reporting the error "Device is busy or does not respond. Your options:"
[Copy link]
When using thonny IDE to connect to pico, it will show
Device is busy or does not respond. Your options:
- wait until it completes current work;
- use Ctrl+C to interrupt current work;
- use Stop/Restart to interrupt more and enter REPL.
Then the stop button doesn't work. The following error is reported. Does anyone know how to fix this?
ERROR thonny.plugins.micropython.backend: Crash in backend
Traceback (most recent call last):
File "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/thonny/plugins/micropython/backend.py", line 135, in __init__
self._prepare_after_soft_reboot(clean)
File "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/thonny/plugins/micropython/backend.py", line 154, in _prepare_after_soft_reboot
self._execute_without_output(script)
File "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/thonny/plugins/micropython/backend.py", line 545, in _execute_without_output
raise ManagementError(script, out, err)
thonny.plugins.micropython.backend.ManagementError: Problem with a management command
SCRIPT:
class __thonny_helper:
try:
import uos as os
except ImportError:
import os
import sys
import builtins
# for object inspector
inspector_values = dict()
@classmethod
def print_repl_value(cls, obj):
global _
if obj is not None:
cls.builtins.print('[object_link_for_thonny=%d]' % id(obj), repr(obj), '', sep='')
_ = obj
@classmethod
def print_mgmt_value(cls, obj):
cls.builtins.print('<thonny>', repr(obj), '</thonny>', sep='', end='')
@staticmethod
def repr(obj):
try:
s = repr(obj)
if len(s) > 50:
s = s[:50] + "..."
return s
except Exception as e:
return "<could not serialize: " + str(e) + ">"
@classmethod
def listdir(cls, x):
if hasattr(cls.os, "listdir"):
return cls.os.listdir(x)
else:
return [rec[0] for rec in cls.os.ilistdir(x) if rec[0] not in ('.', '..')]
@classmethod
def getcwd(cls):
if hasattr(cls, "getcwd"):
return cls.os.getcwd()
else:
# micro:bit
return ""
@classmethod
def chdir(cls, x):
return cls.os.chdir(x)
@classmethod
def rmdir(cls, x):
return cls.os.rmdir(x)
STDOUT:
board info:
board name: Raspberry Pi Pico with RP2040
micropython version: 1.15.0
buildin modules
__main__ gc uasyncio/funcs uos
_boot machine uasyncio/lock urandom
_onewire math uasyncio/stream ure
_rp2 micropython ubinascii uselect
_thread onewire ucollections ustruct
_uasyncio rp2 uctypes usys
builtins uarray uerrno utime
cmath uasyncio/__init__ uhashlib uzlib
ds18x20 uasyncio/core uio
framebuf uasyncio/event ujson
Plus any modules on the filesystem
system freq: 125 MHz
memory: 192064
Disk size:
total: 1441792
free: 1417216
STDERR:
Backend terminated or disconnected. Use 'Stop/Restart' to restart.
|