Review audit · firmware & RF
17 September 2026
DM-1701 · HR-C6000 · AT1846S · STM32F405 · P25

GPT-5.6 Luna’s P25 review, graded

GPT-5.6 Luna got the same brief as every P25 audit on bench: find why this firmware struggles to decode P25 Phase 1 and Phase 2 voice on the radio’s HR-C6000, and what to do about it. It worked in a clean room, with a fresh copy of the repository, no earlier reviews and no network, and it answered in 193 lines, the shortest review on this task. I checked its claims against the code, the manual and the repository’s notes, reran its Golay sweep and its test suite, and used the firmware-in-the-loop model and CPU emulation from the earlier clean-room audits.

Overall grade
C+
75 / 100 weighted

Careful, short, and never built.

On the question that decides this project, it takes the right position and states it plainly: the safe default is that the I2S stream carries microphone or filtered voice audio until a controlled recording proves otherwise. It then finds three things the code gets wrong — the clock writes that skip the verified writer, the health gate that accepts ten times what the timing loop can track, and a starvation counter that is reported but never incremented, which no audit before it noticed. It is also the first review to weigh the late-entry muting as a trade rather than certify or ignore it.

Then it tries to build the firmware, gets a missing compiler, and concludes the environment has no ARM toolchain. The toolchain ships inside the repository, and the README it had already read says . ./tools/env.sh # toolchain on PATH. Its sibling GPT-5.6 Sol sourced that script in the same sandbox and rebuilt the image. One wrong claim, and it removes a whole class of evidence: no linker map, no stack usage, no RAM ceiling, and no way to size the vocoder its own findings point at. 23 of 24 claims hold, which puts it at C+.

Claims that check out
23 / 24
0 overstated or incomplete · 1 wrong
Decode-critical issues found
2 of 4
the source outright, the analog chain by half
Wrong claims
1 of 24
the compiler that was in the repository
Length
193 lines
the shortest review on this task

The run, not graded: 24 min · 26 agent steps · 37 tool calls · 21K output tokens (11K reasoning) · 3.7M tokens re-read · OpenAI subscription, one-shot

Headline findings

Six things to know about this review

Holds up

It states the safe default, and designs the test that settles it

Five strands: the monitor’s own comment describes an assumed chain, the manual gives the I2S pins to codecs and vocoders with no discriminator route, the stock analysis found none either, the analog path was configured for FM voice, and the undocumented 0xE0 interpretation is a community reading. Its conclusion is the one the repository’s own notes support: the safe default is that this path is microphone/codec audio or filtered analog audio until a controlled recording proves otherwise — settled by capturing a keyed carrier, microphone excitation and silence, and measuring the transfer function and the eye.

p25mon.c:4–13 · manual 480–506, 510–534 · analysis/stock-p25/REPORT.md:130–177

New

The starvation counter that never counts

p25monAudioUnderruns is declared, and printed in the status line as pcm_starve. The audio fill routine writes zeros whenever the decoded-audio ring is empty — and never touches the counter. So the diagnostic reads pcm_starve=0 while the speaker is being fed silence because the decoder fell behind. Twelve audits read this file before this one; none of them noticed.

p25mon.c:123, 410–426, 514–517

Holds up

It weighs the muting instead of certifying it

Late entry waits for validated link control before opening audio, so a call joined without a header loses its first seven IMBE frames. The test suite pins that behaviour: 320 samples, two 20 ms blocks. Other audits either list this among the things that work or miss it. This one names the cost, keeps the fail-closed property, and proposes the bounded fix — hold a pre-roll, release it only once signalling says the call is clear, never replay it after an encrypted or rejected result.

tests/p25/signalling.py:72 · p25rx.c:42–49

Wrong

The compiler was in the repository it was reviewing

BLOCKED because arm-none-eabi-gcc is not installed in the environment. The repository ships its own toolchain under tools/, and the README this run had already read says it twice: Local toolchain (nothing installed system-wide), and in the quick start, . ./tools/env.sh # toolchain on PATH. It ran make without sourcing that script. Its sibling GPT-5.6 Sol sourced it in the same sandbox image and rebuilt the firmware. The cost is not the failed build: it is the linker map, the stack usage and the RAM ceiling — the evidence its own real-time finding asks for.

tools/env.sh · README.md:17–27 · tools/xpack-arm-none-eabi-gcc-13.2.1-1.1

Half found

The analog chain, minus the register and minus the radio

It names de-emphasis and the 3 kHz filter at 0x34 and reasons correctly that entering analog FM mode leaves a voice-shaped path in front of a four-level slicer. It stops there: no bit to clear, no comparison with the DMR filter set the firmware already writes, and no look at the AT1846S at all, where the receiver sits in 25 kHz analog bandwidth for a 12.5 kHz channel. Modelled, de-emphasis alone leaves 0 of 180 frames. The finding is right; the fix is left as configure and verify a flat path.

