Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/project-snapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@

- `tests/`:`184` 个可执行 Python 测试文件,分布在 `85` 个目录;`253` 个 evidence JSON。
- `patches/`:`17` 个补丁组,`386` 个 patch 文件。
- 文档:`762` 个 Markdown 页面;除本生成页外共 `84312` 行。
- 文档:`762` 个 Markdown 页面;除本生成页外共 `84337` 行。

## 文档与测试

Expand Down
2 changes: 1 addition & 1 deletion docs/project-status.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

日期:`2026-11-30`

Core2、CoreS3、Cardputer、Cardputer-ADV、Dial、StickC Plus SE、Atom Lite、Atom Matrix、Atom Matrix v1.1、AtomU、Atom Echo、M5Stick、StickT2、AtomS3、AtomS3R、Atom EchoS3R、AtomS3U、AtomS3 Lite、AtomS3R-CAM、AtomS3R-M12、Basic v2.7、NanoC6、Nesso N1、PaperColor、PaperDIY、PaperMono、PaperS3、StackChan、StamPLC、StickC、StickC Plus、StickC Plus2 与 StopWatch 的普通 Device Service 会话在源码中默认使用原生 `esp32sim`。
Core2、CoreS3、Cardputer、Cardputer-ADV、Dial、StickC Plus SE、Atom Lite、Atom Matrix、Atom Matrix v1.1、AtomU、Atom Echo、M5Stick、StickT2、AtomS3、AtomS3R、Atom EchoS3R、AtomS3U、AtomS3 Lite、AtomS3R-CAM、AtomS3R-M12、Basic v2.7、NanoC6、Nesso N1、PaperColor、PaperDIY、PaperMono、PaperS3、StackChan、StamPLC、StickC、StickC Plus、StickC Plus2 与 StopWatch 的普通 Device Service 会话在源码中默认使用原生 `esp32sim`。 PaperS3 的原生 ET047TC1 模型支持 FastEPD 流水行扫描和逐像素驱动积分。静默或面板断电时提交可见帧,末行锁存仍有待真机验证。见[末行锁存缺口](runtime-model-gap-register.md#papers3fastepd-最后一行锁存)。
显式 `runtime=qemu` 和旧版身份、Unit、运行时环境、NVS 与文件系统夹具使用 QEMU 路径。StickS3 的普通离线会话使用 esp32sim。原版配网审查继续使用显式 `qemu-wifi`,Wi-Fi monitor 夹具使用 QEMU。讯飞 IAT 和 PC 助手仍待验证。StopWatch 专用网络和已保存托管审查沿用原有路径。
Tab5 的普通 Device Service 会话也默认使用 esp32sim,支持 GT911/ILI9881C
与 ST7123。在经同固件对照验收的 UIFlow2 v2.5.4 和 Maker Fighter 1.4
Expand Down
7 changes: 7 additions & 0 deletions docs/runtime-model-gap-register.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,13 @@ side-channel、电气行为和真机仍为独立 `NOT RUN`。样本自身仍因
2026-11-27 的[同固件对照](esp32sim-backend-benchmark-2026-11-27.md#旧问题复验)
记录 esp32sim 的独立执行结果。旧 QEMU/esp-emu 的失败和原运行时关闭条件保留。

### PaperS3:FastEPD 最后一行锁存

原生 esp32sim 的 ET047TC1 模型允许符合 FastEPD 时序的最后一行 DMA 数据在下一次
SPV、面板断电或 2 ms 虚拟等待结束时生效。该兼容处理仍缺真机时序证据。
关闭条件是在 ET047TC1 真机上捕获最后一行的 SPV、LE、DMA 与电源切换,
并核对末行显示效果。虚拟帧验证不覆盖物理反射率。

### PaperS3:原厂应用间歇延后读取 GT911

PaperS3 Factory V0.5 原 BIN 在浏览器 QEMU WASM 中已出现完整坐标与松手读回,
Expand Down
18 changes: 18 additions & 0 deletions docs/validation-ledger.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ PASS 不代表本次检出重跑;材料、哈希和显式审计入口见[证
一次 PASS 只覆盖对应 commit、固件 SHA、runtime/profile、设备和检查项;
不能把同 SoC 的另一台设备、另一个安全模式或物理 RF 行为自动视为通过。

## 2026-12-01 PaperS3 FastEPD refresh

Virtual-device validation exercised the FastEPD panel path on fork PR #3
head `84f3c642bb48e98cee8711a27e156ce1969622de`, with the same tree as
the pinned merge commit `aafa4dfa7da9e36e9deacdbf2683b47d7d4588c9`. The replay executable SHA-256
was `764d8bac547cc6ef429beabf0596cb270267cc8e97d7c94528bbbf4f2d3703ee`.
PaperS3 passed 9/9 with 19 byte-identical baseline PNG pairs. PaperDIY
passed 6/6 with 16 byte-identical pairs. Rust tests passed 358 esp-soc
and 336 esp32s3, including all four independent review suites.

DeskFolio 2.1.0 (composed image SHA-256
`d9fb632c7af8dff19a5a5b52198f882a1d21b75cb91270c91b45c8750d0fac30`)
and 2.2.0 (merged image SHA-256
`cc626c86a537cbe7175e187d2a6f344f9b24ffbd81666c62dc70b55aadfb916b`)
showed the language picker. A tap at (270, 465) advanced each guest to
Wi-Fi setup. Both panel publication counters advanced from one to two.
Both isolated sessions were stopped with `purge=0`.

## 2026-12-01 esp32sim guest CPU progress

Virtual-device validation used the native Device Service pin
Expand Down
6 changes: 3 additions & 3 deletions scripts/esp32sim-runtime.lock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"repository": "https://github.com/m5agent/esp32sim.git",
"ref": "refs/tags/m5-milestone-issue-345-20261201",
"commit": "f0c9dc2cb9f8aeaa2744c01e1dd859ab5d2937ea",
"ref": "refs/tags/m5-milestone-papers3-fastepd-20261201",
"commit": "aafa4dfa7da9e36e9deacdbf2683b47d7d4588c9",
"roms": {
"esp32s3_rev0_rom.elf": "c0ce0f338d1de1bdc6efbef1591779a2a42c1ab7d759d3c6ae8ae63a7dd34cfd",
"esp32p4_rev0_rom.elf": "948f2c7d108d04a9c3a982f9c1c498fb17f2c4a68abc51f87782592034d7ce44",
Expand Down Expand Up @@ -36,7 +36,7 @@
"sha256": "73fba21169b8a518b7cc9f46681446f8a1e1b769a9084301d7501a2347b487c2"
}
},
"service_patch_sha256": "3696dc38112cd257883564b0506f96a284a0aa6addf20a55a7782fd7cf87de41",
"service_patch_sha256": "89b4ff2bedfadfe3c6cc198d244a7388d81c14313e1409c25ebe87ce10a6548b",
"service_features": [
"state-snapshot",
"flash-snapshot",
Expand Down
18 changes: 9 additions & 9 deletions scripts/esp32sim-service-control.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/esp-soc/src/board.rs b/esp-soc/src/board.rs
index 130314af..216df0c3 100644
index e2e1feff..cbd5f2c2 100644
--- a/esp-soc/src/board.rs
+++ b/esp-soc/src/board.rs
@@ -242,6 +242,8 @@ pub trait BoardModel {
@@ -243,6 +243,8 @@ pub trait BoardModel {
/// parse time so an unknown verb stays a script error.
fn board_command(&mut self, _cycle: VirtualCycle, _verb: &str, _args: &[&str]) -> bool { false }
fn accepts_command(&self, _verb: &str) -> bool { false }
Expand Down Expand Up @@ -112,7 +112,7 @@ index f47361bd..cf03e9f1 100644
for (name, leds, updates) in board.led_grids() {
nodes.push((format!("/board/leds/{name}"), led_state(leds, updates)));
diff --git a/esp-soc/src/machine/web.rs b/esp-soc/src/machine/web.rs
index 2746d851..780688f5 100644
index 98d57252..93bb323c 100644
--- a/esp-soc/src/machine/web.rs
+++ b/esp-soc/src/machine/web.rs
@@ -109,6 +109,19 @@ impl<S: Soc> Machine<S> {
Expand All @@ -135,7 +135,7 @@ index 2746d851..780688f5 100644
pub(super) fn poll_camera_input(&mut self) {
if let Some(input) = &self.camera_input {
let picture = input.lock().unwrap().take();
@@ -439,6 +452,30 @@ impl<S: Soc> Machine<S> {
@@ -448,6 +461,30 @@ impl<S: Soc> Machine<S> {
let args: Vec<_> = args.split_ascii_whitespace().collect();
let op = field("op").unwrap_or_default();
let ok = match (op.as_str(), args.as_slice()) {
Expand Down Expand Up @@ -166,7 +166,7 @@ index 2746d851..780688f5 100644
("hello", []) => {
let board = self.bus.board_ref().name();
w.send_text(&format!(r#"{{"t":"service","id":{id},"ok":true,"board":"{board}","protocol":1}}"#));
@@ -478,6 +515,22 @@ impl<S: Soc> Machine<S> {
@@ -487,6 +524,22 @@ impl<S: Soc> Machine<S> {
true
} else { false }
}
Expand All @@ -189,7 +189,7 @@ index 2746d851..780688f5 100644
("gpio", [level]) if matches!(*level, "0" | "1") => {
if let Some(pin) = self.bus.board_ref().named_pin("g0") {
self.bus.gpio_set_input(pin, *level == "1");
@@ -493,12 +546,35 @@ impl<S: Soc> Machine<S> {
@@ -502,12 +555,35 @@ impl<S: Soc> Machine<S> {
("usb-report", bytes) if matches!(bytes.len(), 3 | 8) => self.bus.board_command(&op, &args),
("pwrkey" | "battery" | "imu" | "als" | "key" | "key-edge" | "module-llm" |
"contact" | "usb-hid" | "usb-unplug", _) => self.bus.board_command(&op, &args),
Expand Down Expand Up @@ -349,15 +349,15 @@ index b4807571..0e51ece6 100644
fn board_ref(&self) -> &dyn BoardModel { &*self.board }
fn i2s_input(&mut self, port: usize) -> Option<&mut esp_periph::i2s::PcmInput> { if port == 0 { Some(self.periph.optional.i2s0.rx_input()) } else { None } }
diff --git a/esp32s3/src/board/cores3.rs b/esp32s3/src/board/cores3.rs
index b42b5c5b..f02ec9d5 100644
index c4e59b44..e5416479 100644
--- a/esp32s3/src/board/cores3.rs
+++ b/esp32s3/src/board/cores3.rs
@@ -473,6 +473,7 @@ impl BoardModel for Cores3 {
@@ -499,6 +499,7 @@ impl BoardModel for Cores3 {
fn name(&self) -> &'static str {
if self.stackchan.is_some() { "m5stack-stackchan" } else { "m5stack-cores3" }
}
+ fn servo_angles(&self) -> Option<[f64; 2]> { self.stackchan.as_ref().map(StackChan::angles) }
fn uses_uart_pins(&self) -> bool { self.stackchan.is_some() || self.module_llm.is_some() || self.finger.is_some() || self.fingerprint2.is_some() || self.uart_example.is_some() || self.modbus.is_some() || self.rui3.is_some() || self.rs232.is_some() || self.nbiot.is_some() || self.hw.borrow().qrcode.is_some() }
fn uses_uart_pins(&self) -> bool { self.stackchan.is_some() || self.module_llm.is_some() || self.finger.is_some() || self.fingerprint2.is_some() || self.uart_example.is_some() || self.modbus.is_some() || self.rui3.is_some() || self.rs232.is_some() || self.mqtt_unit.is_some() || self.nbiot.is_some() || self.zigbee.is_some() || self.uhf_rfid.is_some() || self.hw.borrow().qrcode.is_some() }
fn uart_tx(&mut self, cycle: u64, route: esp_soc::uart::UartRoute, byte: u8) {
if matches!(route.port, 1 | 2) && route.transmits_on(cores3_qrcode::TX_PIN) && route.matches_baud(cores3_qrcode::BAUD) {
diff --git a/esp32s3/src/board/stackchan.rs b/esp32s3/src/board/stackchan.rs
Expand Down
Loading