minux
5783d8d85e
kflash.py: make -B option help text always up to date
...
Fixes #36 .
2019-09-21 21:18:13 -04:00
Huang Rui
601aad359e
Fixed printcallback problem and clean code
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-07-04 12:00:30 +08:00
Huang Rui
48d05a4f54
Merge branch 'master' of https://github.com/sipeed/kflash.py into sipeed-master
2019-07-04 11:38:29 +08:00
Huang Rui
5c1bffaed7
Refactor the code to support python2
...
* Move tuple2str as internal function
* Refactor printf function to support variable parameter(kwargs)
* Packaged getTerminalSize functions
* Add KFlash.log method
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-07-04 10:48:58 +08:00
Neucrack
ccbdc5540f
optimize raise, close serial port before raise
2019-07-03 17:40:00 +08:00
Neucrack
72ee3812ec
merge from kendyte/kflash.py
2019-07-03 15:30:07 +08:00
Neucrack
65209ec468
support python2
2019-07-03 15:15:27 +08:00
Neucrack
fedd6945eb
close serial after fail
2019-07-03 14:30:47 +08:00
Neucrack
19b9e1d75f
add slow mode option
2019-06-28 15:03:56 +08:00
Neucrack
70589b5a7a
optimize for module usage
2019-06-27 20:09:53 +08:00
Neucrack
4352cb756e
add board bit_mic
2019-05-28 18:43:09 +08:00
Neucrack
60b9cb6fbe
add maixduino board
2019-05-28 17:41:11 +08:00
Huang Rui
249830dfc7
Add --version parameter and show version string
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-05-16 00:39:30 +08:00
Neucrack
5b984926ad
optimize for kflash_gui
2019-05-10 17:30:56 +08:00
Neucrack
9305ac7306
add external call API( for kflash_gui repo)
2019-05-10 17:14:24 +08:00
Huang Rui
ea0ab4c018
Fix download error due to bad timeout
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-05-03 20:46:29 +08:00
Huang Rui
5bf2a934be
Release v0.8.1 and fixed some bugs
...
- Fix auto-select serial port bugs when using FT2232 under windows
- Fix enum import bug when python version below 3.4
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-05-03 18:34:41 +08:00
Huang Rui
72981658a4
Release python Pypi package 0.8.0
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-30 00:05:36 +08:00
Huang Rui
e947092374
Rename timeout to ISP_RECEIVE_TIMEOUT
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-29 23:07:06 +08:00
Huang Rui
6d7906fdca
Fix file format detection bug in python2
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-29 21:07:06 +08:00
Huang Rui
27e3a44e35
Fix baudrate logic when using SRAM mode
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-29 20:21:14 +08:00
Huang Rui
3c3bde2704
When using SRAM bootmode, do not greeting flash
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-29 19:57:02 +08:00
Huang Rui
999fab6780
Changed README.md to README.rst to support pypi
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-29 18:43:28 +08:00
Huang Rui
2d16e0de62
Translate all non-ASCII characters
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-29 17:47:28 +08:00
Huang Rui
7d91f1db2a
Remove absolute_import, unicode_literals import
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-29 17:32:27 +08:00
Huang Rui
2c245c7475
Support both python2 and python3
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-29 17:02:44 +08:00
Huang Rui
030de69064
Add contributor @rgwan
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-27 01:18:46 +08:00
Huang Rui
a0beb01d62
Add fast programming options and guide
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-27 01:13:24 +08:00
Huang Rui
79c60a167e
Support more openec super baudrate
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-26 12:05:44 +08:00
Huang Rui
c75d62d7ce
Use UART1 to support fractional baudrate
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-25 20:23:12 +08:00
Huang Rui
925dc62c27
Power up programming speed!!!
...
- Double programming speed by upgrade ISP_PROG
- Reduce ISP_PROG size
- Optimize flash erase
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-25 14:11:06 +08:00
Huang Rui
e8c6c7f896
Fix reset bugs and add friendly message
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-25 12:34:02 +08:00
Bigbits
927ae408ab
Fix os.get_terminal_size() error.
2019-04-24 18:52:41 +08:00
z4yx
bfdca0d28e
rework the open_terminal(), set reset signal correctly
2019-04-11 16:56:06 +08:00
z4yx
039668df74
Revert "add open_terminal() to replace duplicated code"
...
This reverts commit 6e313e9a2a
.
2019-04-11 16:04:17 +08:00
z4yx
3c840566d6
support of loading ELF
2019-04-11 15:02:21 +08:00
z4yx
6e313e9a2a
add open_terminal() to replace duplicated code
2019-04-11 15:01:49 +08:00
z4yx
1f0db55f19
better way to handle file format
2019-04-11 14:59:51 +08:00
Huang Rui
65a08e4806
Fix handshake timeout bug by stop core1
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-10 19:44:01 +08:00
Huang Rui
4ec29536d9
Add trainer board
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-10 17:28:25 +08:00
Huang Rui
19579629f4
Update automatic board detect function
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-10 17:00:51 +08:00
Huang Rui
6178bb9f74
Use setDTR and setRTS to replace deprecated API
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-10 16:29:58 +08:00
xel
3e8e276681
1.remove some argument
...
2.add sipeed board support
2019-04-10 10:51:36 +08:00
xel
615c178872
merge kendryte/master
2019-04-10 10:36:10 +08:00
Huang Rui
319a302ccc
Remove old ISP code
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-05 04:36:52 +08:00
Huang Rui
b7a3451b1c
Fix timeout and index error, fix flash initialize bug
...
- Update ISP code to fix flash initialize bug, The flash can only be initialized once
- Update ISP script to make sure retry flash handshake and retry flash initialization
- Make sure flash only be initialized onec in flash firmware
- Progress bar can adapt to terminal width
- Display transmission speed with progress bar
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-05 04:33:22 +08:00
Martin Han
d4d9363069
Fix "Response timeout" due to #14
2019-04-03 16:36:52 -04:00
mwilkinsonjr
24531d315d
Fill character '\u2588' causes issues in some envs like mingw-w64; perhaps we can use something less exotic like equals ('=') instead? Exact error message was: UnicodeEncodeError: 'charmap' codec can't encode character '\u2588' in position 19: character maps to <undefined>
2019-03-20 13:38:54 +00:00
xel
245f126295
force pass Board type
2019-03-15 19:55:17 +08:00
Huang Rui
f1224d0cd0
Do not allow users to directly burn ELF files
...
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-03-01 22:02:50 +08:00