HR-C6000.c:2846–2855 · AT1846S.c:99, 196 · radioHardwareInterface.c:249–274

Left open

The vocoder is named and never sized

Finding 5 puts real time next in line and names the cause correctly: float mbelib synthesis on every accepted codeword, plus a large FIR per window, all inside the application task at 72 MHz. Its resolution is to build with the ARM toolchain and record worst-case cycles — which it believed it could not do. Emulated, that synthesis needs 11–16× the 72 MHz budget. It is not the next thing to measure; it is the one software blocker on the board that no audit has yet found.

mbelib.c:306 · STAGE4-TX-FEASIBILITY.md:36 · p25mon.c:535, 752

Scorecard

How the 75 breaks down

Same rubric, weights and scale as every P25 audit on bench, so scores compare directly. GPT-5.6 Luna sits mid-table on coverage and high on accuracy and clarity, one place below HY4 Preview.

Dimension scores

Hover or focus a bar for the reasoning. Weighted total 75, grade C+.

0255075100Score out of 100Accuracy & evidenceweight 30%82Coverage of decode problemsweight 25%58Root cause & prioritisationweight 15%80Fix plan & acceptance gatesweight 15%80Originality & attributionweight 10%72Clarity & calibrationweight 5%84
Rubric table
DimensionWeightScorePointsWhy
Accuracy & evidence30%8224.623 of 24 claims hold and its citations land, including the 81-tap filter another audit miscounted and the late-entry test that asserts two audio blocks. The one wrong claim is about its own environment, and it is the reason three findings have no numbers.
Coverage of decode problems25%5814.5The sample source, half the analog chain, the health gate, the clock writer, the dead starvation counter and the late-entry cost. No capture-export defect, no squelch conflict, no memory figures, no 8 kHz rule.
Root cause & prioritisation15%8012.0It puts the physical sample path first and says why the rest is downstream of it, and it refuses to treat clocks, sync counts or RSSI as evidence of RF. It never sizes the vocoder, so real time stays an open question rather than a blocker.
Fix plan & acceptance gates15%8012.0P0 to P3, measurement before tuning, with specific fixes for the clock writer, the health gate, the underrun counter and late entry. Its first step runs through the capture export, which it never checked.
Originality & attribution10%727.2The dead starvation counter and the late-entry pre-roll are its own, and the Golay sweep it ran reproduces. Little else goes beyond what the repository already says, and the build it did not attempt is where the new evidence was.
Clarity & calibration5%844.2Nine ranked findings, each with evidence, why it prevents decoding, and a resolution — then an honest list of what it ran and what it could not. Short without feeling thin.
Weighted total100%75Grade scale: A ≥ 90 · B 80–89 · C+ 75–79 · C 70–74 · C− 65–69 · D 50–64 · F < 50
Receive chain

Where its findings sit

Luna’s findings sit on the ingress question and the monitor’s own bookkeeping: the source, the clock writer, the health gate, the starvation counter and the audio policy. The red tags are the front end it half-opened and the vocoder it left as a measurement.

RADIO · ANALOG FRONT ENDSTM32F405 · 72 MHz · -OsMicrophoneLineIn1 · enabled by E0 bit 6P25 C4FM carrier12.5 kHz channel±1.8 kHz peak deviationAT1846S receiveranalog FM register setHPF + LPF on · LF audio off · 25 kHzHR-C6000 codec ADCE0 = 0xC9 · 0x34 de-emphasis onno documented RF input to I2SI2S to the MCULRCK 24 kHz (manual: 8 kHz)left slot, 16-bitRFaudio?ADCDMA half-buffer ISRp25monI2sHalfBuffer160 frames per callbackSample ring512 samples ≈ 21 ms≤128 drained per tickResampler ×1.624 → 38.4 kHz, nominalhealth gate ±10 %RRC FIR + timing81 taps · 768/512 windowperiod clamp ±1 %p25rx framingsync · NID · LDU · FECfail-closed mutembelib IMBE≈16 M instructions/framecosf slow pathPCM ring → I2S TXradioSetAudioPath() per frame→ speaker amplifierCapture export ‘c’ISR stages [j][0..79]framed hex over USBUSB CDC consoleshared with 1 Hz reportp25_capture.pyparser on the hostdiagnostic tapF1F2F3F4N1N2N3N4N5N6
F1 raised by GPT-5.6 LunaN1 missed or left openDashed edge: no documented connection
F1Treat the I2S stream as microphone audio until a capture proves otherwise
F2Analog FM mode leaves de-emphasis and a 3 kHz filter at 0x34
F3Clock writes skip the verified writer; the health gate is ten times too wide
F4pcm_starve is reported but never incremented
N1AT1846S filters and 25 kHz bandwidth
N2mbelib needs 11–16× the 72 MHz CPU
N3The capture exports the wrong halfwords
N4The parser certifies incomplete captures
N5The test oracle shares the receiver’s RRC filter
N6The manual’s 8 kHz frame-clock rule
The front end

