stm32-async-1wire/ Stress test report| 1-Wire viewer API Coverage

Stress test report

DMA feed margin under memory-subsystem load - STM32F030x6

Measured 2026-11-05 at commit 1c6aaa87 on STM32F030x6. Build 0_dma_pressure, pattern 00FFAA550FF03CC3, 64 slots per frame, 100 firmware frames per cell, 512 halfwords per DMA burst. Each cell carries the SHA-256 of its image in results.json

Summary

The wire stayed correct on F0; the additional benches expose starvation when the load outranks the feed.

This test checks whether memory load can delay the CCR3 feed DMA past its slot deadline. The primary bench stays clean; the additional benches show where a higher-ranked load can starve the feed. The integration rule below makes that constraint explicit.

What can go wrong

Each write slot is one TIM1 period. At CC2, DMA1 channel 3 is asked for the next CCR3 value. The update event starts the next slot, so the zero-margin deadline is guard + 1 microseconds after CC2 (the counter runs from 0 to ARR inclusive).

CC2: feed request update: next slot guard window: 6 us at guard 5, 2 us at guard 1
Late transferWhat the wire shows
A transfer past the updatethe slot keeps its previous value, so a run of equal bits hides it; the first visible damage is at the release - an extra low pulse and the final release never comes.
A transfer inside the next low pulsethe pulse stretches or a second edge appears; the slot no longer matches a '1' or a '0' width.
A transfer never servicedCNDTR stays non-zero at completion and the line can be parked low - complete starvation.

On DMA-fed paths OC3PE is off. A late CCR3 write takes effect immediately, so a failure can appear inside the current slot, not only at the next one.

The delayed-feed sweep shows that this deadline is not where the frame actually breaks. The first fed slots are '0' bits, whose compare sits about 60 us into the slot, so a write that lands after the update can still reach the compare in time and the DMA catches up. The measured hold at the first failure is 72 us at 48 MHz and 74 us at 8 MHz - near that '0' compare, not near guard + 1. The first detected failure is the release: the kept failing frames have 65 low pulses instead of 64 and the last pulse never rises - an extra edge with the final release missing, not a repeated bit. The measured boundary is therefore much later than guard + 1 and depends on the pattern and the clock; the delay sweep below measures it, and the zero-margin rule stays as the conservative design limit.

Rig and method

examples/0_dma_pressure sends a fixed 8-byte pattern (64 slots plus the release) back to back while a selectable load runs beside the bus. The bench is STM32F030x6; D0 is the 1-Wire line on PA10. The capture runs at 4.0 MS/s. The harness flashes the firmware halted and resets it, so only the intended run is measured.

MCUSTM32F030x6
Clocks8 MHz, 48 MHz
Pattern00FFAA550FF03CC3 (LSB first, per byte)
Firmware frames per cell100
Load channelsDMA1 channel 1 (restarted finite bursts) and channel 2 (finite bursts), all at the default priority
On-chip checkcndtr_late (DMA1_Channel3->CNDTR at completion) and TEIF3, read back over SWD
Wire checkevery low pulse is a '1' or a '0' width, the slot period matches the build, all 64 bits decode, and the frame has exactly 64 pulses and a release

The first slot is armed by a register write, not the feed DMA. Its width includes the CPU gap between enabling OC3 and starting the timer (about 1 us at 48 MHz, 7 us at 8 MHz), so the check skips that slot's width and the first period of each frame. Guard 0 is not an operating point: CC2 then coincides with the update, and the release write adds a spurious end-of-frame pulse.

Load ladder

