• Stars
    star
    150
  • Rank 247,323 (Top 5 %)
  • Language
    Python
  • License
    GNU Lesser Genera...
  • Created over 5 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Cross platform GUI wrapper for kflash.py (download(/burn) tool for k210)

kflash_gui

=============

Cross platform GUI wrapper for kflash.py (download(/burn) tool for k210)

screenshot

Features

  • Support *.bin and *.kfpgk file with file picker
  • Support development board select(And auto detect, you should select board manually if you want to use high speed mode)
  • Support select where the firmware burned to
  • Auto scan serial port support
  • Baudrate editable
  • White skin and night skin support
  • Support Chinese and English Language
  • Download(/burn) progress and speed display
  • Cancel download support
  • Support merge bins to one bin file(Especially for factory flash burn usage)
  • Support convert kfpkg to one bin file
  • Support enbale bin file or not
  • Auto identify firmware file
  • Erase flash support(Full chip or partial erase)

Screenshots

Usage

  • Download bin file (kflash_gui_v*.*) here

  • Compress and double click kflash_gui.exe or kflash_gui

  • you can create your own shortcut by yourself; If Linux, edit the path in kflash_gui.desktop, then copy this file to /usr/share/application folder with administrator, and finally you can find kflash_gui app in the system menu

  • Select bin file or kfpkg file, set address to 0x0000 if file is firmware

  • Select board

  • Select where firmware flash to, Flash or SRAM

  • Select serial port

  • Select baudrate, 1.5M recommend

  • Click Download to burn firmware or model to board

Running from source

This repository uses submodules. The --recursive should be used so the required submodule(s) are downloaded.

git clone  --recursive https://github.com/sipeed/kflash_gui.git
cd kflash_gui

Assuming a Debian based distro is being used, dependencies can be installed with the following commands.

sudo apt install python3 python3-pip
sudo pip3 install -r requirements.txt

kflash_gui can be run from the source file as follows:

python3 kflash_gui.py

An execution package can be made with these commands:

sudo pip3 install pyinstaller
python3 pack.py

If something goes wrong

If downloading fails

  • Check hardware connection
  • Check board selection
  • Check serial port selection
  • Check baudrate, do not too high
  • Check if serial occupied by other software
  • Replug in USB cable and try again

dlopen(): error loading libfuse.so.2 with AppImage

sudo apt-get install -yq x11-utils libxkbcommon-x11-0 libfuse2

How kfpkg coms from

Refer here: blog.sipeed.com/p/390.html


特性

  • 支持 *.bin*.kfpgk 文件, 支持文件选择器选择
  • 支持开发板选择(也支持自动选择, 要使用高速模式尽量手动选择)
  • 可选择程序烧录到 Flash 或者 SRAM
  • 自动检测电脑上的串口
  • 波特率可编辑
  • 黑白两种皮肤可供选择
  • 界面支持中英文切换
  • 支持烧录进度显示和烧录速度显示
  • 支持取消下载进程
  • 支持合并多个 bin 文件为一个 bin 文件 (工厂批量烧录 Flash 可使用此功能打包成 bin )
  • 支持把 kfpkg 文件转换为一个 bin 文件 (工厂批量烧录 Flash 可使用此功能打包成 bin )
  • 支持使能 bin 文件
  • 自动识别文件是不是固件
  • Flash 擦除 (支持 部分擦除 和 整片 擦除)

使用方法

  • 下载文件(kflash_gui_v*.*) 下载地址:release页面

  • 解压, 并双击 kflash_gui.exekflash_gui

  • 可以自行建快捷方式或者固定到开始页面或者固定要任务栏方便使用; 如果是 Linux, 可以修改 kflash_gui.desktop 里面的路径, 然后用管理员身份复制到/usr/share/application 目录, 然后就可以在系统菜单里面找到kflash_gui的图标了,点击即可打开

  • 选择 bin 文件或者 kfpkg 文件, 如果是bin文件需要指定地址,如果是固件需要指定0x0000地址

  • 选择开发板

  • 选择烧录到开发板的哪个位置 Flash(速度慢但是重新上电还可运行) 或者 SRAMRAM中运行,下载快断电丢失程序)

  • 选择串口

  • 选择波特率,推荐1.5M

  • 点击 下载 按钮来开始下载

  • 如果需要取消,点击 取消 按钮

出现问题

无法下载时检查

  • 板子连接是否正确
  • 开发板是否选择正确
  • 串口是否选择正确
  • 串口速度是否选择过高,可以适当降低速度试试
  • 串口是否被其它软件占用
  • 串口是否出了奇怪的问题,拔掉电脑连接到板子的线重新插一下试试

运行AppImage时报错dlopen(): error loading libfuse.so.2

sudo apt-get install -yq x11-utils libxkbcommon-x11-0 libfuse2

如何手动打包 kfpkg

参考这里: blog.sipeed.com/p/390.html

More Repositories

1

NanoKVM

NanoKVM: Affordable, Multifunctional, Nano RISC-V IP-KVM
TypeScript
1,867
star
2

MaixPy-v1

MicroPython for K210 RISC-V, let's play with edge AI easier
Python
1,681
star
3

TinyMaix

TinyMaix is a tiny inference library for microcontrollers (TinyML).
C
877
star
4

MaixPy-v1_scripts

micropython scripts for MaixPy
Python
622
star
5

Maix-Speech

Maix Speech AI lib, a fast and small speech lib running on embedded devices, including ASR, chat, TTS etc.
Python
312
star
6

Maixduino

Arduino port on Maix board ( k210 )
C++
213
star
7

TangNano-9K-example

TangNano-9K-example project
GLSL
211
star
8

platform-gd32v

GD32V: development platform for PlatformIO
Python
182
star
9

MaixPy3