Half the chain, and what the other half costs

It names the C6000 filter and de-emphasis correctly. The AT1846S side, which it never opens, is where the other half of the damage is — and where the one-line fix lives.

What the inherited 0x34=0x3C does to C4FM

Standard C4FM through each HR-C6000 receive stage alone, then the firmware’s live demodulator and framer. 20 LDUs: 180 IMBE frames possible.

04590135180IMBE frames decoded, noise-free (of 180)no audio filtering180 / 1803 kHz low-pass only180 / 180de-emphasis only0 / 180de-emphasis + 3 kHz low-pass (0x34=0x3C)0 / 180
De-emphasis alone, −6 dB per octave from 300 Hz, leaves no frames decodable. Luna identifies this path as the suspect without naming the bit or the register set that clears it.
Data table
Audio stageNoise-free frames · NIDsSymbol errors20 dB frames · NIDs
no audio filtering180/180 · 20/200.0%180/180 · 20/20
3 kHz low-pass only180/180 · 20/200.0%180/180 · 20/20
de-emphasis only0/180 · 0/2051.3%0/180 · 0/20
de-emphasis + 3 kHz low-pass (0x34=0x3C)0/180 · 0/2049.8%0/180 · 0/20

Register state for a P25 session

What trxSetModeAndBandwidth(RADIO_MODE_ANALOG, true) leaves in place, next to OpenGD77’s own settings for 4800-baud 4FSK.

RegisterMonitor today (analog FM)OpenGD77 DMR modeEffect on C4FM
AT1846S 0x400x0030, low-frequency bit cleared: “so it should be cleared to receive FM”0x0031, “allows low freq audio”Removes the near-DC content that runs of equal symbols depend on
AT1846S 0x580xBC85, “enable some filters for FM e.g. high and low pass filters”0x9CDD, “disable all filters in DMR mode”High- and low-pass shaping of the symbol stream
AT1846S 0x440x06CC, AF gain 80%0x07FF, 100%; the DM-1701 “needs higher AF gain” to decode 4FSKLower discriminator level into the next stage
AT1846S bandwidth25 kHz12.5 kHz, forced for digitalWider noise bandwidth and deviation scaling set for ±5 kHz FM
HR-C6000 0x340x3C, “compressor off, de-emph on, 3 kHz audio filter”not written; the FM value persists−6 dB/octave from 300 Hz and a 3 kHz low-pass on the FM receive path (manual §6.2)
Sources: AT1846S.c:191–217, HR-C6000.c:2846–2854 and 2858–2875, trx.c:228–279, p25mon.c:724. Register comments are OpenGD77’s; the manual translation documents 0x34.
The measurement it thought it could not take

What a sourced env.sh would have shown

Its real-time finding ends with “build with the ARM toolchain, inspect the linker map and .su files”. The toolchain was in the workspace. This is what the numbers look like.

Where one second of decoding goes

The firmware’s streaming loop, compiled with its own GCC flags and newlib and run in an emulated Cortex-M4F over 2.2 s of input (12 LDUs, 108 IMBE frames, all decoded). Instruction counts become time by assuming one clock cycle per instruction, the optimistic end.

0%200%400%600%800%1000%1200%Share of one CPU second at 72 MHz (-Os, 1.0 cycles per instruction)Resampler ×1.61.4 M instructions/s1.9%RRC FIR, timing and level fit28.0 M instructions/s39%Framing, NID and FEC0.7 M instructions/s1.0%mbelib IMBE decode and synthesis781.9 M instructions/s1,086%whole CPU
The demodulator fits: about 40% of the core, 60% at 1.5 cycles per instruction. The vocoder needs roughly 11 times the whole CPU, 16 times at 1.5. Building with -O2 changes these by under 1%, because the time is spent inside newlib’s prebuilt libm.
Per-stage table
Stage-Os, M instr/sShare at 1.0 · 1.5 c/i-O2, M instr/s
Resampler ×1.61.401.9% · 2.9%1.32
RRC FIR, timing and level fit28.0038.9% · 58.3%27.70
Framing, NID and FEC0.741.0% · 1.5%0.73
mbelib IMBE decode and synthesis781.901,086.0% · 1,629.0%781.60
Total812.11,128% · 1,692%811.4

CPU time for each 20 ms of speech

One call to mbelib’s IMBE decoder per frame, uvquality 1, FEC-valid codewords with chosen pitch and voicing, mean over 100 consecutive frames.

