0.13.40 local hardware validation

October 26, 2026. Branch codex/waveshare-gps-hardware. This is local development; it does not announce a public flasher release. The preceding real located Wi-Fi/BLE CSV evidence is recorded in 0.13.39 validation.

RTC finding

The owner confirmed both connected non-C Waveshare AMOLED 1.75 boards are powered by USB only, with no battery. The standard board reported PCF85063 oscillator loss after USB removal. Both RTCs accepted UTC synchronization, read back valid time and advanced by two seconds across a two-second check. Hardware time was within two seconds of the host; the saved local offset was UTC−04:00 for New York on the test date. A fresh onboard GPS fix also successfully wrote the GPS board's RTC through gps clock sync, with oscillator-loss clear on readback.

The schematic supplies VCC-RTC through AXP2101 RTCLDO. With neither USB nor battery, there is no retention supply. Firmware cannot count elapsed time in that state. 0.13.40 restores an unset clock once a fresh validated GPS fix is available; it does not overwrite an already-valid clock automatically. The manual touch sync waits for a free I2C transaction slot and reports the result. Native tests cover unset-clock recovery and preserving an already-valid clock. Battery-backed shutdown retention remains untested because no batteries are attached.

After the owner reported reconnecting the GPS board, a read-only check found the RTC valid, oscillator-loss clear, and time advancing two seconds over two seconds. It was three seconds behind the host UTC clock; the saved offset remained −240 minutes. GPS reported a fresh fix using 20 satellites. No USB time-setting or manual GPS-sync command was sent during this check. The observed uptime continued from the latest flash, so the check establishes current clock/GPS health but does not independently capture an invalid-RTC → automatic-recovery cold-boot transition.

Optional external GPS on the standard board

The standard waveshare_175 image now offers SYSTEM → GPS setup. It defaults off, receives checksum-validated NMEA over UART1 without attaching a TX pin, and accepts only the documented free header GPIOs. Settings are saved atomically in NVS. The onboard waveshare_175_gps LC76G driver remains separate.

Physical checks on the standard board:

The UART listener releases its ring buffer and task during network connections, then resumes using its saved settings after disconnect/failure. Fix state is cleared across the pause. The Wi-Fi memory check runs after the resident TCP/IP initialization so subsequent joins use the same memory accounting as the first. TLS buffers use PSRAM; allocation failures still stop the operation safely.

Actual reception from a user-wired external GPS is not validated by the native UART fixtures. Module voltage, baud and NMEA output must match the external GPS guide. Live authenticated WiGLE/WDGoWars uploads and moving-route GPS performance also remain unverified.

Automated validation

All native test programs below compile with assertions enabled (-UNDEBUG):

The UART work exposed assertion elision in three recently added wardrive test scripts. Their builds now explicitly use -UNDEBUG; the session, radio and uploader fault tests all passed with assertions executing.

Builds passed for waveshare_175, waveshare_175_gps, watcher and waveshare (1.75C), using the isolated Arduino 3.0.7 / IDF 5.1 package directory. Both non-C applications fit the 4 MiB OTA slots. App-only writes at 0x10000 were verified by esptool; factory backups, NVS, internal files and SD contents are preserved. Private diagnostic logs and captures remain outside tracked/public content.