LevelLoadWhat it does Evidence at the default guard
0noneThe driver's own margin: no load beside the bus.8 MHz: -; 48 MHz: -
1CPU SRAM hammerThe CPU walks the 1 KiB destination array in the onewire_bus_done() poll loop.8 MHz: CPU passes 700; 48 MHz: CPU passes 3300
2finite DMA burst, ~1 msA 512-halfword mem-to-memory burst on DMA1 channel 2, started about once per millisecond.8 MHz: DMA bursts 501; 48 MHz: DMA bursts 500
3finite DMA burst, back to backThe same channel-2 burst restarted as soon as it drains, so the channel competes for nearly every slot.8 MHz: DMA bursts 1400; 48 MHz: DMA bursts 8200
4ch1 burst streamA finite mem-to-memory burst on DMA1 channel 1, restarted as soon as it drains. Circular mode is not allowed in memory-to-memory (RM0091); channel 1 is the lowest channel number at equal priority.8 MHz: ch1 bursts 1400; 48 MHz: ch1 bursts 8300
5ch1 burst stream + CPULevel 4 plus the CPU SRAM hammer.8 MHz: ch1 bursts 700, CPU passes 700; 48 MHz: ch1 bursts 3500, CPU passes 3500

Results

Smallest clean guard per level and clock. The parenthetical is the real transfer window (guard + 1 us). A clean cell has no width, period, length or decode violation in the frames the analyzer decoded; the firmware frame counter is shown separately because the analyzer can miss a frame.

LevelClockguard_min Frames @ 5 us (decoded / firmware)Violations @ 5 usCNDTR late DMA errorStop timeoutLoad evidenceViewer
048 MHz1 us (2 us)1000000-
148 MHz1 us (2 us)1000000CPU passes 3300
248 MHz1 us (2 us)1000000DMA bursts 500
348 MHz1 us (2 us)1000000DMA bursts 8200
448 MHz1 us (2 us)99 / 1000000ch1 bursts 8300
548 MHz1 us (2 us)1000000ch1 bursts 3500, CPU passes 3500
08 MHz1 us (2 us)1000000-
18 MHz1 us (2 us)1000000CPU passes 700
28 MHz1 us (2 us)1000000DMA bursts 501
38 MHz1 us (2 us)1000000DMA bursts 1400
48 MHz1 us (2 us)1000000ch1 bursts 1400
58 MHz1 us (2 us)1000000ch1 bursts 700, CPU passes 700

The viewer opens one representative frame (64 slots, 1 ms lead-in and tail). The pattern is not a 1-Wire command, so the protocol tree stays empty; the Detail view shows the measured low and slot widths. The JSON holds every tested cell, including the 100 us control and the bisection probes.

Frame-count gap: 48 MHz level 4 at 5 us: 99 decoded, 100 run by the firmware. Where two numbers appear, the second is the firmware's SWD frame counter. The analyzer decoded fewer frames than the firmware ran; every decoded frame passed and the DMA counters are zero, so this is a capture/decode loss, not a feed fault.

CPU-side work

CPU passes completed while the bus was running, at the default guard. The ch1 burst stream does not reduce them here: the DMA interleaves between CPU accesses. The burst count in the table shows the load.

8 MHz - level 1 (CPU only)700
8 MHz - level 5 (ch1 + CPU)700
48 MHz - level 1 (CPU only)3300
48 MHz - level 5 (ch1 + CPU)3500

Both loads ran, and the feed still met the 2 us floor.

Capture drain under load

Search ROM matrix measured 2026-11-08 at commit 86988313.

The Search ROM pass reads every bit through the capture DMA (channel 4), so it tests the other deadline. One search runs per boot at each level and clock, at every measured guard (1 us, 5 us and 100 us). The unloaded level-0 pass is the baseline (48: 7 devices, 88DB0C9D, 8: 7 devices, 88DB0C9D); a stressed pass must return the same DS18B20 count and FNV-1a checksum.

