Skip to content

Commit 96068bd

Browse files
committed
添加mcoredump软件包索引
1 parent d8cd912 commit 96068bd

File tree

3 files changed

+120
-0
lines changed

3 files changed

+120
-0
lines changed

tools/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
menu "tools packages"
22

33
source "$PKGS_DIR/packages/tools/CmBacktrace/Kconfig"
4+
source "$PKGS_DIR/packages/tools/MCoreDump/Kconfig"
45
source "$PKGS_DIR/packages/tools/EasyFlash/Kconfig"
56
source "$PKGS_DIR/packages/tools/EasyLogger/Kconfig"
67
source "$PKGS_DIR/packages/tools/SystemView/Kconfig"

tools/MCoreDump/Kconfig

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
2+
menuconfig PKG_USING_MCOREDUMP
3+
bool "MCoreDump: Advanced fault backtrace library for ARM Cortex-M series MCU."
4+
default n
5+
6+
if PKG_USING_MCOREDUMP
7+
8+
if PKG_USING_MCOREDUMP
9+
10+
choice
11+
prompt "Select the arch"
12+
default PKG_USING_MCOREDUMP_ARCH_ARMV7M
13+
help
14+
Select the arch
15+
16+
config PKG_USING_MCOREDUMP_ARCH_ARMV7M
17+
bool "armv7m"
18+
19+
config PKG_USING_MCOREDUMP_ARCH_ARMV8M
20+
bool "armv8m"
21+
endchoice
22+
23+
config PKG_USING_MCOREDUMP_EXAMPLE
24+
bool "Using coredump example"
25+
default y
26+
help
27+
Enable MCoreDump example code
28+
29+
config PKG_MCOREDUMP_MEMORY_SIZE
30+
int "Coredump memory buffer size (bytes)"
31+
default 8192
32+
range 1024 65536
33+
help
34+
Size of the static memory buffer for coredump storage.
35+
This buffer is placed in .noinit section and persists across resets.
36+
Minimum: 1KB, Default: 8KB
37+
38+
config PKG_USING_MCOREDUMP_FILESYSTEM
39+
bool "Using filesystem for coredump storage"
40+
default n
41+
depends on RT_USING_DFS
42+
help
43+
Enable filesystem support for saving coredumps to files.
44+
Requires DFS (Device File System) to be enabled.
45+
If not enabled, filesystem-related functions will be disabled.
46+
47+
if PKG_USING_MCOREDUMP_FILESYSTEM
48+
49+
config PKG_MCOREDUMP_FILESYSTEM_DIR
50+
string "Coredump directory path"
51+
default "/sdcard"
52+
help
53+
Directory path where coredump files will be saved.
54+
55+
config PKG_MCOREDUMP_FILESYSTEM_PREFIX
56+
string "Coredump file prefix"
57+
default "core_"
58+
help
59+
Prefix for coredump filenames.
60+
endif
61+
endif
62+
63+
config PKG_MCOREDUMP_PATH
64+
string
65+
default "/packages/tools/MCoreDump"
66+
67+
choice
68+
prompt "Version"
69+
default PKG_USING_MCOREDUMP_LATEST_VERSION
70+
help
71+
Select the this package version
72+
73+
config PKG_USING_MCOREDUMP_LATEST_VERSION
74+
bool "latest"
75+
endchoice
76+
77+
config PKG_MCOREDUMP_VER
78+
string
79+
default "latest" if PKG_USING_MCOREDUMP_LATEST_VERSION
80+
81+
config PKG_MCOREDUMP_VER_NUM
82+
hex
83+
default 0x99999 if PKG_USING_MCOREDUMP_LATEST_VERSION
84+
85+
endif

tools/MCoreDump/package.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "MCoreDump",
3+
"description": "MCoreDump (mini-coredump) is a fault dump (CoreDump) component designed specifically for embedded systems. It automatically generates standard ELF format core dump files when the system encounters a hard fault, assertion failure, or other abnormal conditions, which can be used for offline debugging and fault analysis.",
4+
"description_zh": "MCoreDump(mini-coredump) 是专为嵌入式系统设计的故障转储(CoreDump)组件,能够在系统发生硬故障(Hard Fault)、断言失败或其他异常情况时,自动生成标准 ELF 格式的核心转储文件,用于离线调试和故障分析。",
5+
"enable": "PKG_USING_MCOREDUMP",
6+
"keywords": [
7+
"ARM",
8+
"Cortex-M",
9+
"Cortex",
10+
"coredump",
11+
"backtrace",
12+
"callstack",
13+
"hardfault"
14+
],
15+
"category": "tools",
16+
"author": {
17+
"name": "Rbb666",
18+
"email": "[email protected]",
19+
"github": "Rbb666"
20+
},
21+
"license": "Apache-2.0",
22+
"repository": "https://github.com/Rbb666/MCoreDump",
23+
"homepage": "https://github.com/Rbb666/MCoreDump#readme",
24+
"doc": "https://github.com/Rbb666/MCoreDump/blob/master/README.md",
25+
"readme": "MCoreDump (mini-coredump) is a fault dump (CoreDump) component designed specifically for embedded systems. It automatically generates standard ELF format core dump files when the system encounters a hard fault, assertion failure, or other abnormal conditions, which can be used for offline debugging and fault analysis.",
26+
"site": [
27+
{
28+
"version": "latest",
29+
"URL": "https://github.com/Rbb666/MCoreDump.git",
30+
"filename": "MCoreDump.zip",
31+
"VER_SHA": "master"
32+
}
33+
]
34+
}

0 commit comments

Comments
 (0)