|
| 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 |
0 commit comments