LevelClockGuardDS18B20sROM checksumROM callbacksMatches baselineViewer
08 MHz1 us788DB0C9D7yesframe
18 MHz1 us788DB0C9D7yesframe
28 MHz1 us788DB0C9D7yesframe
38 MHz1 us788DB0C9D7yesframe
48 MHz1 us788DB0C9D7yesframe
58 MHz1 us788DB0C9D7yesframe
08 MHz5 us788DB0C9D7yesframe
18 MHz5 us788DB0C9D7yesframe
28 MHz5 us788DB0C9D7yesframe
38 MHz5 us788DB0C9D7yesframe
48 MHz5 us788DB0C9D7yesframe
58 MHz5 us788DB0C9D7yesframe
08 MHz100 us788DB0C9D7yesframe
18 MHz100 us788DB0C9D7yesframe
28 MHz100 us788DB0C9D7yesframe
38 MHz100 us788DB0C9D7yesframe
48 MHz100 us788DB0C9D7yesframe
58 MHz100 us788DB0C9D7yesframe
048 MHz1 us788DB0C9D7yesframe
148 MHz1 us788DB0C9D7yesframe
248 MHz1 us788DB0C9D7yesframe
348 MHz1 us788DB0C9D7yesframe
448 MHz1 us788DB0C9D7yesframe
548 MHz1 us788DB0C9D7yesframe
048 MHz5 us788DB0C9D7yesframe
148 MHz5 us788DB0C9D7yesframe
248 MHz5 us788DB0C9D7yesframe
348 MHz5 us788DB0C9D7yesframe
448 MHz5 us788DB0C9D7yesframe
548 MHz5 us788DB0C9D7yesframe
048 MHz100 us788DB0C9D7yesframe
148 MHz100 us788DB0C9D7yesframe
248 MHz100 us788DB0C9D7yesframe
348 MHz100 us788DB0C9D7yesframe
448 MHz100 us788DB0C9D7yesframe
548 MHz100 us788DB0C9D7yesframe

All 36 stressed cells match. The search filters family 0x28, so the firmware counts 7 sensors while the viewer shows 8 responders (7 DS18B20 plus 1 DS2431). SEARCH_MAX caps the count at 8, so this is not a full bus census. At high load the poll loop can stretch the gaps between bits; the firmware count/checksum is the main check; the gaps are real host idle time, not dropped samples.

Negative control: a deliberately delayed transfer

This control checks that the harness notices a late transfer. STRESS_INJECT_US sets a nominal hold: it disables the feed channel (write mode) or the capture channel (search mode), then re-enables it. The write path also drops the D1 marker for the real hold, which the analyzer measures: the busy loop runs 4-5x longer than the nominal value at both clocks, so the measured column, not the nominal one, is the physical delay. The delay must make the cell fail.

PathClockNominal hold Measured holdResultFirst failureViewer
capture (Search ROM)8 MHz0 us-clean-frame
capture (Search ROM)8 MHz200 us-detected0 devices (checksum 811C9DC5)frame
capture (Search ROM)8 MHz400 us-detected0 devices (checksum 811C9DC5)frame
capture (Search ROM)8 MHz600 us-detected0 devices (checksum 811C9DC5)frame
capture (Search ROM)8 MHz1000 us-detected0 devices (checksum 811C9DC5)frame
capture (Search ROM)48 MHz0 us-clean-frame
capture (Search ROM)48 MHz200 us-detected0 devices (checksum 811C9DC5)frame
capture (Search ROM)48 MHz400 us-detected0 devices (checksum 811C9DC5)frame
capture (Search ROM)48 MHz600 us-detected0 devices (checksum 811C9DC5)frame
capture (Search ROM)48 MHz1000 us-detected0 devices (checksum 811C9DC5)frame
feed (write frame)8 MHz0 us0 usclean-frame
feed (write frame)8 MHz8 us34 usclean-frame
feed (write frame)8 MHz10 us42 usclean-frame
feed (write frame)8 MHz12 us50 usclean-frame
feed (write frame)8 MHz14 us58 usclean-frame
feed (write frame)8 MHz16 us66 usclean-frame
feed (write frame)8 MHz18 us74 usdetectedextra low pulse; final release missingframe
feed (write frame)8 MHz20 us82 usdetectedextra low pulse; final release missingframe
feed (write frame)48 MHz0 us0 usclean-frame
feed (write frame)48 MHz8 us36 usclean-frame
feed (write frame)48 MHz10 us45 usclean-frame
feed (write frame)48 MHz12 us54 usclean-frame
feed (write frame)48 MHz14 us63 usclean-frame
feed (write frame)48 MHz16 us72 usdetectedextra low pulse; final release missingframe
feed (write frame)48 MHz18 us82 usdetectedextra low pulse; final release missingframe
feed (write frame)48 MHz20 us90 usdetectedextra low pulse; final release missingframe

