v2n-gd32-bridge-ping
PING + GET_VERSION + GET_BUILD_ID round-trip against the on-module GD32G553 supervisor MCU. Cross-checks both transports — SPI fast path and I²C management path — when wired.
Source: examples/v2n/v2n-gd32-bridge-ping/.
What it does
- Opens
BRD_I2Cand the GD32 SPI bus. - Calls
gd32g553_init(...)— the driver issuesPINGthenGET_VERSIONand refuses to proceed on a major-version mismatch. - Pings each transport explicitly to confirm both are functional.
- Reads the firmware build-id (truncated SHA-1 of the bridge firmware ELF) — useful for production-test logging.
- Reads the cached DA9292 PMIC status byte forwarded by the GD32.
board.yaml
schema_version: 2
som:
sku: E1M-V2N101
carrier:
name: E1M-X-EVK
cores:
m33_sm:
os: zephyr
app: ./src
peripherals: [spi, i2c]
chips:
- gd32g553
diagnostics:
log_level: info
Expected output
[gd32-bridge-ping] V2N supervisor MCU smoke test
[gd32-bridge-ping] init OK; firmware v0.1.0
[gd32-bridge-ping] SPI ping -> 0
[gd32-bridge-ping] I2C ping -> 0
[gd32-bridge-ping] firmware build-id: 0000000000000000abcd
[gd32-bridge-ping] DA9292 cached status: 0xFF
[gd32-bridge-ping] done
The PMIC status byte 0xFF is the firmware's "no PMIC poll has populated the cache yet" sentinel.
See also
<alp/chips/gd32g553.h>— host driver API- GD32 bridge protocol
- Tutorial 5 — supervisor MCU bridge
Questions about this page? Discuss in Community Forum