Commit Graph

132 Commits (master)

Author SHA1 Message Date
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 b98736c5c1 Update board select document of trainer
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-10 17:29:30 +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
Huang Rui 1106245cd7 Add k210 trainer v0.01b note
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-04-10 16:20:20 +08:00
Rui Huang 763c506ba1
Merge pull request #23 from sipeed/master
add sipeed board support
2019-04-10 14:44:55 +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
Rui Huang 268d79a388
Merge pull request #22 from MarsTechHAN/patch-1
Fix "Response timeout" #19 due to 3965b6
2019-04-04 16:04:54 +08:00
xel 1fae8a0bc0
Merge pull request #2 from mwilkinsonjr/master
Fill character '\u2588' causes issues in some envs like mingw-w64
2019-04-04 15:53:16 +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
follower cb9b5fb282 Typo fix: "Requirments" -> "Requirements" 2019-03-07 12:45:23 -05: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
Huang Rui 3965b6c32f Fix ansi-color issue #14
Add --noansi option to diable ANSI color
Applied @loboris 's fix
Thanks @loboris https://github.com/loboris

Close #14

Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-02-26 19:29:11 +08:00
Huang Rui 41cc034181 Fix markdown lint problem
Signed-off-by: Huang Rui <vowstar@gmail.com>
2019-02-26 19:28:39 +08:00
Rui Huang 8fbe0e2f38
Merge pull request #17 from Yangff/patch-1
add boot to SRAM
2019-02-26 18:56:49 +08:00
xel 8810aa9a19 fix auto selece com port bug 2019-02-21 15:22:28 +08:00
xel 31764cf445 fix bug 2019-02-21 15:03:20 +08:00
xel eb829364af fix bug 2019-02-21 14:52:46 +08:00
xel 5d8bdfdd9f maix go with openec firmware, auto select sencond com port 2019-02-21 14:42:58 +08:00
xel 163193c04a add maixgo openec and cmsis-dap support 2019-02-21 14:02:38 +08:00
xel 983b9cb0da add maixgo open-ec support 2019-02-21 12:16:11 +08:00
Yangff 0470568b02
add boot to SRAM
You can now download your firmware to SRAM and boot from it by adding `-s` in your argument. You can only download `.bin` file.
2019-02-16 05:59:38 +08:00
latyas 0b06a7efe0
Merge pull request #16 from z4yx/master
Correct help message "SPI Flash type, 1 for in-chip, 0 for on-board"
2019-02-12 02:21:05 +08:00
zyx e5cd119cac fix terminal escape sequence 2019-02-10 17:39:56 +08:00
zyx 6829f6665e correct help message "SPI Flash type, 1 for in-chip, 0 for on-board"
help message of option `-c` is conflict with printing `print(INFO_MSG,"Selected Flash:
",("In-Chip", "On-Board")[chip_type],BASH_TIPS['DEFAULT'])`
2019-02-10 11:20:18 +08:00
Rui Huang 062f3f45b6
Merge pull request #15 from rgwan/master
Keep older pyserial compatiblity
2019-01-17 19:58:35 +08:00
Zhiyuan Wan 15b2dc5c36 Keep older pyserial compatiblity 2019-01-15 17:35:53 +08:00
xel d595d9a41c 添加 -i 参数,可选择ISP_PORG,测试发现ISP_PROG在某些系统或虚拟机中有bug 2019-01-09 11:33:30 +08:00
Neucrack da119bbf35
Delete .kflash.py.kate-swp 2018-12-24 22:33:48 +08:00
Neucrack ec2e284d8d
Merge pull request #1 from loboris/master
Changed ISP binary and resolve burn speed issue, optimize for windows shell color
2018-12-24 22:32:26 +08:00
Boris Lovosevic 0a960dfd68 Added alternate ISB binary taken from Kendrite 'kflash' for Windows
it may work on some systems on which the previous version was not working
Added option to disable ANSI colors
  it may be useful on Windows when using standard Command prompt not supporting colors
If terminal is used, it is started with 'filters' set to 'direct'
  it enables using control characters, for example in MaixPy
2018-12-22 15:00:16 +01:00
Neucrack b8950b6902 fix terminal color error 2018-12-20 15:36:52 +08:00
Neucrack 1111b2a87d remove suffix of progressbar 2018-12-20 15:21:03 +08:00
Neucrack 7d4be4e2b0 optimize reboot for dan ( add Borad option) 2018-12-19 16:27:14 +08:00
Rui Huang cf70eeac07
Merge pull request #13 from MarsTechHAN/master
Fix OutOfIndex and Add Retry to Greeting
2018-12-15 11:43:42 +08:00
Martin Han aeb0e22b75
Fix OutOfIndex and Add Retry to Greeting 2018-12-14 21:20:31 -05:00
Martin Han a2f109909a
Merge pull request #2 from kendryte/master
Sync with official repo
2018-11-26 11:25:26 -05:00
Huang Rui 30ab2a01ea Trim trailing white spaces
Signed-off-by: Huang Rui <vowstar@gmail.com>
2018-11-26 19:04:03 +08:00
Huang Rui 22696ed7d5 Fix .kfpkg detect buf on linux
Signed-off-by: Huang Rui <vowstar@gmail.com>
2018-11-26 18:54:46 +08:00
minux 1b324b6bb8 remove use of Python 3.6 specific feature: f'' string
Fixes #10.
2018-11-19 18:07:14 -05:00
Rui Huang 0ba72cf839
Merge pull request #9 from MarsTechHAN/master
Add support for kfpkg, sha256prefix and workaround for #6, add retry for isp comm
2018-11-16 15:00:46 +08:00