The first delayed feed is detected at 72 us (48 MHz) and 74 us (8 MHz) (measured); the first delayed capture at 200 us (both clocks). The hold starts at the frame's first CC2 request, 65 us into the frame, so these values pin how long the first feed transfer may be held after that request. A window from the frame start could not show anything below 65 us: the feed had not asked yet. The measured hold comes from a separate marker build (STRESS_INJECT_MARKER=1); the marker write is test-only and does not change the feed path. The search's first capture is later, so its threshold is higher. The viewer links on the detected rows show the corrupted frame or search.

Feed delay tolerance vs the guard window

The negative control above runs at the default guard. The same sweep at several guards shows how the tolerance moves. The values are the measured hold on the D1 notch (the build knob is nominal and runs 4-5x short), so the question is whether the last harmless hold tracks guard + 1 plus a constant.

ClockGuardClean through First detectedGuard windowViewer
8 MHz1 us58 us66 us2 usfailing frame
8 MHz5 us66 us74 us6 usfailing frame
8 MHz10 us74 us82 us11 usfailing frame
8 MHz20 us82 us90 us21 usfailing frame
48 MHz1 us54 us63 us2 usfailing frame
48 MHz5 us63 us72 us6 usfailing frame
48 MHz10 us63 us72 us11 usfailing frame
48 MHz20 us72 us81 us21 usfailing frame

It does not. The offset over guard + 1 (measured: 8 MHz: +64/+68/+71/+69 us; 48 MHz: +61/+66/+61/+60 us) is roughly constant at 60-70 us: the boundary sits near the first fed slot's low-pulse compare (about 60 us for a '0'), not near the guard window. The first fed slots are '0' bits, so a late write still lands before their compare; the guard only sets the timer's nominal window. The offset varies by about 10 us across guards and clocks, so a single formula would still be a fit to noise; the measured boundary is the design number.

The sweep steps by 2 us of nominal hold (about 8-10 us of measured hold), so the boundary is good to roughly ±5 us: it pins the tolerance to the sweep's resolution, not to the microsecond. At the default guard the feed survives well past the 6 us window, which is why the guard window and the delay tolerance must not be compared as if they were the same quantity. The number to design against is still the load-placement rule: a higher-ranked burst must not outlast guard + 1 us. That rule is conservative by construction - it keeps the request inside the timer's window regardless of how much extra slack a particular DMA IP tolerates - and the measured survival above shows the margin it leaves, not an exact failure point.

STM32F4 (STM32F446xx)

Write matrix measured 2026-11-05 at commit f2ff4fe7 on STM32F446xx. Same rig, same loader, marker-bracketed frames and run-identity checks. Each cell carries its image SHA-256.

2 level/clock cells do not pass; they are listed as not clean below.
LevelClockguard_min Default guardViewer
0180 MHz1 usclean
1180 MHz1 usclean
2180 MHz1 usclean
3180 MHz1 usclean
4180 MHz1 usclean
5180 MHz1 usclean
016 MHz1 usclean
116 MHz1 usclean
216 MHz1 usclean
316 MHz1 usclean
416 MHz1 usclean
516 MHz89 usnot clean
08 MHz1 usclean
18 MHz1 usclean
28 MHz1 usclean
38 MHz1 usclean
48 MHz1 usclean
58 MHznever cleannot clean

Search ROM matrix measured 2026-11-08 at commit 6a5d1efc.

Search ROM under load returned no devices in 3 of 20 cells (l5/8 MHz/g5, l5/8 MHz/g1, l5/16 MHz/g1); the capture JSON keeps both attempts.

LevelClockGuardDS18B20sROM checksumROM callbacksMatches baselineViewer
08 MHz1 us788DB0C9D7yesframe
58 MHz1 us0811C9DC50noframe
08 MHz5 us788DB0C9D7yesframe
58 MHz5 us0811C9DC50noframe
016 MHz1 us788DB0C9D7yesframe
516 MHz1 us0811C9DC50noframe
016 MHz5 us788DB0C9D7yesframe
516 MHz5 us788DB0C9D7yesframe
0180 MHz1 us788DB0C9D7yesframe
1180 MHz1 us788DB0C9D7yesframe
2180 MHz1 us788DB0C9D7yesframe
3180 MHz1 us788DB0C9D7yesframe
4180 MHz1 us788DB0C9D7yesframe
5180 MHz1 us788DB0C9D7yesframe
0180 MHz5 us788DB0C9D7yesframe
1180 MHz5 us788DB0C9D7yesframe
2180 MHz5 us788DB0C9D7yesframe
3180 MHz5 us788DB0C9D7yesframe
4180 MHz5 us788DB0C9D7yesframe
5180 MHz5 us788DB0C9D7yesframe

Every row links the capture on this bench. The gaps between slots are real host idle time, not dropped samples, so the slot intervals are captured correctly. Whether the ROM search found devices is the Matches column, not the capture quality: a zero-device row still has valid intervals. A failed capture returns 0 devices with checksum 811C9DC5, which is also what an empty bus returns, so check the DMA counters and the capture window before reading a zero as absent sensors.

The floor is the smallest clean guard measured. not clean means even the widest guard tested did not pass. The capture links open one representative frame per cell.

STM32H5 (STM32H503xx)

Write matrix measured 2026-11-07 at commit a19462ae on STM32H503xx. Same rig, same loader, marker-bracketed frames and run-identity checks. Each cell carries its image SHA-256.

Every level is clean at the 5 us default; the measured floor is shown per cell.
LevelClockguard_min Default guardViewer
064 MHz1 usclean
164 MHz1 usclean
264 MHz1 usclean
364 MHz1 usclean
464 MHz1 usclean
564 MHz1 usclean
0250 MHz1 usclean
1250 MHz1 usclean
2250 MHz1 usclean
3250 MHz1 usclean
4250 MHz1 usclean
5250 MHz1 usclean
08 MHz1 usclean
18 MHz1 usclean
28 MHz1 usclean
38 MHz1 usclean
48 MHz1 usclean
58 MHz1 usclean

Search ROM matrix measured 2026-11-06 at commit ac57ff86.

Search ROM under load matched the baseline in all 36 cells.

LevelClockGuardDS18B20sROM checksumROM callbacksMatches baselineViewer
08 MHz1 us788DB0C9D7yesframe
18 MHz1 us788DB0C9D7yesframe
28 MHz1 us788DB0C9D7yesframe
38 MHz1 us788DB0C9D7yesframe
48 MHz1 us788DB0C9D7yesframe
58 MHz1 us788DB0C9D7yesframe
08 MHz5 us788DB0C9D7yesframe
18 MHz5 us788DB0C9D7yesframe
28 MHz5 us788DB0C9D7yesframe
38 MHz5 us788DB0C9D7yesframe
48 MHz5 us788DB0C9D7yesframe
58 MHz5 us788DB0C9D7yesframe
064 MHz1 us788DB0C9D7yesframe
164 MHz1 us788DB0C9D7yesframe
264 MHz1 us788DB0C9D7yesframe
364 MHz1 us788DB0C9D7yesframe
464 MHz1 us788DB0C9D7yesframe
564 MHz1 us788DB0C9D7yesframe
064 MHz5 us788DB0C9D7yesframe
164 MHz5 us788DB0C9D7yesframe
264 MHz5 us788DB0C9D7yesframe
364 MHz5 us788DB0C9D7yesframe
464 MHz5 us788DB0C9D7yesframe
564 MHz5 us788DB0C9D7yesframe
0250 MHz1 us788DB0C9D7yesframe
1250 MHz1 us788DB0C9D7yesframe
2250 MHz1 us788DB0C9D7yesframe
3250 MHz1 us788DB0C9D7yesframe
4250 MHz1 us788DB0C9D7yesframe
5250 MHz1 us788DB0C9D7yesframe
0250 MHz5 us788DB0C9D7yesframe
1250 MHz5 us788DB0C9D7yesframe
2250 MHz5 us788DB0C9D7yesframe
3250 MHz5 us788DB0C9D7yesframe
4250 MHz5 us788DB0C9D7yesframe
5250 MHz5 us788DB0C9D7yesframe

