From 2394022aacd86aeba3352a99abde6049ef6ca9e5 Mon Sep 17 00:00:00 2001 From: buhe Date: Wed, 7 Apr 2021 14:59:22 +0800 Subject: [PATCH 1/3] change to my setting --- os/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/Makefile b/os/Makefile index 3017ed14..61c67c06 100644 --- a/os/Makefile +++ b/os/Makefile @@ -19,7 +19,7 @@ else ifeq ($(BOARD), k210) endif # Run K210 -K210-SERIALPORT = /dev/ttyUSB0 +K210-SERIALPORT = /dev/tty.usbserial-35525425B50 K210-BURNER = ../tools/kflash.py # Binutils From c039c286dbfddc093196849d50747d84f3a16e49 Mon Sep 17 00:00:00 2001 From: buhe Date: Wed, 7 Apr 2021 15:13:47 +0800 Subject: [PATCH 2/3] use python script instead of system exe --- os/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/Makefile b/os/Makefile index 61c67c06..c0ed4fc0 100644 --- a/os/Makefile +++ b/os/Makefile @@ -76,7 +76,7 @@ else @mv $(BOOTLOADER).copy $(KERNEL_BIN) @sudo chmod 777 $(K210-SERIALPORT) python3 $(K210-BURNER) -p $(K210-SERIALPORT) -b 1500000 $(KERNEL_BIN) - miniterm --eol LF --dtr 0 --rts 0 --filter direct $(K210-SERIALPORT) 115200 + python3 -m serial.tools.miniterm --eol LF --dtr 0 --rts 0 --filter direct $(K210-SERIALPORT) 115200 endif debug: build From 5bcb009ac3b03f30ff1b48b6c17bcca25007ea66 Mon Sep 17 00:00:00 2001 From: buhe Date: Wed, 7 Apr 2021 15:15:46 +0800 Subject: [PATCH 3/3] revert code --- os/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/Makefile b/os/Makefile index c0ed4fc0..7d80fdd8 100644 --- a/os/Makefile +++ b/os/Makefile @@ -19,7 +19,7 @@ else ifeq ($(BOARD), k210) endif # Run K210 -K210-SERIALPORT = /dev/tty.usbserial-35525425B50 +K210-SERIALPORT = /dev/ttyUSB0 K210-BURNER = ../tools/kflash.py # Binutils