Python sdk for Sipeed Maix-II-Dock(v831). Other board please use https://github.com/sipeed/MaixPy
Python
173
star
10

MaixPy

Easily create AI projects with Python on edge device
Python
142
star
11

RV-Debugger-BL702

RV-Debugger-BL702 Project, an opensource debugger implement
C
140
star
12

TangPrimer-20K-example

TangPrimer-20K-example project
GLSL
129
star
13

sipeed_wiki

sipeed wiki:https://wiki.sipeed.com
JavaScript
94
star
14

TangNano-4K-example

TangNano-4K-example project
GLSL
87
star
15

Longan_GD32VF_examples

example project for Longan Nano (GD32VF)
C
85
star
16

Maix_Toolbox

Maix Toolbox: Collections of model scripts
Python
82
star
17

maix_train

k210(MaixPy)/V831 model example train code, include mobilenet classifier and YOLO V2 detector
Python
81
star
18

platform-kendryte210

Kendryte K210: development platform for PlatformIO
Python
78
star
19

MaixUI

This is the MicroPython UI framework.
Python
76
star
20

bl602-hal

Hardware Abstract Layer for BL602 RISC-V WiFi + BLE SoC in embedded Rust
Rust
75
star
21

LicheeRV-Nano-Build

LicheeRV-Nano-Build
C
75
star
22

Longduino

Longduino is an Arduino port for gd32v mcu.
C
69
star
23

libmaix

New MaixCDK will replace this repo: https://github.com/sipeed/MaixCDK
C++
68
star
24

Maix-EMC

Maix-EMC: Embedded Model Convertor, convert NN model for embedded systems
Python
66
star
25

sipeed_keyboard

sipeed opensource mechanical keyboard make with BL706
C
64
star
26

TangNano-20K-example

TangNano-20K-example
GLSL
64
star
27

Tang-Nano-examples

Tang-Nano-examples
GLSL
62
star
28

M1s_BL808_example

M1s_BL808_example
C
61
star
29

M1s_BL808_SDK

M1s(BL808)SDK
C
56
star
30

Tang-Nano-Doc

Document for Tang Nano FPGA board
CSS
56
star
31

TangMega-138KPro-example

Tang Mega 138K Pro examples
F#
52
star
32

sipeed2022_autumn_competition

sipeed2022_autumn_competition
47
star
33

MF1-User-Manual

MF1 Face Recognition Module User Manual
Python
46
star
34

Longan-DOC

Longan RV32 Boards Document
CSS
46
star
35

MaixCDK

C/C++ development kit for Sipeed Maix ecosystem boards
C
42
star
36

axpi_bsp_sdk

linux bsp app & sample for axpi (ax620a)
C
34
star
37

bl602-rust-guide

Instructions and examples for BL602 Rust support libraries
Rust
32
star
38

LicheePi4A

LicheePi4A info&sdk
32
star
39

TangPrimer-25K-example

TangPrimer-25K-example project
Verilog
31
star
40

TangMega-138K-example

TangMega-138K-example project
Verilog
28
star
41

Sipeed_HardWare

Sipeed_HardWare wiki
27
star
42

M0S_BL616_example

M0S BL616 example (M0S dock)
C
25
star
43

MF1_SDK

C
22
star
44

bl602-pac

Embedded Rust's Peripheral Access Crate for BL602 microcontrollers
Rust
19
star
45

R329-Tina-jishu

Roff
18
star
46

M0sense_BL702_example

M0sense_BL702_example
C
16
star
47

Maixduino_DOC

Docs of Maixduino
CSS
14
star
48

MaixPy_Doc_Us_En_Backup

Python
14
star
49

Tang-Hex-BSP

Tang-Hex-BSP: BSP for ZYNQ 7020 based FPGA Board Tang-Hex
13
star
50

sipeed2022_spring_competition

sipeed2022_spring_competition
Python
11
star
51

Maix-Keras-workspace

Keras workspace for Sipeed MAIX boards
Python
11
star
52

Maix-TF-workspace

Maix-TF-workspace: collections of tensorflow works
Python
11
star
53

rpyc_ikernel

more lightweight remote calling Python on jupyter.
Jupyter Notebook
11
star
54

Maix-Face-Uart-Lib

Sipeed Maix Uart Face Recognition Module/Firmware's Protocol Parse Library
C
10
star
55

TangNano-1K-examples

TangNano-1K-examples (GW1NZ-LV1)
GLSL
10
star
56

Tang-Hex-Doc

Tang-Hex-Doc: Documents for ZYNQ 7020 Based FPGA Board Tang-Hex
HTML
10
star
57

LonganPi-3H-SDK

LonganPi 3H SDK
Shell
7
star
58

MetaSense-ComTool

MetaSense A010's ComTool
Python
6
star
59

r329-linux-4.9

C
5
star
60

MaixSense_ROS

ROS package for MaixSense RGBD/ToF Sensor
C
5
star
61

M0P_BL618_examples

M0P_BL618_examples
C
5
star
62

LicheePi4A-Build

LicheePi4A-Build
C
5
star
63

libomv

Transplantation of openMV core algorithm imlib
C
5
star
64

Nano-Doc-Backup

The backup of Lichee Nano Doc,building with sphnix. http://nano.lichee.pro
Python
4
star
65

r329-target

Roff
3
star
66

ullama2.c

ullama2.c: run llama2 on MCUs (minimum 480KB SRAM)
3
star
67

r329-package

C
2
star
68

platform-riscv-e203

platform IDE for E203 RISC-V core, based on Lichee Tang board
2
star
69

BL702_Si2c_uart_translation

BL702 Slave i2c uart translation.
C
2
star
70

MaixPy_Doc_Zh_Cn_Backup

Python
2
star
71

TangMega-60K-example

TangMega 60K example
Verilog
1
star