README.md
# Core1106 RV1106G2/G3 carrier
This project is a four-layer, 100 mm × 72 mm tscircuit carrier for the 30 mm Luckfox Core1106 module. It targets the Core11060208 (RV1106G2, 128 MB DDR3L) and uses the official 112-pad module footprint and pin assignment. The related Core11061208, Core11060408, and Core11061408 variants use the same Core1106 family form factor; confirm wireless/antenna requirements and the intended software image before substitution.

The design is an engineering prototype, not a tested product. The generated PCB passes tscircuit's placement, clearance, and autorouter checks, but USB, MIPI CSI, SDMMC, and Ethernet require a final signal-integrity/DFM pass in KiCad against the selected fabricator's real four-layer stack-up before ordering boards.
## Board features
- USB-C 2.0 device/recovery/flash connector plus a dedicated 5 V JST-PH power input
- Reset and recovery buttons, one user LED, and rail test points
- Efficient 2 A TLV62569 buck for the 3.3 V peripheral rail and a dedicated AP2112K 1.8 V LDO
- 24-pin, 0.5 mm FFC connector carrying six MIPI CSI differential pairs, camera control, and camera power
- microSD socket with series resistors, pull-ups, card detect, and local decoupling
- Raspberry-Pi-style 2×20 GPIO header exposing 5 V, regulated 3.3 V, UARTs, I²C, SPI, PWM, JTAG-capable pins, and GPIO
- JST-SH 4-pin I²C and JST-SH 8-pin SPI-display connectors with exact JLCPCB footprints
- HanRun HR911105A 10/100BASE-T RJ45 jack with integrated magnetics and exact JLCPCB footprint
- Separate ADC/recovery, analog audio, I²S, and optional RTC battery headers; ADC, audio, and RTC battery headers are DNP by default
- USB and Ethernet ESD protection, resettable input fuses, and reverse-current-blocking ideal diodes
- Four 3.2 mm mounting holes and ground pours on all four copper layers
## Power architecture
USB VBUS passes through a 1.1 A resettable fuse and LM66100 ideal-diode/reverse-current-blocking stage to `SYS5V`, which feeds Core1106 pins 79–81. A second 1.1 A fuse and LM66100 allow the dedicated 5 V `J_PWR` input to feed the same rail without back-powering USB. The Core1106 documentation specifies a 4.6–5.2 V input and recommends a supply capable of 1 A. A 10 kΩ/18 kΩ divider drives `USB_VBUSDET`.
USB-C default-current capability depends on the attached source and can be insufficient for worst-case Core1106 plus peripheral load. Use `J_PWR` with a regulated 5 V supply capable of at least 1.5 A for development and sustained peripheral loads; the board-side resettable fuse still limits the protected branch.
`SYS5V` feeds a TLV62569 buck configured for approximately 3.32 V (`EXT_3V3`); that rail feeds an AP2112K-1.8 regulator (`EXT_1V8`). Peripheral loads use these dedicated rails. The Core1106 module's own 3.3 V and 1.8 V outputs are limited to 300 mA each by the official guidance and are exposed only at test points in this design.
The RTC rail is diode-ORed from the module's 3.3 V output and the optional two-pin battery header. Confirm the battery chemistry and acceptable RTC voltage before fitting a cell.
## Memory
No external RAM chip is required on this carrier. The RV1106 device used by Core1106 has built-in 16-bit DDR3L, and the memory capacity is fixed by the selected module variant. The Core11060208/Core11061208 G2 variants have 128 MB; the Core11060408/Core11061408 G3 variants have 256 MB. Choose a different Core1106 module if more RAM is needed rather than adding a discrete memory device to this PCB.
## USB mode
The USB-C receptacle is configured as a sink/device with 5.1 kΩ pull-downs on CC1/CC2. It supports power, USB device data, recovery, and image flashing. It does not source VBUS and is not wired as a USB host port.
## Camera FFC pinout
`J_CAM` is a 24-contact, 0.5 mm-pitch custom pinout using the imported Hirose FH12-24S-0.5SH(55) footprint. It is not claimed to match any off-the-shelf camera cable. Pins 25/26 in the tscircuit component are the two mechanical anchor pads. The connector is rotated 180° on the PCB; confirm cable contact side and pin-1 orientation against the chosen camera assembly.
| Pin | Signal | Core1106 pin |
|---:|---|---:|
| 1 | GND | — |
| 2 / 3 | MIPI_CLK1_N / MIPI_CLK1_P | 1 / 2 |
| 4 | GND | — |
| 5 / 6 | MIPI_D3_N / MIPI_D3_P | 3 / 4 |
| 7 | GND | — |
| 8 / 9 | MIPI_D2_N / MIPI_D2_P | 5 / 6 |
| 10 | GND | — |
| 11 / 12 | MIPI_D1_N / MIPI_D1_P | 7 / 8 |
| 13 | GND | — |
| 14 / 15 | MIPI_CLK0_N / MIPI_CLK0_P | 9 / 10 |
| 16 | EXT_3V3 | — |
| 17 / 18 | MIPI_D0_N / MIPI_D0_P | 11 / 12 |
| 19 | EXT_1V8 | — |
| 20 | CAM0_SCL | 16 |
| 21 | CAM0_SDA | 17 |
| 22 | CAM0_RST | 18 |
| 23 | CAM0_MCLK | 19 |
| 24 | GND | — |
Camera control signals are in the Core1106's 1.8 V I/O domain. Verify the selected sensor module, FFC contact orientation, mating connector, rail current, and power-up sequence before assembly.
## 40-pin GPIO header
The physical numbering follows a conventional 2×20 header. Names describe the selected useful mux function; Rockchip pinmux/device-tree configuration is still required.
| Pin | Signal | Pin | Signal |
|---:|---|---:|---|
| 1 | EXT_3V3 | 2 | SYS5V |
| 3 | I2C1_SDA | 4 | SYS5V |
| 5 | I2C1_SCL | 6 | GND |
| 7 | PWM3/GPIO0_A2 | 8 | UART0_TX |
| 9 | GND | 10 | UART0_RX |
| 11 | GPIO0_A3 | 12 | GPIO0_A4 |
| 13 | PWM0/GPIO1_A2 | 14 | GND |
| 15 | I2C0_SCL/UART1_TX | 16 | I2C0_SDA/UART1_RX |
| 17 | EXT_3V3 | 18 | UART4_RX |
| 19 | SPI0_MOSI | 20 | GND |
| 21 | SPI0_MISO | 22 | UART4_TX/SPI1_CS1 |
| 23 | SPI0_CLK | 24 | SPI0_CS0 |
| 25 | GND | 26 | SPI0_CS1 |
| 27 | I2C2_SDA/UART3_RX | 28 | I2C2_SCL/UART3_TX |
| 29 | UART2_TX/JTAG_TCK | 30 | GND |
| 31 | UART2_RX/JTAG_TMS | 32 | UART3_TX/GPIO1_D0 |
| 33 | UART3_RX/GPIO1_D1 | 34 | GND |
| 35 | UART4_CTS/GPIO1_C7 | 36 | I2C3_SCL/UART5_TX/GPIO1_D3 |
| 37 | I2C3_SCL/UART0_RTS | 38 | I2C3_SDA/UART0_CTS |
| 39 | GND | 40 | EXT_3V3 |
## Dedicated connectors
| Connector | Part / default | Pinout |
|---|---|---|
| `J_PWR` | JST S2B-PH-SM4-TB(LF)(SN), JLCPCB C295747 | Regulated 5 V input, GND |
| `J_I2C` | JST SM04B-SRSS-TB(LF)(SN), JLCPCB C160404 | GND, EXT_3V3, I2C1_SDA, I2C1_SCL |
| `J_SPI_DISPLAY` | JST SM08B-SRSS-TB(LF)(SN), JLCPCB C160407 | GND, EXT_3V3, SPI0_CLK, SPI0_MOSI, SPI0_MISO, SPI0_CS0, GPIO0_A3/DC, GPIO0_A4/RESET |
| `J_ADC` | 1×4 header, DNP | GND, EXT_1V8, ADC0/RECOVERY, ADC1 |
| `J_AUDIO` | 1×6 header, DNP | GND, AC-coupled LINEOUT, MICBIAS, MIC0P, MIC0N, GND |
| `J_I2S` | 1×8 header | GND, EXT_3V3, SCLK, LRCK, MCLK, SDO3, SDO0, SDI0 |
| `J_ETH_PHY` | HanRun HR911105A, JLCPCB C12074 | FEPHY TX±/RX± into integrated magnetics; unused jack LEDs are NC |
| `J_RTC_BAT` | 1×2 header, DNP | BAT_POS, GND |
`J_ETH_PHY` is a board-edge RJ45 jack with integrated isolation magnetics. Core1106 FEPHY TX±/RX± pass through a four-channel low-capacitance Ethernet ESD array before the transformer inputs; both chip-side center taps are AC-grounded through `C_ETH_CT`, and the jack's chassis-ground node and shield tabs connect to PCB ground per the HanRun datasheet and Luckfox reference circuit. The two internal jack LEDs are intentionally left unconnected.
`J_SPI_DISPLAY` is intended for a 3.3 V SPI display cable. Configure SPI0 and the selected DC/reset GPIOs in the Rockchip pinmux/device tree, and verify the display's logic voltage, current, backlight requirements, and mating-cable pin order before connection. It does not supply 5 V or a dedicated backlight power rail.
## Build and export
Install dependencies and build the routed design:
```sh
npm install
npm run typecheck
npm run build
```
For a quick component-placement preview without routing:
```sh
npm run build:placement
```
The delivered `exports/` directory includes routed circuit JSON, SVG/PNG PCB previews, a placement preview, a readable netlist, Specctra DSN, KiCad PCB/schematic files, STEP, Gerbers, drill files, BOM, and pick-and-place data. The official Luckfox module and Pico Pi schematics are included in `reference/`.
## Mandatory pre-fabrication review
1. Select the PCB stack-up, calculate controlled-impedance widths/gaps, and retune USB to 90 Ω differential and MIPI CSI pairs to 100 Ω differential in KiCad.
2. Inspect every auto-routed high-speed path for reference-plane continuity, via count, pair spacing/skew, return vias, and connector escape geometry. Treat the generated routing as topology, not sign-off SI work.
3. Verify the exact USB-C, FFC, microSD, JST-SH, HR911105A, switch, and Core1106 footprints against current manufacturer drawings and perform a 1:1 paper/mechanical fit check.
4. Validate the TLV62569 switch-node/feedback loop layout and inductor/capacitor selections against the TI layout guidance; move these parts manually in KiCad if the generated routing is not compact enough.
5. Measure inrush, `SYS5V`, `EXT_3V3`, and regulator temperatures under maximum camera/display/microSD load. Do not assume a USB host will provide the required current; use `J_PWR` for high-load testing.
6. Verify ESD return paths, connector shield strategy, and chassis/logic-ground treatment for the intended enclosure and cable environment.
7. Run KiCad ERC/DRC using the fabricator's rules, inspect silkscreen, add any desired fiducials/test fixtures, and have an experienced PCB engineer review the design.
8. Configure the Rockchip pinmux/device tree so mutually exclusive alternate functions are not enabled at the same time.
## Official Luckfox resources
The `reference/` directory in the delivered package contains the files downloaded from the Luckfox Core1106 wiki and official Luckfox GitHub repository. See `OFFICIAL_REFERENCES.md` for filenames and source URLs.