0 ms100 ms200 ms300 ms400 ms500 msCPU time per decoded 20 ms frame at 72 MHz (mean, 1.0 cycles per instruction)L=20, all bands unvoiced3.0 M instructions42 msL=20, typical (15 of 20 voiced)9.7 M instructions134 msL=30, typical (21 of 30 voiced)14.0 M instructions194 msRandom pitch and voicing15.9 M instructions220 msL=56, all bands voiced31.2 M instructions434 ms20 ms deadline
Every frame type misses its 20 ms deadline, from about 2× for the simplest frames to more than 20× for loud voiced ones. The cause is mbelib’s per-harmonic phase, which accumulates without wrapping (mbelib.c:306). Once a call has run for about half a second, nearly every voiced-band cosf argument exceeds about 201 radians, and newlib’s cosf takes its __kernel_rem_pio2f path at roughly 1,700 instructions per call instead of 40 to 100. The real firmware links that same path.
Per-frame table
Frame typeMean, M instrWorst, M instrMean ms at 1.0 · 1.5 c/i
L=20, all bands unvoiced3.005.0242 · 62
L=20, typical (15 of 20 voiced)9.6810.23134 · 202
L=30, typical (21 of 30 voiced)13.9714.76194 · 291
Random pitch and voicing15.8626.17220 · 330
L=56, all bands voiced31.2532.97434 · 651
Claim check

24 claims, checked one by one

Twenty-three of twenty-four hold, and its citations land where it says they do. The single wrong claim is about its own environment, and it is the reason three of its findings carry no numbers.

ItemWhat GPT-5.6 Luna claimsWhereResultNotes
ScopeThe two P25 trees are kept byte-identical for the shared decoder files, and the tests enforce ittests/p25/run.py:249–254Holdsrun.py asserts read_bytes() equality for eleven shared files before anything else runs.
F1The assumed chain (AT1846S analog FM → C6000 codec/I2S → demodulator) is an assumption about the source signal, not a proven routep25mon.c:4–13; analysis/stock-p25/REPORT.md:130–177HoldsThe stock audit reaches the same conclusion, and the firmware labels the source UNVERIFIED.
F1The manual describes the I2S/vocoder pins as codec and vocoder PCM interfaces and documents no internal discriminator-to-I2S streammanual 480–506, 510–534Holds
F1The safe default is that this path carries microphone/codec audio or filtered analog audio until a controlled recording proves otherwise—HoldsThe right default, and the closest any audit has come to the repository’s own reading without asserting more than the evidence carries.
F1STM32 I2S3 is configured as slave receive with 16-bit extended data, which proves the MCU receives a C6000 stream but not what the C6000 is sendingCore/Src/main.c:463–471HoldsBoth register settings are at the lines given.
F1The resolution is a controlled comparison — keyed in-band P25 carrier against microphone excitation and silence — measuring transfer function, clipping, DC, polarity, timing and the four-level eye—HoldsThe acceptance test the answer key asks for, with the discriminator-to-ADC tap as the fallback.
F2The monitor enters analog FM mode, where HRC6000SetFMRx writes the normal de-emphasis and 3 kHz filter configuration at 0x34, and disabling FM feedthrough later does not show that filter was bypassedHR-C6000.c:2846–2855; p25mon.c:719–734HoldsCorrect, and the reasoning is right. It stops short of the register-level fix: which bit to clear, or the DMR filter set the firmware already writes for DMR. It never examines the AT1846S side at all.
F3The manual establishes DMR 4FSK, DMR TDMA and DMR-oriented vocoder interfaces, not P25 framing, NID/BCH, status symbols or IMBEmanual 22–50, 78–95HoldsAccurate, and it avoids both traps here: it neither claims the chip can decode P25 nor asserts that its 4FSK modem could never carry P25 symbols.
F4The demodulator uses an 81-tap RRC-like matched filter, per-window DC removal, max-power timing selection, decision-directed level fitting and bounded timing correctionp25_4fsk.cHoldsThe tap count is right, where another audit put it at 65.
F4Timing is clamped to about 7.92–8.08 samples/symbol while the monitor accepts measured rates from 90% to 110% of nominal, and resamples using the nominal ratep25_4fsk.c:228–241; p25mon.c:572–581HoldsThe health-gate mismatch (M7), with the resampling consequence stated correctly: a stream near the gate edge lands far outside what the timing loop can pull in.
F4Decisions are hard dibits with no soft metrics passed into NID, trellis or IMBE decoding, and there is no IQ path, equalizer or CQPSK supportp25_4fsk.c; p25rx.cHolds
F5The whole chain runs in the application task at 72 MHz, with float mbelib synthesis on every accepted codeword and a large FIR per windowp25mon.c; mbelibHoldsTrue, and it names the vocoder as the leading cost. It never estimates that cost: emulated, mbelib needs 11–16× the 72 MHz budget, which turns “unverified” into “blocked”.
F5The ARM toolchain is not installed in this environment, so the linker map and .su files could not be inspected and the builds were blockedtools/env.sh; README.md:17–27WrongThe toolchain ships inside the workspace (tools/xpack-arm-none-eabi-gcc-13.2.1-1.1) and the README it read says “. ./tools/env.sh # toolchain on PATH” and “Local toolchain (nothing installed system-wide)”. It ran make without sourcing that script. GPT-5.6 Sol, in the same sandbox image, sourced it and rebuilt the firmware. The mistake cost this review the map figures, the stack usage and the RAM ceiling — the evidence its own Finding 5 asks for.
F5The receive buffers are tightly budgeted: a 512-sample capture ring, a 768-sample demodulation window with slack, the p25rx state and a 512-sample audio ring across SRAM and CCMp25mon.c:93–124Holds
F6SPI0WritePageRegByte returns −1 when SPI0inUse and reads refuse the same way, p25monWriteReg retries and verifies, but p25monApplyClockCfg writes 0x2F/0x32/0x33 through the unchecked wrapperspi.c:53–73, 104–128; p25mon.c:550–552, 624–639HoldsExactly M11, and it is the second audit to trace it through both the driver and the two monitor call sites.
F7p25monAudioUnderruns is declared and reported but never incremented: the fill routine outputs zero when the audio ring is empty, so a report can show pcm_starve=0 while the speaker is silentp25mon.c:123, 410–426, 514–517HoldsT3, confirmed at every line. The first audit to find this: earlier reviews either ignored the counter or repeated the documentation that says it works.
F8Late entry waits for validated LC/ESS before opening audio, so a call with no HDU loses its first seven IMBE frames; the tests expect only two 20 ms audio blocks from a late-entry LDUtests/p25/signalling.py:72HoldsThe test asserts 320 samples, which is exactly two 20 ms blocks at 8 kHz. This is the fail-closed muting behaviour (M8), and the review is the only one to weigh it as a design trade rather than certify or ignore it.
F8A bounded pre-roll released only after LC/ESS confirms a clear call, never replayed after an encrypted or rejected result, would fix late-entry audio safely—HoldsA sound fix that keeps the safety property the current behaviour exists for.
F9The suite independently exercises BCH/NID, FEC, CRC, trellis, framing, polarity, timing continuity, trunk grants, capture ordering and the mbelib path, and it passestests/p25/run.pyHoldsReproduced.
F9The channel model is synthetic and idealized: no HR-C6000 analog path, AT1846S response, carrier error, adjacent channels, multipath or simulcast, and no comparison against reference speechp25_4fsk.c; p25_selftest.cIncompleteRight as far as it goes, and the conclusion is correct. It does not name the sharper half: the generator shapes its waveform with the receiver’s own RRC table, so the oracle is circular rather than merely synthetic.
Phase 2There is no Phase 2 decoder in either tree: trunking invalidates the TDMA identifier, the demodulator is scalar four-level only, the framer knows only Phase 1 DUIDs, and the only vocoder in the new path is IMBE 7200×4400p25_trunk.c:26; p25_4fsk.c; p25rx.cHolds
Phase 2The stock C6000/firmware AMBE path is DMR-related and is not a P25 Phase 2 decoder, and the manual’s generic vocoder-docking statements do not prove otherwisemanual §4.6; codec.hHoldsCarefully put: it neither claims the half-rate decoder is missing from the tree nor assumes the DMR blob could be reused.
VerificationA focused host check ran every 6-bit and 12-bit Golay value through p25_golay_decode and all passedp25_fec.cValidatedMatches an independent harness built during an earlier grading: the decoder returns the systematic data for every codeword, which is also why an earlier audit’s “Golay fallback bug” did not reproduce.
VerificationThe passing host tests establish software consistency and do not change the hardware, RF, real-time or Phase 2 conclusions—HoldsThe right reading of its own evidence, and it says so twice.
Provenance

