Skip to content

ly0/kflash.py

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

kflash.py

USAGE

Linux

Install base tools

Install python3, pip and pyserial.

Under ubuntu, debian:

sudo apt-get update
sudo apt-get install python3 python3-pip
sudo pip3 install pyserial

Under Fedora

sudo dnf install python3
sudo python3 -m pip install pyserial

Under CentOS:

sudo yum -y install epel-release
sudo yum -y install python36u python36u-pip
sudo ln -s /bin/python3.6 /usr/bin/python3
sudo ln -s /bin/pip3.6 /usr/bin/pip3
sudo pip3 install pyserial

Add your self to dialout group to use usb-to-uart devices

sudo usermod -a -G dialout $(whoami)

Logout, and login.

Check usb device

ls /dev/ttyUSB*

For example, the terminal may output like this:

/dev/ttyUSB0

Program k210 board under terminal

python3 kflash.py --device /dev/ttyUSB0 --baudrate 115200 firmware.bin

Windows

The easiest way is using kendryte-flash-windows or WSL

Install python3 and pip of python3

Install python3, and extract pip3 to install it.

Program k210 board under console

python3 kflash.py --device COM3 --baudrate 115200 firmware.bin

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%