Every row links the capture on this bench. The gaps between slots are real host idle time, not dropped samples, so the slot intervals are captured correctly. Whether the ROM search found devices is the Matches column, not the capture quality: a zero-device row still has valid intervals. A failed capture returns 0 devices with checksum 811C9DC5, which is also what an empty bus returns, so check the DMA counters and the capture window before reading a zero as absent sensors.

The floor is the smallest clean guard measured. not clean means even the widest guard tested did not pass. The capture links open one representative frame per cell.

Load placement and DMA priority

On a classic DMA controller or an F4 DMA stream, equal software priority is broken by the lower channel/stream number. The historical load sits on the low numbers (F0 channels 2/1, F4 streams 0/1), so it outranks the feed; the "high" runs move the same burst to the higher numbers, where the feed wins. GPDMA has no such tie: CCR.PRIO selects the class, so the H5 "high" run keeps channels 0/1 and raises the load to PRIO 3 against the feed's PRIO 0. The rows below are the same levels and guards with only that placement or priority changed.

FamilyPartLoad placement Clean cells (default guard)Failing cells (default guard)
STM32F0STM32F030x6DMA1 channels 2 and 1120
STM32F4STM32F446xxDMA2 streams 0 and 1162
STM32H5STM32H503xxGPDMA1 channels 0/1, CCR.PRIO 0180
STM32F4STM32F446xxDMA2 streams 5 and 6180
STM32H5STM32H503xxGPDMA1 channels 0/1, CCR.PRIO 3135

These are level/clock cells in the write-frame matrix at the default guard, not the Search ROM matrix above. A failing cell is a write frame that did not decode clean. On the H503 PRIO 3 row every failing cell has start_timeout = 0 and load_error = 0, so the higher priority starved the feed; the equal-priority H503 row is clean. A part that is clean in both rows has spare bandwidth; a part that is clean only with the load below the feed is sensitive to arbitration order.

Why F0 is immune and F4/H5 are not. F0's DMA1 arbitrates one transfer at a time, so a load channel cannot hold the bus across a whole feed window. An F4 DMA stream can hold a burst/FIFO, and equal priority is broken by the lower stream number; the historical load on streams 0/1 therefore wins against the feed on stream 2. H5 GPDMA uses CCR.PRIO classes instead of channel-number ties, so a PRIO 3 load can starve the default-priority feed outright. G0, G4, F1, F3 and H7 are not measured here; predict them from their arbitration granularity and priority rules rather than from the F0 result.

Integration rule. A higher-ranked, uninterruptible load burst must not last longer than the feed window (guard + 1 us). If it can, lower its priority, split it into shorter bursts, or raise the feed and capture priority above it. The library's reset-default priority is not a guarantee against an application channel with a higher rank.

That rule is deliberately conservative. The delayed-feed sweep above shows the feed tolerated 14-16 us at 48 MHz and 16-18 us at 8 MHz at the default guard, so a burst slightly longer than guard + 1 is not automatically fatal; the extra slack depends on the DMA IP, the clock and the bus position, so it is not a design budget. Measure the burst duration under the worst SRAM contention, not at its nominal length: on the F446 the load on streams 0/1 is clean at levels 3 and 4 and fails only at level 5, where the CPU hammer is added. A lower stream number is necessary but not sufficient to explain a failure.

These rows move the load, not the library. The direct test of the build knob is the next section: the same failing cells re-run with the feed and capture raised.

DMA priority knob: measured effect