What was already known, and what it added

Every clean-room audit could see only the repository: its notes, code comments and the HR-C6000 manual, summarised in the first column. Luna raises fewer rows than its sibling but adds one no audit before it had: the starvation counter that never increments.

IssueProject docs
in the repository
Grok 4.6
Sep 17
DeepSeek V4.1 Flash
Sep 17
Muse Spark 1.3 Contributor
Sep 17
GLM 5.3 Flash
Sep 17
UNIONALPHA
Sep 17
Qwen3.8 Flash
Sep 17
Qwen3.8 Max
Sep 17
GLM 5.3
Sep 17
DeepSeek V4 Pro
Sep 17
Gemini 3.8 Flash
Sep 17
HY4 Preview
Sep 17
GPT-5.6 Sol
Sep 17
GPT-5.6 Luna
Sep 17
Capture export stages the wrong I2S halfwordsabsentraised
§1, first code change
absent
its first experiment uses that capture
absent
trusts the capture
absent
relies on the capture
raised
F3, fixed and verified
raised
P1-2, tests miss the adapter
absent
calls the capture validated
raised
§2, proven with a reproducer
absent
calls the capture module sound
absent
certifies the capture path
absent
its plan depends on it
raised
derived from the stride
absent
its first step relies on it
Capture parser certifies an incomplete streamabsentabsentabsentabsent
trusts the parser
absent
relies on the parser
absentabsentabsent
relies on the parser
absentabsentabsentabsentpartly
module tests miss the stride
absent
pcm_starve never incrementsabsent
documented as working
absentabsentabsent
relies on it
absentraised
F7
raised
P1-7
absentraised
§2
absentabsent
named only as a predicted symptom
absentabsentraised
F7, first to find it
No static RAM marginpartly
margins still to measure
absentraised
M6, 0 bytes free
partly
“nearly full”, from the docs
raised
F5, byte-exact map audit
raised
F6, byte-exact
partly
calls the reservation headroom
absentpartly
“~zero headroom”
partly
from the docs, not the map
raised
§3.5, exact map symbols
absentraised
exact map figures
absent
could not read the map
The I2S stream is most likely microphone audiopartly
open, leaning sceptical
raised
§1, 0x89 versus 0xC9
raised
B1, four-value test
raised
P1-1
partly
open, leans towards RF
partly
blocking, but never says microphone
raised
P1-4, 0xE0 mic bit
raised
A, the clearest case yet
raised
§1, three sources
raised
§1–§2, with the tap as the fix
raised
§1 and §3.1
partly
listed unverified, tested first
raised
Blocker 1, source unproven
raised
F1, as the safe default
HR-C6000 de-emphasis on the capture pathabsentraised
§2, bit 5 of 0x34
absent
calls it benign
raised
P1-2, 0x34=0x3C
raised
F2, closes the eye
partly
cited, called unmeasured
raised
P1-3, 0x34=0x1C
raised
C, with the 0x34 bit 5 fix
raised
§1, tilts the eye
absentraised
§3.3, 0x34=0x3C
raised
P1-1, and the boot table too
raised
0x34=0x3C, never replaced
raised
F2, without the fix
AT1846S FM filters, low-frequency bit, 25 kHz missedpartly
“require characterization”
raised
§2, register level
raised
B2, filter register
raised
P1-2, 0x58 filters
partly
“voice filtering”; wrong bandwidth premise
partly
cited, called unmeasured
raised
P1-3, DMR 0x58 probe
absentabsentabsentraised
§3.3, with the DMR fix
absentraised
25 kHz for a 12.5 kHz channel
absent
0x10=0x6E hybrid state; 0x36 dual rolepartly
bring-up clock rules
partly
misses 0x6E and the 0x36 clock gate
partly
“undocumented hybrid state”
partly
quiet-chip registers
raised
F4, 0x10=0x80 kills the clock
partly
F1, 0x6E against 0x80
partly
“hybrid I2S state”
partly
slot engine and eco only
partly
§4.3, 0x10=0x80 hazard
partly
“inconsistent hybrid state”
partly
0x36 and 0xE0, not 0x10
partly
0x36, 0xE0, 0x26; not 0x10
partly
FM mode writes, not 0x10
partly
0x36, 0xE0, 0x26 listed
Manual: I2S frame clock “must be 8KHz” missedabsentraised
§3
absent
quotes the paragraph, not the rule
absentabsentraised
F4
absent
quotes the formulas, not the rule
absent
cites the section, not the rule
absentabsentabsentraised
P1-2, with a test for it
absentabsent
One-layer 4FSK test mode as a P25 tappartly
stock BER-test block only
raised
Gate D
raised
B5, exact recipe
absent
dismissed
absentpartly
worth a bounded test
absent
ruled out at “9600 Bd”
raised
step 2, a symbol source
absent
“not a P25 symbol source”
absent
“no raw modem mode”
absent
“zero internal silicon capability”
partly
cited, then dismissed
absentabsent
±10% health gate versus ±1% timing clampabsentabsentraised
B3, impact overstated
raised
P1-3
raised
F3
absentabsentabsentabsentabsentabsentabsentraised
with the resampler consequence
raised
F4, with the resampling consequence
Fail-closed muting at LDU cadenceabsentabsent
late-entry mute only
absentabsent
calls it an asset
absentabsentpartly
“keep it”
absentabsent
calls it tested
absentabsent
certifies it as correct
absentabsent
certifies it as correct
raised
F8, weighed as a trade
Non-standard MFID mutes clear callsabsentabsentabsentabsentabsentabsentabsentabsentabsentabsentabsent
certifies it as correct
absentabsent
certifies it as correct
absent
Test waveform shares the receiver’s RRC filterpartly
“synthetic RRC/AWGN” caveat
absentpartly
tested it, says not to fix
partly
synthetic only, wants recordings
absent
would extend that model
raised
F5, unquantified
absent
would extend that model
partly
synthetic only, not the circularity
partly
synthetic only
partly
“ideal RRC-shaped signal”
absentpartly
P1-5, circularity without the filter
raised
names the shared table
partly
synthetic, not circular
MCU runs at 72 MHzraisedraised
in passing
absentraised
P1-5
absentraised
F7
absentabsentraised
§5
raised
§7, with the OpenRTX precedent
raised
§3.5, with the PLL settings
raised
P1-4, with the PLL lines
partly
named as the target, never costed
raised
F5, as the real-time risk
Vocoder needs 11–16× the 72 MHz CPU missedpartly
decode timing unmeasured
absent
“fine on a 1 ms tick”
absent
“vocoder question settled”
partly
unmeasured; fix order backwards
absent
“in good shape”
partly
deadlines “unproven”
absent
“not the problem”
absent
“not the problem”
partly
inline, unmeasured
partly
cites 4.36M, calls it 60%
absent
puts it at 15–18 ms per frame
partly
87% measured, budget unresolved
absent
left as a later measurement
partly
named, never sized
Direct discriminator tap (M17 mod)raisedraised
uncredited
raised
pins, timer ADC, 48 kS/s
raised
fallback, pin 9
raised
fallback
raised
fallback
raised
fallback
raised
step 5, the likely answer
raised
§1 pivot
raised
its central recommendation
raised
§5.1, with the ADC and DMA design
raised
the fallback if Gate 0 fails
raised
ADC with bias and anti-alias
raised
F1, the fallback route
Phase 2 architecture and scopepartly
not implemented
partly
misplaces the AMBE+2 decoder
partly
voice via mbelib AMBE+2
raised
with RF band limits
partly
says mbelib has no AMBE+2
raised
most accurate section
partly
DMR and X2-TDMA parts
raised
AMBE+2 present but uncalled
raised
with a reference map
partly
no symbol rate or sync
raised
accurate on rate and slots
partly
right conclusion, H-CPM mislabelled
raised
plus the linked-symbol check
raised
careful about the vocoder
Two unverified SPI writes per decoded 20 ms frameabsentabsentabsentabsentabsent
treats them as protection
absentabsentabsentabsentabsentpartly
the SPI0inUse mechanism
partly
silent SPI0 failures
raised
radioSetAudioPath per frame
absent
Capture sessions lack epochsabsentabsentpartly
measured=0 only
absentabsentraised
F9, 8 kHz under a 24 kHz header
absentabsentabsentabsentabsentabsentpartly
asks for source metadata
absent
Ring and tick real-time budgetpartly
deadlines unproven
partly
calls it fine
absentpartly
overruns look like weak RF
absentraised
F7, 1 ms is a minimum
partly
register stalls against the ring
absentpartly
1 ms tick as a constraint
absentabsentabsentraised
the 2 s refresh stall
partly
buffer inventory only
Clock config 3 assumes 12,288 Hz; the codec formula gives 12,000absentabsentraised
B3, clock model
absentpartly
“guessed semantics”
absentraised
P1-6, for a different reason
absentpartly
“unvalidated on hardware”
absentabsentabsentabsentabsent
Clock-config writes bypass the verified SPI writerpartly
SPI retry note
absentraised
M1
absentabsentraised
F9
absentabsentraised
§4.2
absentabsentabsentraised
traced through four files
raised
F6, both call sites
Stock squelch re-arms FM audio (0x10=0x80) during monitoringabsent
assumes it can’t re-arm
absentabsentabsentpartly
names squelch logic as a risk
raised
F1, new
absent
“fixed” by forcing squelch open
partly
names the squelch path as a writer
partly
hazard flagged, “unlikely”
absentabsentabsentraised
same call chain, independently
absent
ownership named in general
Stale clear-call state releases a new call’s first framesabsentabsentabsentabsentabsentraised
F8, probe
absentabsentabsentabsentabsentabsentabsentabsent
No frequency tracking; ad-hoc timing loop gainspartly
a code comment calls the DC estimate biased
absentabsentabsentabsentabsentabsentabsentabsentraised
§4, new
absent
reads the loop as sound
absentpartly
the ±1% clamp only
partly
asks for a timing/AFC loop
Unknown talkgroup opens audio (fail-open gating)absentabsentabsentabsentabsentabsentabsentabsentabsentabsentabsentabsentabsentabsent

