pmb887x-dev/unit
2026-11-12 02:13:01 +03:00
..
adc
afc
capcom
cfi-intel
cgu
cpu
dif-v1
dif-v2
dmac
dsp unit: test modulator start sources on both DSP versions 2026-11-12 02:13:01 +03:00
ebu
eeprom
gpio
gprscu unit: add GPRSCU cipher tests 2026-11-11 15:44:05 +03:00
gptu
i2c-fm-radio
i2c-v1
i2c-v2
keypad
lcd
mmci
mmicif
mod
pmic
pmic-d1094xx
pmic-pmb681x
rtc
sccu
scu
sim unit: add SIM cyclic pointer and clock-independent latency tests 2026-11-11 15:44:05 +03:00
ssc
stm
tcm
tpu unit: test modulator start sources on both DSP versions 2026-11-12 02:13:01 +03:00
usart
usb
usif
vic
CMakeLists.txt unit: test modulator start sources on both DSP versions 2026-11-12 02:13:01 +03:00
eeprom.c
eeprom.h
package.json
README.md
run.sh
tap-result.awk
test-tap-result.sh
test.c
test.h
tests.toml unit: test modulator start sources on both DSP versions 2026-11-12 02:13:01 +03:00

Peripheral tests

Run a test on real hardware:

./run.sh <test>

The runner streams the entire output and succeeds only after the final TAP result is PASS (0 failed). The scu-reset and scu-wdt-reset tests intentionally reset the phone without emitting that result; run.sh cannot confirm their success.

Tests

