[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112756":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":15,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":13,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":9,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":14,"starSnapshotCount":14,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},112756,"121GW-Multimeter-Firmware-RE","EEVblog\u002F121GW-Multimeter-Firmware-RE","EEVblog","EEVblog 121GW multimeter firmware (v2.05) reverse-engineered into plain C. Builds with GCC and CMake, matches the original in emulation, and is tested on the meter.",null,"C",60,10,1,0,4,9,46.02,"MIT License",false,"main",true,[],"2026-11-03 02:07:20","2026-11-21 12:02:23","# EEVblog 121GW firmware — reverse-engineered C\n\nClean reverse-engineering of the EEVblog 121GW multimeter firmware (STM32L152xD + HY3131) into plain C that builds with GCC.\n\n| Part | Location | Status |\n|---|---|---|\n| ST system bootloader (ROM) | `st-bootloader\u002F` | Documentation only (ST code, not reproduced) |\n| Custom SD-card bootloader | `bootloader\u002F` | Reconstructed; equivalent to the original in emulation (see `docs\u002Fbootloader.md`); tested on the meter |\n| Multimeter application (v2.05) | `firmware\u002F` | Reconstructed (691 functions plus FatFs and the C runtime); equivalent to the original in emulation, function by function and as a whole image (see `docs\u002Fapp-architecture.md`); tested on the meter |\n\n## Building\n\nRequires the GNU Arm Embedded toolchain (`arm-none-eabi-gcc`), CMake ≥ 3.16 and Ninja, all on the PATH (or add `-DCMAKE_MAKE_PROGRAM=\u003Cpath to ninja>`). Run the commands from the repository root; the projects find `cmake\u002Farm-none-eabi.cmake` by themselves. The released binaries were built with GCC 9.2.1 (GNU Arm Embedded 9-2019-q4).\n\n```\ncmake -G Ninja -S bootloader -B build\u002Fbootloader\ncmake --build build\u002Fbootloader\n```\n\nOutput: `build\u002Fbootloader\u002Fbootloader.bin`, linked at 0x08000000.\n\n```\ncmake -G Ninja -S firmware -B build\u002Ffirmware\ncmake --build build\u002Ffirmware\n```\n\nOutput: `build\u002Ffirmware\u002Fapp.bin`, the application linked at 0x08006000 (the address the SD bootloader starts). It is a plain image like the released `EEVBlog*.bin` files, so it installs the same way (copied to the root of the SD card as `EEVBlog.bin`, then the update procedure in the manual), or over SWD with the chip held in reset:\n\n```\nSTM32_Programmer_CLI -c port=SWD mode=UR -w build\u002Ffirmware\u002Fapp.bin 0x08006000 -v -hardRst\n```\n\nWrite only from 0x08006000: the bootloader below it and the data EEPROM at 0x08080000 (the meter's calibration) must not be touched. The same build also produces `hybrid.bin`, the test image used by the function-level equivalence tests.\n\n## Verifying\n\n```\npython -P tools\u002Femu\u002Ftest_bootloader.py     # original vs rebuilt, on an emulated STM32L1\npython -P tools\u002Fcoverage.py bootloader     # every original function accounted for\npython -P tools\u002Femu\u002Ftest_app_functions.py  # application, function by function (--shard i\u002Fn to split)\npython -P tools\u002Femu\u002Fcompare_app.py 20000000 0 --points --ticks=40000   # whole application image\npython -P tools\u002Fcoverage.py app\n```\n\nThe emulator test needs `pip install unicorn` and a private dump of the original flash in `dumps\u002F` (not distributed).\n\n## Layout\n\n| Path | Contents |\n|---|---|\n| `bootloader\u002F` | Bootloader sources, linker script, CMake project |\n| `firmware\u002F` | Application sources, linker script, CMake project |\n| `common\u002Fcmsis\u002F` | ARM CMSIS core and ST STM32L1 device headers (Apache-2.0) |\n| `common\u002Ffatfs\u002F` | ChaN FatFs R0.08a, as used by the original (BSD-style licence in `ff.c`) |\n| `docs\u002F` | Memory map, bootloader notes, coverage tables, tooling, manual text |\n| `tools\u002F` | Ghidra scripts, emulator harness, coverage checker |\n\nSee `docs\u002Fmemory-map.md` for the device layout and reference image hashes.\n\n## Licence\n\nMIT (see `LICENSE`), except the third-party code in `common\u002F`, which keeps its own licence: CMSIS and the ST device headers are Apache-2.0 (`common\u002Fcmsis\u002Fcore\u002FLICENSE.txt`, `common\u002Fcmsis\u002Fdevice\u002FLicense.md`), and FatFs is under ChaN's licence (in its source files).\n","该项目是对 EEVblog 121GW 数字万用表固件（v2.05）的逆向工程实现，将原始二进制固件完整重构为可读、可构建的纯 C 代码。核心功能包括等效的 SD 卡引导加载程序和主测量应用，支持 GCC + CMake 编译，通过 Unicorn 模拟器完成函数级与整镜像级行为验证，并已在真实硬件上测试运行。技术特点涵盖 STM32L152xD 微控制器平台适配、HY3131 ADC 驱动集成、FatFs 文件系统支持及内存布局精确复现。适用于嵌入式固件逆向研究、计量设备二次开发、教学演示及硬件安全分析等场景。",2,"2026-11-24 04:44:04","CREATED_QUERY"]