Project docs: README.md, CAPABILITY-REPORT.md, STAGE3-BRINGUP.md, STAGE4-TX-FEASIBILITY.md, analysis/stock-p25/REPORT.md, analysis/capture-milestone-REPORT.md, dm1701-p25-demo/README.md and source comments. The starvation-counter row had been missed by every audit before this one.

Its plan

What to keep, change and add

Four stages, measurement before tuning, with a named stop: qualify conventional C4FM first and claim nothing about CQPSK or Phase 2 from those results. The gap is what it plans to measure with.

Keep

Worth doing as written

  • P0, prove the source: compare a keyed carrier, unkeyed noise and microphone excitation, and measure signedness, rate, clipping, polarity, spectrum and the eye.
  • Route clock writes through the verified retry and readback helper, and confirm the measured rate before re-enabling decode.
  • Use the measured rate for resampling, or narrow the health gate to what the timing loop can pull in.
  • Fix the underrun accounting, and use it with ring overruns as a real-time acceptance test.
Change

Would cause new problems

  • “Use the existing framed capture export”: it stages the wrong halfwords, so P0 would measure the wrong samples.
  • Leaving the build for later: the toolchain is in tools/; the map and the cycle counts were available all along.
  • Real time as “the next blocker”: the vocoder is already 11–16× over budget, which is a design decision, not a measurement.
