这是indexloc提供的服务,不要输入任何密码
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tools/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ source "$PKGS_DIR/packages/tools/RT_Trace/Kconfig"
source "$PKGS_DIR/packages/tools/zdebug/Kconfig"
source "$PKGS_DIR/packages/tools/RVBacktrace/Kconfig"
source "$PKGS_DIR/packages/tools/hpatchlite-wrapper/Kconfig"
source "$PKGS_DIR/packages/tools/blackmagic/Kconfig"
endmenu
59 changes: 59 additions & 0 deletions tools/blackmagic/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Kconfig file for package blackmagic
menuconfig PKG_USING_BLACKMAGIC
bool "black magic probe: firmware download tool"
default n

if PKG_USING_BLACKMAGIC

config PKG_BLACKMAGIC_PATH
string
default "/packages/tools/blackmagic"

config BLACKMAGIC_ENABLE_RTT
bool "rtt support"
default y
help
rtt (real-time terminal) allows terminal input/output between target and host

config BLACKMAGIC_ENABLE_RTT_IDENT
bool "rtt ident"
depends on BLACKMAGIC_ENABLE_RTT
default n
help
set optional rtt secret.

config BLACKMAGIC_RTT_IDENT
string "rtt ident"
depends on BLACKMAGIC_ENABLE_RTT_IDENT
default ""
help
optional rtt secret. '%' is converted to ' ' space.

config BLACKMAGIC_ENABLE_DEBUG
bool "debug output"
default n
help
If enabled, debug output is written to the aux port.
Useful when debugging blackmagic probe.

choice
prompt "Version"
help
Select the package version

config PKG_USING_BLACKMAGIC_LATEST_VERSION
bool "latest"
endchoice

config PKG_BLACKMAGIC_VER
string
default "v1.10.2" if PKG_USING_BLACKMAGIC_V1_10_2
default "latest" if PKG_USING_BLACKMAGIC_LATEST_VERSION

config BLACKMAGIC_VERSION
string
default PKG_BLACKMAGIC_VER
help
hidden string, follows PKG_BLACKMAGIC_VER, used in version.h

endif
27 changes: 27 additions & 0 deletions tools/blackmagic/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "blackmagic",
"description": "firmware download tool",
"description_zh": "下载器",
"enable": "PKG_USING_BLACKMAGIC",
"keywords": [
"blackmagic"
],
"category": "tools",
"author": {
"name": "koendv",
"email": "koen@kdvelectronics.eu",
"github": "koendv"
},
"license": "MIT",
"repository": "https://github.com/koendv/blackmagic-rtthread",
"homepage": "https://github.com/koendv/blackmagic-rtthread#README.md",
"doc": "https://black-magic.org/",
"site": [
{
"version": "latest",
"URL": "https://github.com/koendv/blackmagic-rtthread.git",
"filename": "",
"VER_SHA": "main"
}
]
}