Test Coverage
stm System timer registers and counter views
dmac DMA transfers, requests, linked lists, arbitration, and interrupts
eeprom-parser Siemens X65/X85 EELITE and EEFULL layouts, inline blocks, entry states, duplicates, and metadata
dsp-lle-core Communication flags, firmware command handshake, shared RAM access widths, MCU/DSP interrupt requests, and reset
dsp-lle-irqs Real DSP-generated INT_TOMCU requests, VIC routing, and acknowledgement for all four DSP SRC lines
dsp-lle-interrupt-functional DSP interrupt masking, acknowledgement, simultaneous priority, nested arbitration, and repeat delivery
dsp-lle-interrupt-block-repeat Independent block-repeat state across interrupt preemption
dsp-lle-modulo-update Modulo addressing after immediate ST2, CFGI, and CFGJ writes
dsp-lle-interrupt-repeat Single-instruction repeat preemption, nested repeats, and abandoned repeat resume
dsp-lle-interrupt-window Interrupt acceptance inside straight-line windows opened and closed by IE, IM0, and IM2 writes
dsp-lle-pc-write Words executed after every program-counter write form, the reached target, and the stack pointer
dsp-lle-block-repeat-control ICR LP aborts of nested block repeats, branches around the loop end, and lc reads
dsp-lle-block-repeat-limits Hardware behavior of block-repeat sequences that the specification forbids
dsp-lle-self-modifying Program words rewritten by movd: pipeline distance, executed subroutines, block-repeat bodies, and calla targets
dsp-lle-repeat-contents Single-instruction repeat of push, pop, movp, movd, icr writes, dint, and break inside a block repeat
dsp-lle-clock-domains DSP core, Timer 2, Shared RAM, and command-interface behavior under CGU and CLC controls
dsp-lle-interrupt-sources All documented DSP interrupt-unit source bits, line routing, masking, coalescing, and acknowledgement
dsp-lle-irq-shared-benchmark DSP interrupt entry and round-trip latency plus DSP/ARM Shared RAM throughput
dsp-lle-interface-concurrency MCU Shared RAM, communication flag, semaphore, and interrupt access while the DSP executes
dsp-lle-mask-rom-commands PMB8875/PMB8876 Mask ROM boot commands, one user command, and built-in runtime commands
dsp-hle-runtime-firmware PMB8876 runtime startup, command transport, and platform-specific command behavior
dsp-hle-runtime-semaphores Runtime command traffic, MCU semaphore ownership, and DSP-reset interaction
dsp-hle-runtime-idle Runtime IDLE acknowledgement, DSP clock status, wakeup, and command recovery
dsp-lle-i2s1-clock-select, dsp-lle-i2s2-clock-select I2S clock selection, divider and word-width rates, transmit start load, and interrupt addresses
dsp-hle-i2s-playback Three-second 440 Hz PCM playback through the original User ROM and board I2S route
dsp-hle-afe-playback Three-second 440 Hz PCM playback through the original User ROM and the EL71 AFE line output to the loudspeaker
dsp-lle-mcs-functional Communication flags, all-semaphore arbitration, queued transfer, and DSP-reset behavior
dsp-lle-peripheral-map Reset-isolated, read-only PMB8876 DSP data-space capture for the candidate DE00-DEFF peripheral window
dsp-lle-peripherals-registers Direct TeakLite reads of documented status, counter, pointer, semaphore, and ID registers without peripheral control writes
dsp-lle-instructions TeakLite I instruction results, including external-register writes, captured from PMB8876 Mask ROM 0801 hardware
dsp-lle-opcode-aliases Noncanonical variants of every documented TeakLite I don't-care opcode field and reserved encodings, with PMB8875 and PMB8876 hardware goldens
dsp-lle-opcode-probe Resumable diagnostic sweep of raw TeakLite first-word opcodes with reset and timeout isolation
dsp-lle-opcode-map Every TeakLite first-word opcode compared with the PMB8876 hardware outcome map
dsp-lle-expansion-probe Resumable sweep of expansion words for all documented two-word TeakLite I encoding rows
dsp-lle-expansion-map-0…dsp-lle-expansion-map-18 Every expansion word of one two-word TeakLite family compared with PMB8876 hardware map hashes per 256 words
dsp-lle-control-functional DSP control, Program/Data ROM mapping and banking, reset, and power-state behavior
dsp-lle-program-banks Mask-specific Program ROM page selection, exact instruction reads, and same-PC execution
dsp-lle-modulator-clock PMB8876 digital modulator: reads from address 0 on MSWACT, one RAM word per four GMSK symbols
dsp-lle-tpu-events PMB8876 TPU Timer RAM decoder values 0–9 and 15–31 observed through Baseband, modulator, and DSP interrupt state
dsp-lle-tpu-bb-events Hardware timing, counts, status, and DSP interrupts for repeating TPU MONON events
dsp-hle-gsm-channel-scan Multiband MON scan using DSP firmware 0801 and auto-discovered EELITE AFC calibration, followed by FCCH detection
dsp-lle-boot-state Autonomous Mask ROM execution after DSP reset and interrupt-gated boot-command dispatch
dsp-lle-rom-dump PMB8875/PMB8876 DSP boot-mode PREAD dump of Program Mask ROM in Intel HEX format
dsp-lle-data-rom-dump PMB8875/PMB8876 DSP boot-mode DREAD dump of fixed and banked Data Mask ROM in Intel HEX format
mod Common CLC, SRC, and SRB register blocks
scu CPU identification, watchdog protection, mode transitions, counter, and status
scu-reset Intentional software reset using the firmware reset-control sequence
scu-wdt-reset Intentional watchdog reset; reaching the failure message means the reset did not occur
adc ADC registers, conversion, interrupts, and battery voltage measurement
afc AFC reference value, output enable, write mask, and firmware-safe nominal value
cgu-* Functional timing of CGU clock sources and dividers, PLL lock state, and interrupt routing
rtc RTC registers, synchronous/asynchronous operation, timer chain, and interrupt sub-node
vic VIC pending state, arbitration, priority masking, acknowledge, IRQ, and FIQ routing
gptu Both GPTU instances, T0/T1 concatenation, T2 split mode, reload, and service requests
sccu GSM sleep timer, ARM WFI, DSP power-down, standby-clock calibration, and wakeup interrupt
tpu TDMA counter clock, modulo overflow, compare interrupts, correction, offset, and frame skip
tpu-ram TPU RF/Timer RAM partitioning, widths, timing events, and address pointers
tpu-rf-ssc TPU RF SSC direct transfers, formats, clocks, strobe selection, and completion interrupt
tcm ITCM and DTCM region registers, memory access, remap, and overlay behavior
usb sci-worx USB core and wrapper reset values, BROM start sequence, and interrupt enable masks
i2c-v1 I2Cv1 registers, hardware bits, IRQ transfers, and PMIC SMBus reads
i2c-v2 I2Cv2 registers, IRQ transfers, SMBus, FIFO modes, and bus scan
i2c-v2-dma I2Cv2 SMBus transfers through DMA
i2c-fm-radio E71 TEA5761UK identification, direct register transfer, and readback
cfi-intel-buffer-abort Destructive Intel/ST E8/E9 cross-block buffered-program abort and recovery
ssc SSC loopback, serial formats, FIFO modes, interrupts, and errors
ssc-dma SSC full-duplex FIFO DMA, bursts, LLI, widths, statuses, and interrupts
dif-v1 DIFv1 loopback, FIFO modes, interrupts, errors, and complete 32-to-16 BMREG matrix
dif-v1-dma DIFv1 full-duplex FIFO DMA, bursts, LLI, widths, statuses, and interrupts
usart USART loopback, frame modes, FIFO, interrupts, and timeout
usart-dma USART loopback transfers through DMA
usart-autobaud Host-driven baud and frame detection, controls, rejection, and normal-RX handoff
usart-host-rx Host receive gating and pseudorandom payload integrity at representative baud rates
usart-irq-rx Firmware-style bounded RX FIFO draining and software IRQ retrigger
usart-flow-control Loopback CTS gating and automatic RTS threshold, plus physical GPIO levels on hardware
sim-card-dma Complete hardware T=0 SELECT through DMA, including data, T0END, and SW1/SW2
sim-card-timers Hardware T=0 character timeout; BWT is skipped without a T=1 card
dif-v2 DIFv2 IRQ loopback, serial modes, FIFO alignment and bursts, BSCONF, LCD reads, and conversion
dif-v2-dma DIFv2 DMA flows, FIFO alignment and bursts, BSCONF, parallel LCD reads, and recovery
dif-v2-clock DIFv2 parallel bus clock source: AHB_PER sources and dividers versus FPI1 and AHB
dif-v2-timings DIFv2 parallel bus time per byte for every LCDTIM field, firmware profiles, lane formats, and RMC
dif-v2-lcd EL71 JBT6K71 command/data I/O, polling/TPS BSCONF modes, GRAM, and conversion gating
cfi-intel Safe Intel/ST CFI discovery, identification, geometry, and read commands
cfi-intel-rw Intel/ST CFI program, erase, lock, and suspend/resume operations
cfi-intel-efa-rw Intel/ST extended flash array program and erase operations
cfi-intel-otp-rw Irreversible Intel/ST OTP program and freeze operations

cfi-intel-buffer-abort uses a detected blank, non-lock-down erase block and the geometry reported by that flash. It unlocks the block for the test, verifies the affected write buffer, cross-block word, and both full-block CRCs, then restores the original lock state. It skips destructive access if no suitable block or Intel/ST buffered-program command set is found.