正在自动登录…
iharhl/ memmap
将YAML格式的MCU内存布局描述转换为数据手册风格的存储器映射图,支持SVG、PNG或PDF输出,并验证地址、大小和闪存扇区。适用于嵌入式开发者绘制启动加载程序、应用槽位等内存布局图。
AI 中文解读 · 根据仓库描述与 README 生成 · 2026/11/3 13:36:55 · 查看原文
- 累计 Stars
- 52
- 当前热度
- 1 天内 · 小火
- 仓库创建时间
选用指南
AI 根据 README 整理 · 2026/11/3 13:36:55
- 使用方式
通过命令行使用,提供render、check、describe等子命令,支持SVG、PNG、PDF输出。
查看 README 依据
uv run memmap describe layout.yaml ``` ```bash uv run memmap render layout.yaml -o layout.svg ``` | Command | Purpose | | --- | --- | | `memmap render CONFIG [-o OUT] [--format svg\|png\|pdf] [--json] [--strict] [--set key=value]` | Validate, then draw; `--strict` fails on warnings | | `memmap check CONFIG [--json] [--strict]` | Validate only; `--strict` fails on warnings | | `memmap describe CONFIG [--json]` | Resolved regions, blocks, labels and option origins | | `memmap schema` | JSON Schema of the config | | `memmap guide` | Print the agent guide, for agents using an installed copy |
- 部署要求
需要Python环境,使用uv管理依赖;PNG和PDF输出需要额外的raster依赖和系统cairo库,macOS需设置DYLD_FALLBACK_LIBRARY_PATH。
查看 README 依据
 ## Install ```bash uv sync ``` PNG and PDF output needs the `raster` extra and the system cairo library: ```bash uv sync --extra raster ``` On macOS with Homebrew's cairo, the library is not on the default search path, so set this before rendering PNG or PDF: ```bash export DYLD_FALLBACK_LIBRARY_PATH=/opt/homebrew/lib ``` ## Use Start from the closest config in [examples/](examples/), listed under [Examples](#examples): ```bash cp examples/custom_bootloader.yaml layout.yaml ``` ```bash uv run memmap check layout.yaml ``` ```bash
- 已知限制
文本测量使用内置Helvetica/Arial宽度表,对其他字体的换行略有近似。
查看 README 依据
```bash uv run ruff check ``` Golden SVGs live in `tests/golden/`. After an intended drawing change, review the diff and regenerate them: ```bash MEMMAP_UPDATE_GOLDEN=1 uv run pytest tests/test_golden.py ``` Text is measured with a built-in Helvetica/Arial width table, so wrapping is slightly approximate for other fonts.
README
正在加载 README…
收录信息
- 仓库创建时间
- 2026/11/2 19:55:07
- 首次达标收录
- 2026/11/3 13:31:38
- 统计更新时间
- 2026/11/3 16:01:37
按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。
模型评估
值得看加权总分 4.1 / 5
由 Jev 模型根据仓库描述与 README 评估,2026/11/3 13:31:38 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。
仓库信息
- 最近推送
- 2026/11/3 00:57:50
- 许可证标识
- MIT
- Fork 数
- 2
- 当前状态
- 未归档
收录记录
按创建时长与累计 Stars 首次收录:小火
首次发现项目