toolbox create
toolbox enter
sudo dnf install arm-none-eabi-gcc arm-none-eabi-newlib make gcc
mkdir w600 && cd $_
wget http://winnermicro.com/upload/1/editor/1584693446529.zip
unzip 1584693446529.zip -d ./sdk
rm 1584693446529.zip
export WMSDK_PATH=$PWD/sdk
mkdir -p $WMSDK_PATH/Src/Wlan && touch $_/empty
git clone --single-branch --branch w60x https://github.com/robert-hh/micropython.git
cd micropython/ports/w60x
make submodules
ln -fs ../../../lib/micropython-lib/micropython/drivers/storage/sdcard/sdcard.py scripts/sdcard.py
make
exitError: could not enter raw repl
diff --git a/tools/pyboard.py b/tools/pyboard.py
index 9e0b0f18e..ccc52cafe 100755
--- a/tools/pyboard.py
+++ b/tools/pyboard.py
@@ -342,7 +342,11 @@ class Pyboard:
return data
def enter_raw_repl(self, soft_reset=True):
- self.serial.write(b"\r\x03\x03") # ctrl-C twice: interrupt any running program
+ # ctrl-C twice: interrupt any running program
+ self.serial.write(b"\rx03")
+ time.sleep(0.1)
+ self.serial.write(b'\x03')
+ time.sleep(0.1)
# flush input (without relying on serial.flushInput())
n = self.serial.inWaiting()git apply raw_repl.patchtoolbox list
# podman ps
podman stop <container-name>