OW_DMA_PRIO is the only lever that changes the library itself. This table takes the write cells that fail at the default guard plus the Search ROM cells that fail at the guards the Search matrix covers (1 and 5 us), and re-runs them at each measured class, leaving the load where it was. The Default column is the committed run with the same load placement: the F446 default streams for the F446 rows, and the raised H503 load for the H503 rows, because that is the placement the knob was tested against.

BenchLoadMatrixClock LevelGuardDefaultOW_DMA_PRIO=1OW_DMA_PRIO=2OW_DMA_PRIO=3
STM32F446xxdefaultwrite frame8 MHz55 usfailcleancleanclean
STM32F446xxdefaultwrite frame16 MHz55 usfailcleancleanclean
STM32F446xxdefaultSearch ROM8 MHz55 usfail (0 devices)cleancleanclean
STM32F446xxdefaultSearch ROM8 MHz51 usfail (0 devices)cleancleanclean
STM32F446xxdefaultSearch ROM16 MHz51 usfail (0 devices)cleancleanclean
STM32H503xxhigh (load PRIO 3)write frame8 MHz25 usfailfailfailclean
STM32H503xxhigh (load PRIO 3)write frame8 MHz35 usfailfailfailclean
STM32H503xxhigh (load PRIO 3)write frame8 MHz45 usfailfailfailclean
STM32H503xxhigh (load PRIO 3)write frame8 MHz55 usfailfailfailclean
STM32H503xxhigh (load PRIO 3)write frame64 MHz55 usfailfailfailclean

The smallest measured class that clears every default-guard failure is STM32F446xx: 1; STM32H503xx: 3. For the minimal class, the other guards are clean too: STM32F446xx at class 1: 4 of 4 other-guard cells clean; STM32H503xx at class 3: 24 of 24 other-guard cells clean. On classic DMA and F4 streams an equal-class load is still ordered by channel/stream index, so the knob is not a substitute for the guard + 1 rule there. On the H5 GPDMA only class 3 is a fixed higher class; classes 0-2 share a weighted round-robin (RM0492, GPDMA channel arbitration), which is why classes 1 and 2 do not outrank a PRIO 3 load. The measured equal class was clean: CCR.PRIO does not break ties by channel number. The library keeps class 0 by default: raising it gives the library's pending feed and capture requests precedence over lower-priority DMA requests during a 1-Wire frame, potentially delaying those channels. The library asks for one halfword per slot (about every 70 us), so a victim channel loses one arbitration round per slot, not a frame-long stall. Victim cost measured: STM32F446xx level 4 ch1 burst counter (class 0 vs class 1): 8 MHz 1800 vs 1800, 16 MHz 3500 vs 3500, 180 MHz 39101 vs 39101 - no measurable loss at this resolution. Where class 1 clears every failure on F4, the cost of raising it is the open question, not the benefit.

Interpretation

Caveats

Reproduce

make APP=0_dma_pressure OW_MCU=STM32F030x6 \
     EXT="-DOW_PARASITE_POWER=0 -DSTRESS_LEVEL=5 -DONEWIRE_GUARD_BAND=1"

python tests/hil/dma_pressure.py \
     --json docs/stress/results.json \
     --sr-dir docs/stress/captures

# the priority staircase: the load placement is fixed and the feed/capture
# class is the variable. One file pair per class and bench.
python tests/hil/dma_pressure.py \
     --json docs/stress/platforms/h503/results-prio1.json \
     --levels 2,3,4,5 --clocks 8,64,250 --guards 1,5,100 \
     --gpdma-prio 3 --feed-prio 1
python tests/hil/dma_capture.py \
     --json docs/stress/platforms/f446/capture-prio1.json \
     --levels 0,5 --clocks 8,16 --feed-prio 1

python tools/stress_report.py \
     --data docs/stress/results.json \
     --capture docs/stress/capture.json \
     --out docs/stress/index.html

The matrix needs an fx2lafw logic analyzer and an ST-Link; it prints SKIP when either is missing. A full 12-cell run takes a few minutes because every cell is rebuilt and flashed. The \ above is the POSIX shell line continuation; in cmd.exe use ^ or keep each command on one line.

Artifacts