Add

Missing from its plan

  • The AT1846S filter set, the half of the analog chain it never opens.
  • The manual’s 8 kHz frame-clock rule, which makes the 24 kHz configuration out of specification.
  • A circularity check on the test oracle: the generator shapes with the receiver’s own filter, which is more than “idealized”.

The one-layer path, and what it would take

Manual Table 5.6 (verified line by line), with the questions that decide whether it can carry P25.

RegisterValueManual description
0x01xxxx 0000IF receive mode
0x07 0x08 0x090x0B 0xD9 0x5424-bit IF word, 455 kHz by default (OpenGD77 boots at 450 kHz)
0x100x02One-layer mode, continuous receive; bit 5 for slot receive
0x400x40Receive enable, test mode
0x410x41Receive test enable
  • Output: 36 demodulated bytes per frame in RX RAM from 0x30, frame type in 0x51, system interrupt bit 0 when ready.
  • Rate fits exactly: 36 bytes every 30 ms is 9,600 bit/s, which is 4,800 symbols per second. Contiguous frames would lose nothing.
  • Open: Figure 5.15 is DMR burst geometry, so the mode may only emit frames after DMR sync. That’s the first thing to test.
  • Also needed: the AT1846S DMR register set, since the demodulator is fed by the AT1846S. And the vocoder still has to run in real time.
