Skip to content

Zephyr 4.4.2 (Core#160) + the fixes the bump needs - #33

Merged
luizvilla merged 11 commits into
mainfrom
bump/zephyr-4.4.2
Nov 26, 2026
Merged

luizvilla merged 11 commits into
mainfrom
bump/zephyr-4.4.2

Conversation

@luizvilla

Copy link
Copy Markdown
Member

For Bench tests and merge: Zephyr 4.4.2 (Core#160). It brings in Core#160's commits unchanged, plus three fixes the bump needs. Merge after PR #30 (the tool-openocd pin), which this branch is built on.

What the bump needed beyond Core#160

  1. ST-Link upload (owntech/pio_extra.ini). ststm32@20.0.0 selects transport select swd and asks for tool-openocd ~3.1200.7. The 3.1200.0 pin from PR Pin tool-openocd 3.1200.0: ST-Link upload on a fresh PlatformIO install (+ L0-TGT-05) #30, needed by ststm32@19.0.0's hla_swd, would break uploads, so the pin moves to ~3.1200.7. L0-TGT-05 checks it.
  2. Test firmware builds (zephyr/CMakeLists.txt). With Zephyr 4.4.2, find_package(Zephyr) sets its own APP_DIR, overwriting the one Core computes from OWNTECH_APP_DIR. Every test env (SMOKE, DAC, CTK, …) then failed with No SOURCES given to target: app. The variable is renamed to OWNTECH_APP_PATH. The default src/ app was not affected.
  3. Bench runner (tests/runner/install.sh). Core-CUT stays on ststm32@19.0.0 with an unpinned tool-openocd, and PlatformIO resolves an unpinned package to the highest installed version. Once a Core build installs 3.1200.7, the bench restore fails with hla_swd; that happened on the bench tonight. The installer now pins 3.1200.0 in the runner's Core-CUT copy.
    • Before merging this PR, re-run tests/runner/install.sh (or pin tool-openocd@3.1200.0 in /var/lib/spoc-runner/Core-CUT/owntech/pio_extra.ini by hand).
    • SPOC_Software's Core-CUT should pin it upstream too.

Bench evidence: the whole available L0 campaign, today's Zephyr against 4.4.2

For the widest coverage, both sides carry the open test PRs: tool-openocd pin (#30), critical task (#31), DAC (#32).

  • Baseline 63fd2e7: those PRs on current main, Zephyr 4.0.
  • Candidate f9dc7b2: the same plus this PR.
Baseline Candidate (Zephyr 4.4.2)
Verdict PASS 46 / 0 45 / 1
Framework, L0-TGT (incl. TGT-05 upload) pass pass
L0-CTK periods 1280.1 / 6552.2 µs 1280.1 / 6552.2 µs
L0-DAC levels +5 … +54 mV +9 … +52 mV
Boot after upload (MCUboot + app) 8.4 s 9.1 s
L0-CAL-04.c pass FAIL: one invalid scope duty reading

L0-CAL runs on Core-CUT, a firmware this PR does not touch. The same invalid reading happened once tonight on CH1 with no Zephyr change. Read it as scope flakiness, not a regression; the labelled run will tell.

All test envs build. New build warnings: Zephyr's legacy USB device stack (CDC console) is deprecated in 4.4 (usb_dc_ep_mps, usb_transfer_ep_callback), which points to a later move to device_next. MetaDataAPI.cpp also warns about bitwise operations between enum types.

Refs #11

🤖 Generated with Claude Code

cfoucher-laas and others added 10 commits October 13, 2026 16:24
ststm32@20.0.0 (Zephyr 4.4.2, Core#160) selects `transport select swd`
for upload_protocol = stlink and asks for tool-openocd ~3.1200.7; the
3.1200.0 pin taken for ststm32@19.0.0's hla_swd would now break the
ST-Link upload. L0-TGT-05 covers it.

Refs #11

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With Zephyr 4.4.2, find_package(Zephyr) sets its own APP_DIR (the
CMake source dir, zephyr/), overwriting the one CMakeLists.txt computed
from OWNTECH_APP_DIR. The source glob after it then found nothing, and
every test firmware env (SMOKE, ...) failed: "No SOURCES given to
target: app". app.conf and the overlay, looked up before
find_package(), were not affected, nor was the default src/ app.

Refs #11

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Core-CUT stays on ststm32@19.0.0 (hla_swd) with tool-openocd unpinned.
PlatformIO resolves an unpinned package to the highest installed
version, so once a Core build on ststm32@20.0.0 installs 3.1200.7, the
bench restore fails with "Debug adapter doesn't support 'hla_swd'".
Seen on the bench tonight. install.sh pins 3.1200.0 in the bench copy
until SPOC_Software pins it itself.

Refs #11

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@luizvilla

Copy link
Copy Markdown
Member Author

Example builds (#35's build tier): all 27 of 27 examples of owntech-foundation/examples (345c8a0) build against this branch (5d3dec43, Zephyr 4.4.2), built locally with tools/build_examples.sh from #36. The baseline on today's main (#36's own CI run) is also 27/27. Once #36 is merged, this PR's checks will rebuild them on a GitHub-hosted runner. Merge #36 before this one.

@luizvilla luizvilla added the spoc-run Maintainer reviewed the diff: run the SPOC bench campaign on this PR's head SHA label Nov 26, 2026
@github-actions

Copy link
Copy Markdown

SPOC bench: PASS

Campaign verdict: PASS: 55 pass, 0 fail, 16 info, 0 blocked, over 34 test cases.

Commit 4d88d18, job failure. Record in the run summary; campaign folder (report.html and figures) in its artifacts.

@github-actions github-actions Bot removed the spoc-run Maintainer reviewed the diff: run the SPOC bench campaign on this PR's head SHA label Nov 26, 2026
@luizvilla
luizvilla merged commit ec6461e into main Nov 26, 2026
4 of 5 checks passed
@luizvilla
luizvilla deleted the bump/zephyr-4.4.2 branch November 26, 2026 10:38

This branch had an error being deployed

1 failed deployment
spoc-bench — 4d88d182 Deployed Nov 26, 2026 by luizvilla via bench #11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants