merge from kendyte/kflash.py

pull/32/head
Neucrack 2019-07-03 15:30:07 +08:00
commit 72ee3812ec
3 changed files with 8 additions and 5 deletions

View File

@ -189,7 +189,7 @@ Ubuntu, Debian Requirements
sudo apt update
sudo apt install python3 python3-pip
sudo pip3 install pyserial
sudo pip3 install pyelftools
sudo pip3 install pyelftools
--------------
@ -214,7 +214,7 @@ CentOS
sudo ln -s /bin/python3.6 /usr/bin/python3
sudo ln -s /bin/pip3.6 /usr/bin/pip3
sudo pip3 install pyserial
sudo pip3 install pyelftools
sudo pip3 install pyelftools
Trouble Shooting
----------------
@ -245,6 +245,7 @@ Windows
**USB-SERIAL CH340(COM13)**.
.. code:: bash
# Using pip, only need once when you install
pip install kflash
kflash -p COM13 firmware.bin

View File

@ -1088,7 +1088,7 @@ class KFlash:
def kill(self):
self._kill_process = True
def checkKillExit(self):
if self._kill_process:
self._port.close()
@ -1105,6 +1105,7 @@ class KFlash:
sys.argv = [sys.argv[0], _port, '115200', '--dtr='+control_signal, '--rts='+control_signal, '--filter=direct']
serial.tools.miniterm.main(default_port=_port, default_baudrate=115200, default_dtr=control_signal_b, default_rts=control_signal_b)
sys.exit(0)
boards_choices = ["kd233", "dan", "bit", "bit_mic", "goE", "goD", "maixduino", "trainer"]
if terminal:
parser = argparse.ArgumentParser()
@ -1420,7 +1421,7 @@ class KFlash:
if(args.terminal == True):
open_terminal(True)
def kill(self):
if self.loader:
self.loader.kill()

View File

@ -8,11 +8,12 @@ from setuptools import setup, find_packages
setup(
name='kflash',
py_modules=['kflash'],
version='0.8.2',
version='0.8.3',
description=(
'Kendryte UART ISP Utility - programming code to k210'
),
long_description=open('README.rst').read(),
long_description_content_type='text/x-rst',
author='https://github.com/kendryte/kflash.py/graphs/contributors',
author_email='auto@canaan-creative.com',
maintainer='Huang Rui',