Phase 2

Correct, and careful about what it does not know

Its Phase 2 case is short and holds: the trunk follower invalidates the TDMA identifier, the demodulator makes scalar four-level decisions only, the framer knows Phase 1 DUIDs, and the only vocoder in the new path is IMBE 7200×4400. Its six-point plan — a verified input, a separate acquisition path, Phase 2 channel coding, a compatible vocoder, a resource decision, an interoperability set — is the right shape.

What stands out is the carefulness. It says the stock AMBE path is DMR-related and not a P25 Phase 2 decoder, which is true, without claiming the half-rate decoder is missing from the tree — the error that cost an earlier audit — and without assuming the licensed blob could be reused. It also declines to state the symbol rate or the burst structure, so the section informs a decision without teaching anyone the protocol.

Against the other clean-room audits

The same diagnosis as its sibling, at half the reach

GPT-5.6 Sol and GPT-5.6 Luna ran the same brief, in the same sandbox, at the same reasoning effort, hours apart. They agree on the diagnosis and on two of the three integration defects. Sol found the broken capture export, the squelch conflict and the memory ceiling, and built the firmware; Luna found the dead starvation counter that Sol missed, and concluded there was no compiler.

GPT-5.6 Sol clean-room review, graded B (84) →

Scores by dimension

Same rubric and weights. Hover or focus a bar for the score.

  • GPT-5.6 Sol
  • HY4 Preview
  • Grok 4.6
  • GPT-5.6 Luna
0255075100Score out of 100Accuracy & evidence91857482Coverage of decode problems70565958Root cause & prioritisation84807080Fix plan & acceptance gates90847580Originality & attribution84827272Clarity & calibration86887884Weighted total84777075
Method and limits

How this was checked

I read GPT56LUNA_REVIEW.md and checked each claim against the firmware sources, the OpenGD77 drivers, the translated HR-C6000 manual and the repository’s notes. I reran its Golay sweep and the test suite, and confirmed the late-entry assertion it cites. For its toolchain claim I checked the sandbox image, the bundled toolchain in tools/, the README it had read, and the build artifacts its sibling produced in the same image.

Before grading I audited the run: one model throughout, no network, no skills or memory, and nothing read outside its copy of the repository — the audit came back clean on every channel. It ran one-shot through the Hermes bench profile on an OpenAI Codex subscription, at the same reasoning effort as every other audit. The de-emphasis and CPU results come from the model and emulator used for the Grok 4.6 audit.

  • Filter responses are modelled, not measured.
  • CPU figures come from instruction counts in an emulator, not timing on the radio.
  • Its build failure is reproduced by reasoning about its session, not by rerunning the model.
  • No firmware was flashed, and no radio was touched.
podman run --rm --network=none localhost/dm1701-bench:1 which arm-none-eabi-gcc
# not on PATH — and tools/env.sh is what puts the bundled xPack GCC 13.2.1 there

ls runs/2026-09-17-gpt-5.6-sol/changes/…/build/MDUV380_FW.elf
# its sibling built the image in the same sandbox, during its run

Scripts: deemph_check.py, c4fm_sim.py and metrics.json. They need numpy and gcc.