PCB Placement Cleanup


Final routing-readiness placement pass — full placement permission
The user explicitly authorizes moving any components needed to proceed to routing. Mutate placement only; do not route.
Required outcomes
  1. Rebuild the USB corridor so the deterministic USB-C breakout can succeed:
    • Keep J1 at the bottom edge.
    • Clear an unobstructed 3–5 mm inward corridor from J1 D+/D− pads.
    • Place U10 close to the end of that corridor, oriented flow-through.
    • Place R32/R33 immediately MCU-side of U10.
    • Move R18/R19, F1, D1, and other USB power/CC parts laterally out of the data-pair corridor while retaining short power/protection paths.
  2. Eliminate the remaining U5/C2/C25 switching-stage finding. You may move the complete U5/L1/C1/C2/C25 cluster and nearby passives.
  3. Reorganize any other clusters necessary for routing corridors, while preserving:
    • J1 bottom edge, MK1 top acoustic edge;
    • separate U1 BLE and AE1 Wi-Fi antenna perimeter sectors and keepouts;
    • J2/J3 service access and rear battery projection.
  4. Finish with zero body overlaps, zero out-of-bounds, zero edge/keepout violations, and zero switching-power-stage errors.
  5. Run routing preflight. The MK1 same-net overlapping GND-pad advisory and U2 VSS_2 via-at-SMD info may remain if no real footprint defect is present.
Stop condition
Make mutations immediately and settle after one full correction pass plus at most two targeted convergence passes. Report exact coordinates for J1/U10/R32/R33 and any remaining blockers. Do not route.
I’ll rebuild the USB/data corridor and power cluster in one deterministic pass, then use at most two targeted overlap/power-stage convergence passes before the final placement checks and routing preflight. No copper will be added.
The USB corridor is now structured correctly. I’m using the first convergence pass to pull the aligned output-cap bank below U5/L1, clearing LX2 and the remaining body conflicts without touching anchors or RF.
Completed one full correction pass plus two targeted convergence passes. The USB data corridor is cleared and all switching-power-stage findings are zero; no routing was performed.
Key coordinates
  • J1: (0, −24.65 mm)
  • U10: (0, −16.00 mm), 270°
  • R32: (−0.95, −12.80 mm), 90°
  • R33: (+0.95, −12.80 mm), 90°
Remaining blockers
  • C2 ↔ U4 overlap: <0.01 mm²
  • C5 ↔ U4 overlap: 0.39 mm²
  • R18 ↔ U4 overlap: 0.12 mm²
  • R18 pad-access warning
  • Preflight: C5/U4 overlapping pins on different nets
  • Preflight: C2/U4 overlapping same-net GND pins
  • Allowed advisories remain: MK1 same-net GND-pad overlap and U2 VSS_2 via-at-SMD
No out-of-bounds, edge, keepout, or switching-stage violations remain. Routing is still blocked by the U4 local overlaps.

Firmware Getting Started
Toolchain
  • Nordic nRF Connect SDK with Zephyr RTOS.
  • USB device classes: MSC plus MCUboot/DFU strategy appropriate to the release process.
  • Audio: nRF PDM driver, fixed-point Opus library/configuration, littlefs or a NAND-aware custom log filesystem.
  • Factory programming: install and verify the initial bootloader/application over SWD before relying on USB DFU.
Pin Map

Table


FunctionU1 pin
PDM clockP0.13
PDM dataP0.14
T5838 THSEL/configP0.15
T5838 WAKEP0.16
SPI NAND SCKP0.20
SPI NAND MOSIP0.21
SPI NAND MISOP0.22
NAND A CSP0.23
NAND B CSP0.24
Fuel-gauge SDA/SCLP0.26 / P0.27
Fuel alertP0.28
Charger CHG/PGOODP0.29 / P0.30
USB current selectP0.31
ButtonP0.11
RGB red/green/blueP0.06 / P0.07 / P0.08
USBD+, D−, VBUS
LF crystalP0.00 / P0.01
Debug/resetSWDIO, SWDCLK, P0.18/nRESET
Startup Sequence
  1. Start clocks and LF crystal; restore or validate wall-clock state.
  2. Initialize GPIOs with LED outputs low and charger current select low.
  3. Initialize fuel gauge and battery policy.
  4. Scan/mount NAND, load bad-block table, recover interrupted clip metadata.
  5. Initialize microphone translation and T5838 configuration.
  6. Initialize PDM and Opus frame pipeline.
  7. Initialize USB; enable USB500 mode only after permitted enumeration.
  8. Enter idle/AAD state or resume recording state as policy requires.
Recording State Machine
  • BOOT: validate battery, time, storage, and last clip.
  • IDLE_AAD: microphone AAD active, MCU asleep, circular buffer not yet capturing continuous PCM.
  • LISTEN_BUFFER: on acoustic wake, run low-power PDM and continuously encode/store the newest 10 seconds in RAM.
  • RECORDING: first button press freezes/commits the current pre-trigger frames, opens a clip, and appends new Opus frames.
  • FINALIZE: second press writes duration, timestamps, CRC/index metadata, then atomically closes the file.
  • USB_EXPORT: recorder filesystem protected from concurrent modification; host sees a stable snapshot/read-only volume or recorder unmounts it.
  • DFU: bootloader update path; retained clips remain outside firmware-update regions.
  • LOW_BATTERY: finalize any active clip, reduce LED/BLE activity, then enter safe shutdown policy.
Buffering
At 16 kbps, 10 seconds is ~20 kB plus frame headers. Use a circular array of encoded 20 ms Opus frames and timestamps. Do not allocate 10 seconds of raw PCM.
T5838 Notes
  • Follow the required clock transitions when entering/exiting AAD modes.
  • Use WAKE as an interrupt input.
  • Verify polarity/direction through TXU0202 channels: MCU clock/control A→B, microphone data/wake B→A.
USB Current Policy
USB_CURRENT_SELECT=0 selects the charger’s 100 mA mode. Drive it high only after the USB stack determines the host/source allows the higher current mode. System load has priority through the charger power path; charging current automatically reduces under load.
USB Hardware Segments
U1 D+/D− connect to USB_DP_MCU/USB_DM_MCU, then R32/R33 (27 Ω), then USB_DP_PROTECTED/USB_DM_PROTECTED, the U10 ESD array, and finally USB_DP_CONN/USB_DM_CONN at J1. Keep the resistors close to U1 during PCB placement.
LED Policy
  • Charging: amber/yellow pulse or steady state.
  • Charged: green, time-limited to save energy.
  • Recording: red periodic pulse or steady state according to legal/UX requirements.
  • Low battery: red short periodic flash.
  • Keep LED off during quiet idle except for explicit user feedback.
Timekeeping
Retain epoch and calibration data in nonvolatile metadata. Acquire absolute time from USB or BLE and run from LFCLK while battery remains connected. Mark filenames as unsynchronized if valid time has not been received.
NAND Integrity
Enable internal ECC, preserve factory bad-block markers, build a persistent bad-block table, and use atomic/power-fail-safe clip metadata. Never erase a block before its factory marker has been captured.
  • Toolchain

  • Pin Map

  • Startup Sequence

  • Recording State Machine

  • Buffering

  • T5838 Notes

  • USB Current Policy

  • USB Hardware Segments

  • LED Policy

  • Timekeeping

  • NAND Integrity