ShiboSoftwareDev/am69-cm5

A 55×40 mm 10-layer CM5 carrier board integrating an AM69A98 SoC, 8‑GiB LPDDR4, 32‑GB eMMC, CM5 connectors, clocking, extensive decoupling/EMI filtering, and HDI DDR/ground escape routing.

Version
0.0.7-engineering-draft-20261107-manual-ddr0
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone ShiboSoftwareDev/am69-cm5  # download the package files into ./am69-cm5
tsci add ShiboSoftwareDev/am69-cm5    # add it to your project as @tsci/ShiboSoftwareDev.am69-cm5

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

components/shared/control/STM32G031K6U6.tsx

import type { ChipProps } from "@tscircuit/props"

// ST DS12992 Rev4 Table12 / Figure8, UFQFPN32. GPIO aliases are explicit.
const pinLabels = {
  "pin1": "PB9",
  "pin2": "PC14",
  "pin3": "PC15",
  "pin4": "VDD_VDDA",
  "pin5": "VSS_VSSA",
  "pin6": "NRST",
  "pin7": "PA0",
  "pin8": "PA1",
  "pin9": "PA2",
  "pin10": "PA3",
  "pin11": "PA4",
  "pin12": "PA5",
  "pin13": "PA6",
  "pin14": "PA7",
  "pin15": "PB0",
  "pin16": "PB1",
  "pin17": "PB2",
  "pin18": "PA8",
  "pin19": "PA9",
  "pin20": "PC6",
  "pin21": "PA10",
  "pin22": "PA11",
  "pin23": "PA12",
  "pin24": "PA13",
  "pin25": "PA14_BOOT0",
  "pin26": "PA15",
  "pin27": "PB3",
  "pin28": "PB4",
  "pin29": "PB5",
  "pin30": "PB6",
  "pin31": "PB7",
  "pin32": "PB8",
  "pin33": "EP_GND"
} as const

// ST DS12992 Rev4 Figure46: perimeter 0.65x0.25, outside span5.50,
// pitch0.50; exposed land3.50x3.50. Paste is an engineered four-window
// stencil (64% EP coverage); assembly approval remains a release check.
export function STM32G031K6U6(props:ChipProps<typeof pinLabels>) {
  return <chip manufacturerPartNumber="STM32G031K6U6" pinLabels={pinLabels}
    pinAttributes={{pin4:{requiresPower:true},pin5:{requiresGround:true},pin33:{requiresGround:true}}}
    footprint={<footprint>
      {Array.from({length:32},(_,i)=>{
        const side=Math.floor(i/8),t=i%8
        const x=side===0?-2.425:side===1?-1.75+t*.5:side===2?2.425:1.75-t*.5
        const y=side===0?1.75-t*.5:side===1?-2.425:side===2?-1.75+t*.5:2.425
        return <smtpad key={i} portHints={[`pin${i+1}`]} shape="rect" pcbX={x} pcbY={y}
          width={side%2?.25:.65} height={side%2?.65:.25} solderMaskMargin={.05} solderPasteMargin={0} />
      })}
      <smtpad portHints={["pin33"]} shape="rect" pcbX={0} pcbY={0} width={3.5} height={3.5} noSolderPaste solderMaskMargin={0} />
      {[-.875,.875].flatMap(x=>[-.875,.875].map(y=><solderpaste key={`${x},${y}`} shape="rect" pcbX={x} pcbY={y} width={1.4} height={1.4} />))}
      <courtyardrect width={6} height={6} />
      <silkscreencircle pcbX={-2.65} pcbY={2.65} radius={.1} />
    </footprint>} {...props} />
}