LEGIC Prime on the Flipper Zero with RogueMaster
As of 22 November 2026

I wanted to use my card, which I can read with a Proxmark3, on the Flipper Zero as well. While looking for LEGIC Prime support, I came across an existing contribution to the official Flipper firmware. That became a port for RogueMaster, which I submitted as pull request #1210. RogueMaster asked whether the feature could be built as a standalone app and closed the pull request without merging it. The port therefore still lives only in my fork. The firmware and the required NFC components build for the Flipper Zero. On my Flipper Zero, the port reads the card. I have not yet tested emulation against a real reader, and the comparison of that read with a Proxmark3 dump is also still pending.
The LEGIC implementation comes from Msprg, through pull request #4468. The port retains the protocol implementation and adds the RogueMaster integration. The upstream pull request remains open as of the date above. [1, 2]
The code covers LEGIC Prime MIM22, MIM256 and MIM1024, with memory sizes of 22, 256 and 1024 bytes. Its scope is LEGIC Prime; it does not add LEGIC advant support. The Flipper file format records the card type and its memory contents explicitly. [3]
Reading and emulating a card requires the Flipper to handle its radio protocol. A memory dump alone cannot do that. The port therefore also changes the low-level NFC layer. It uses the ST25R3916 to transmit frames and interprets replies within the required timing windows. During emulation, it decodes the reader's signals and generates timed responses. The implementation draws on the Proxmark3 LEGIC code. [4, 5]
RogueMaster needs additional integration. The LEGIC interface is registered as an embedded NFC protocol plugin and included in the NFC app. The command-line interface and SDK symbols need matching changes. The port advances the API version from 88.23 to 88.24 while retaining RogueMaster's existing protocols. [2, 6]
The change therefore spans both firmware and apps. Copying a single LEGIC app onto the SD card is insufficient for this port: the NFC app also needs the new firmware functions.
That scope is what the feedback on the pull request addressed. RogueMaster commented that the change is very large and asked whether I had considered making it its own FAP, a standalone app that the Flipper loads from the SD card. RogueMaster then closed the pull request without merging the code. GitHub dates the closure 4 November 2026, the same day as the submission. I replied that the change extends the existing NFC system, so keeping it built in alongside the core NFC features made more sense to me than moving it into a separate app. The port does not yet exist as a standalone app. [2]
The intended on-device workflow is NFC → Read, followed by Save, then Emulate from the saved card entry. The card information shows the detected type, and More opens a closer view of the memory. The CLI also adds nfc dump -p legic and commands for reading individual memory ranges. [2, 6]
An existing Proxmark3 dump cannot be converted into a Flipper file by renaming it. This implementation saves a structured .nfc text file containing the card type, UID and hexadecimal data. Comparing dumps also requires the same byte representation. From byte 22 onward, the Flipper format stores the bytes as they appear on the card, including their XOR encoding with the MCC checksum byte. The format documentation explicitly compares this to a Proxmark3 dump without --de. [3]
At the time of submission, the pull request recorded this verification status of the RogueMaster port:
| Check | Result |
|---|---|
| Apply the patch to the pinned base and compare the resulting source tree | Passed |
| Format checks on changed C/C++ files | Passed |
| Compile and link the f7 firmware and updater | Passed |
| Build the NFC app and NFC CLI, including checks for required symbols | Passed; LEGIC plugin embedded in the NFC app |
| Complete update package with all external apps | Not yet completed |
| f18 build | Stopped at inconsistencies in the SDK symbol inventory |
| Physical card and reader tests, and execution of the imported unit tests | Not yet performed for this port |
The complete update build was stopped during the large collection of external apps, after the firmware and updater had been produced. That run did not produce a fully verified installation package. For f18, NFC HAL sources that do not belong on that target were excluded; SDK finalization then stopped at further symbols unrelated to LEGIC. The original Flipper Zero uses the f7 target. [2]
Msprg reports tests of the upstream implementation using a real MIM256 card and a Proxmark3 as the other endpoint; emulation against an actual LEGIC reader is listed there as untested. Those results describe the upstream implementation. [1]
I have since tried the RogueMaster port on my Flipper Zero. Reading my card works. I have not yet compared the memory it read with a Proxmark3 dump. I have not yet tested emulation against a real reader either.
The code is available in the nfc/legic-prime branch of my fork. The version described here is commit 745bacff6656730297a0198d2a7e99844d1f7502. It is based on the RogueMaster tree of 3 November 2026; the branch does not include later RogueMaster changes. From a checkout of that repository, this command creates a complete update package if the build finishes successfully: [6, 7]
./fbt -j8 updater_package TARGET_HW=7 \
DIST_SUFFIX=rm-legic-pr1210
The resulting .tgz archive can be selected through Install from file in qFlipper. Alternatively, extract it, copy the entire update folder into /update/ on the SD card, and open update.fuf in the Flipper's file browser. The SD card needs to be inserted during the update. Before installing, back up internal storage through qFlipper and copy the SD card separately. A later regular firmware update can replace this custom build. [8]
The code also includes writing through nfc legic wrbl in the CLI. Msprg warns that timing deviations during writes can send data to the wrong address. The additional guard for the DCF in bytes 5 and 6, which only --danger lifts, does not eliminate this risk. For initial testing, the intended workflow is therefore limited to reading a card I own and trying emulation with an authorized test reader. [1, 6]
The next missing evidence is the comparison between the Flipper's read of the card and a Proxmark3 dump. It will show whether the Flipper reads my card's memory correctly. I will add the result here. The emulation test against a real reader is also still pending.
Sources and code versions
[1] Msprg: LEGIC Prime support for the official Flipper firmware, PR #4468. Scope and reported tests. The port uses source commit 9ef0976.
[2] RogueMaster PR #1210. Port description, build results, outstanding verification and RogueMaster's question. The pull request is closed and was not merged.
[3] LEGIC Prime file format. Memory sizes, UID, MCC and the representation of saved data.
[4] The port's LEGIC HAL. Radio communication, timing and the implementation of the low-level NFC layer.
[5] Proxmark3: reader implementation legicrf.c and emulation legicrfsim.c. Linked reference version: 1b71dfb, checked on 22 November 2026. This does not imply that Msprg used that particular Proxmark3 commit as a reference.
[6] RogueMaster port 745bacf, based on RogueMaster 05e4469. Changes to the NFC app, CLI, SDK and build configuration.
[7] Flipper Build Tool documentation at the port's commit. Build targets and update packages.
[8] RogueMaster installation instructions at the base commit. Installation through qFlipper or from the SD card.