A development board for the NXP i.MX RT1176 crossover MCU, modelled closely on the
MIMXRT1170-EVKB (Rev C3) so that EVKB software — USBHost_t36, the M2Radio Wi-Fi/BT
library, MipiDisplay and the NXP SDK board files — runs with the same pin assignments.
Where Nosh departs from the EVKB it is for JLCPCB availability or because an EVKB block was
not wanted; every departure is listed below. For what EVKB firmware has to change, see
docs/evkb-vs-nosh-firmware-porting.md.
Videos: Nosh on YouTube and Why I built it.
Status: schematic and PCB layout complete (KiCad 10, Kicad/): 6-layer JLCPCB stackup, fully
routed, DRC clean with schematic parity. The findings of the 2026-10-28 design review are closed
and merged to main on 2026-11-03 (decoupling moved to the chips, DC-jack OVP, reset supervisor,
RTC load caps, MIPI pair matching, ESD on the jacks, P-FET reverse-polarity switch and the rest;
see the git log). ERC is clean apart from the expected unconnected MCU balls and undriven-input
notes on open pins. The JLCPCB order files are in fab/; see Fabrication outputs.
Ordered 2026-11-03: JLCPCB Y95-2611336A, 5 PCBs + 2 assembled (settings in fab/README.md).
Bring-up (from 2026-11-16): two assembled boards run; the full record is
docs/bringup-2026-11-16.md. Working so far:
- Board 1: MCU, 128 MB SDRAM, QSPI boot, SWD and the J11 console; microSD; SGTL5000 line out; USB device (CDC) on J3 and USB host (HID) on J2; an IW416 M.2 card (Embedded Artists 1XK) with Bluetooth A2DP, Wi-Fi DHCP and lwIP TCP.
- Board 2: the RK055 MIPI panel and GT911 touch, including scanout under heavy SDRAM load at 16 and 32 bpp with no FIFO underruns; line in by a J8-to-J9 loopback recording; the RTC and the 32 kHz crystal; SW2 (ONOFF, including power-off and power-on) and SW3 (WAKEUP); the CM4 core.
- An application on board 2:
dj_deck(evkbexamples/audio), a one-deck DJ player on the RK055 with touch. It loads WAV, AIFF, FLAC and MP3 from the SD card into SDRAM and plays them with a scrolling waveform, beat grid, pitch fader, cue and scratch; an AUTO switch plays the next file in the folder, loaded early beside the playing track when both fit. An 8 s MP3 decodes in about 0.25 s after the decoder work of 2026-11-20 (bring-up sections 6y and 6z). AUTO has passed its QEMU gate but has not been tried by touch on the board yet. - Not yet tested: the power path under stress (eFuse trip, J3 and J4 together, the host-port current limit, the reset supervisor threshold) and low-power modes.
Known issue, the RTC runs slow. Y2 (32.768 kHz) measured −102 ppm (8.8 s/day): the RT1176 adds trimmable load capacitance of its own on RTC_XTALI/O, so the 10 pF C143/C144 over-load the 7 pF crystal. Firmware fixes it on the current boards: trim code 9 in IOMUXC_SNVS_GPR GPR34 plus +2 counts of SNVS LPCALB/HPCALB gives about −5 ppm (bring-up sections 6t and 6x); the core does not apply it yet. For the next order, see C143/C144 under Other parts worth checking.
| Block | Choice | Notes |
|---|---|---|
| MCU | MIMXRT1176DVMAA (rev-B DVMAB accepted alternate), MAPBGA-289 | 12-unit symbol generated from tools/data/*.json; KiCad stock footprint Package_BGA:MAPBGA-289_14x14mm_Layout17x17_P0.8mm (0.32 mm pads, EVKB uses 0.33 mm) |
| SDRAM | 2 × Alliance AS4C32M16SC-7TIN (512 Mb, 133 MHz) on SEMC, 32-bit, 128 MB | same JEDEC x16 TSOP-54 footprint and arrangement as the EVKB; 13 row × 10 column and a -7 speed grade, so the firmware SEMC setup changes: 10 column bits, 128 MB on chip select 0 and a 132 MHz SEMC clock, see "SDRAM configuration" below |
| Flash | Winbond W25Q512JVEIQ, 512 Mb QSPI, 3.3 V | FlexSPI1 port A (GPIO_SD_B2_06..11) |
| USB2 (OTG2) | micro-AB host/OTG port | the port USBHost_t36 drives; TPS2553 VBUS switch (~1.1 A) with hardware ID gating, RClamp0854P ESD, low-DCR 120 Ω VBUS bead; ≈4.6 V at the connector when sourcing 1 A from the jack |
| USB1 (OTG1) | USB-C device port | Rd-only UFP (500 mA), RClamp0854P ESD |
| M.2 Key E | uSDHC1 @ 1.8 V + LPUART2 | for u-blox MAYA-W1 / NXP IW416; 74AVC8T245 level shifters; TE 2199230-4 socket (EVKB part); retention nut H5, M2.5 SMT 2 mm (EVKB BH1) |
| microSD | uSDHC2 @ 3.3 V, TPD1E05U06 ESD diode on each of the six lines | its own bus — the EVKB shares one with the M.2 slot |
| LCD + touch | 40-pin 0.5 mm FPC (Würth 68714014022), MIPI DSI 2 lanes | Rocktech RK055HDMIPI4MA0 (720×1280, HX8394, GT911 touch on LPI2C5), EVKB J48 pinout and GPIO map |
| Audio | NXP SGTL5000 codec (QFN-20) on SAI1 + LPI2C5, 3.5 mm line-out and line-in jacks with TPD1E10B06 bidirectional ESD on the jack side of the coupling caps | the Teensy Audio Shield codec: Teensy Audio library AudioControlSGTL5000 and the NXP SDK sgtl5000 driver both apply; I2C 0x0A; same SAI1 pins as the EVKB codec |
| Power | 5 V barrel jack or USB-C → MP2143 3.3 V buck → TLV1117LV 1.8 V; AP2112K SNVS LDO | EVKB-style rail tree, on-chip DCDC for the core; 3 A polyfuse, SMAJ6.0A TVS, IRLML6401 P-FET reverse-polarity switch (gate to GND, ~50 mΩ; replaced the SS54 diode 2026-11-02 to lift the host-port VBUS), TPS259531 eFuse (5.7 V clamp, 3.6 A limit), jack rated 8 A; red power LED on +3V3 |
| Debug | 10-pin 1.27 mm SWD/JTAG header, reset / ONOFF / WAKEUP buttons, 2-way boot-mode DIP, user LED on GPIO_AD_04, 3-pin debug UART header J11 | JTAG on GPIO_LPSR_10..15, VTref = NVCC_LPSR (3.3 V); LPUART1 console on J11 |
| Expansion | none | the 2×10 header J10 was taken off during layout (commit a9f1b1f) to free routing room; see Expansion header (removed) |
| Mechanical | board outline = the RK055HDMIPI4MA0 adapter outline; 4 × M3 mounting holes H1–H4 on the adapter's standoff positions; 6 fiducials, FID1–FID3 on the top side and FID4–FID6 on the bottom for the bottom-side assembly pass | 3.53 mm plated holes with 5.6 mm GND pads (NXP's .635" M3 standoff land, as on the EVKB); hole coordinates from the adapter design files or measurement before layout |
Sheets: power (MCU supplies, DCDC, reset/boot), core (crystals, USB/MIPI supplies),
gpio (GPIO banks, flash, SWD, boot), usb, supply, sdram, m2, sdcard, lcd, audio.
All assignments are the EVKB's unless marked.
| Function | RT1176 pads / balls |
|---|---|
| USB host (OTG2) | USB2_DP/DN C17/C16, VBUS sense D16; USB_OTG2_ID GPIO_AD_08, USB_OTG2_OC GPIO_AD_06 |
| USB device (OTG1) | USB1_DP/DN E17/E16, VBUS sense D17 |
| M.2 SDIO (uSDHC1, 1.8 V) | GPIO_SD_B1_00..05; WIFI_RST_B GPIO_AD_16, WL_RST_B GPIO_AD_31, BT_RST_B GPIO_AD_15, WL_DEV_WAKE GPIO_AD_07, BT_DEV_WAKE GPIO_AD_28, BT_WAKE_B GPIO_AD_27, WIFI_WAKE_B GPIO_AD_29 |
| BT HCI UART (LPUART2) | GPIO_DISP_B2_10..13 |
| microSD (uSDHC2, 3.3 V) — Nosh | GPIO_SD_B2_00..05; SD_CD_B GPIO_AD_34, SD_PWREN_B GPIO_AD_35 |
| QSPI flash (FlexSPI1 A) | GPIO_SD_B2_06..11; read strobe (DQS) on GPIO_EMC_B2_18, see below |
| SDRAM (SEMC) | GPIO_EMC_B1/B2 |
| LCD (MIPI DSI) | D0 A8/B8, D1 A10/B10, CLK A9/B9; reset GPIO_AD_02, backlight GPIO_AD_30, panel power GPIO_DISP_B2_15, TE GPIO_AD_05 |
| Touch + codec I2C (LPI2C5) | GPIO_LPSR_04 SDA / GPIO_LPSR_05 SCL; touch INT GPIO_AD_00, touch RST GPIO_AD_01 |
| Audio (SAI1) | MCLK GPIO_AD_17, RX_SYNC/RX_BCLK GPIO_AD_18/19 (DNP links), RXD0 GPIO_AD_20, TXD0 GPIO_AD_21, TX_BCLK GPIO_AD_22, TX_SYNC GPIO_AD_23 |
| Boot mode | GPIO_LPSR_02/03 (DIP switch, 100 k pull-downs); BOOT_CFG pins GPIO_DISP_B1_06..11 / GPIO_DISP_B2_00..05 pulled down (100 k), so internal boot is from FlexSPI1 QSPI NOR |
| Debug console (LPUART1) | GPIO_AD_24 TXD / GPIO_AD_25 RXD on J11 (1 GND, 2 TXD, 3 RXD) |
| LPSPI3 — Nosh | not brought out (J10 removed); GPIO_DISP_B1_06 carries the BT_CFG0 strap (net LPSPI3_SOUT, R92), GPIO_DISP_B1_03..05 are unconnected |
| User LED | GPIO_AD_04 (GPIO9_IO03, the SDK's BOARD_USER_LED), high = on; direct drive, 1 k series, red 0603 (the EVKB buffers it with a BC817) |
The 2×10 2.54 mm header J10 (LPUART1, LPI2C5, LPSPI3, FLEXCAN3/LPUART12, four ADC/PWM pins) was taken off the board during layout (a9f1b1f, schematic cadd849) to free routing room around the MCU. The pins it used are now unconnected and available if a header is ever added back: GPIO_AD_10..13, GPIO_AD_26, GPIO_LPSR_00/01 (FLEXCAN3_TX/RX, PDM, MQS) and GPIO_DISP_B1_03..05. GPIO_DISP_B1_06 (LPSPI3_SOUT) stays a boot strap (BOOT_CFG1[0], R92) and must not be pulled up. NVCC_DISP1 is still 3.3 V. LPUART1 and LPI2C5 remain reachable on J11 and the LCD/codec nets.
| Block | EVKB | Nosh | Why |
|---|---|---|---|
| SDRAM | 2 × W9825G6KH-5I, 64 MB | 2 × AS4C32M16SC-7TIN, 128 MB | pin-compatible 512 Mb parts, 133 MHz (SEMC at 132 instead of 198 MHz); four ordered at JLCPCB on 2026-11-03 (C1349997) after the -6TIN pre-order (C1351095) stayed out of stock. W9825G6KH-6 (C62246, in stock) drops in for 64 MB at 166 MHz |
| USB ports | two micro-AB OTG ports | micro-AB host + USB-C device | one port is enough for the host library; USB-C for programming |
| USB VBUS switch | NX5P3090UK (0.4 mm WLCSP) | TPS2553DBVR (SOT-23-6), RILIM 22 k ≈ 1.1 A | no stock, hard package; same EN/FAULT/ILIM topology |
| SD card bus | shared with the M.2 slot | separate uSDHC2 | independent Wi-Fi and SD |
| M.2 BT HCI UART | needs NXP's "HCI UART rework" (mount the shifter-output 0 R links, cut the shared Arduino / Ethernet-PHY loads, set a jumper) | hard-wired, no rework | see below |
| QSPI flash | W25Q512NWEIQ (1.8 V) | W25Q512JVEIQ (3.3 V) | NVCC_SD2 at 3.3 V keeps the SD bus simple |
| NVCC_DISP1 | 1.8 V (RGMII Ethernet PHY on GPIO_DISP_B1) | 3.3 V | no Ethernet; the bank carries the BOOT_CFG / BT_CFG straps at 3.3 V |
| Boot configuration | DIP switch SW2 + 47 k pull-downs on the 12 BOOT_CFG pins | fixed 100 k pull-downs, no switch | always internal boot from QSPI NOR; reflash through the serial downloader (BOOT_MODE DIP) instead of changing boot devices |
| Arduino headers | four Arduino Uno R3 headers | none (J10 removed during layout) | the Arduino SPI pins (GPIO_AD_28..31) carry the M.2 and backlight signals here |
| LCD backlight / 2.8 V | on-board boost and LDO | none | the RK055HDMIPI4MA0 adapter (NXP SPF-39012) generates its own rails and drives its own backlight from the 5 V on FPC pins 39/40 — keep its jumpers J3/J5/J6 at the default 1-2 |
| LCD TE | 74AVC8T245 level shifter to GPIO_AD_05 | DNP 0 R | DSI video mode never uses TE; add a shifter if needed |
| Audio | WM8962 (0.5 mm WLCSP-49) with speaker outputs, electret mic and headphone jack with detect | SGTL5000 (QFN-20) with line out and line in | Teensy Audio library support; the QFN routes on standard 6-layer rules where the WLCSP needed via-in-pad; no mic, speakers or jack detect wanted |
| Not fitted at all | Ethernet (1G + 100M), CAN transceivers, camera, PMIC, LPC55 debug probe, PDM mics, accelerometer | — | use an external SWD probe; the FLEXCAN3 / PDM pins (GPIO_LPSR_00/01) are unconnected |
No M.2 HCI UART rework. NXP's EdgeFast Bluetooth hardware rework guide makes the EVKB + Murata M.2 combination work by mounting resistors, removing one and setting jumpers (its designators are from an earlier EVKB build; on the RevC3 files the module-to-MCU UART_RXD/UART_CTS links are R1901/R1902, 0 R DNP, and LPUART2's pins are shared with the Arduino header, the J57 FFC and the Ethernet PHY reset/interrupt). Nosh needs none of it: GPIO_DISP_B2_10..13 run point-to-point through U11/U12 (OE grounded, DIR fixed) to M.2 pins 32/22/36/34 with no 0 R links, no DNP parts and no other loads, with the EVKB's pin mapping, so the SDK's LPUART2 flow-control setup applies unchanged. The guide's PCM rework does not apply either: the M.2 PCM/I2S pins (8, 10, 12, 14) are not connected, so A2DP over HCI works but HFP voice over the PCM path is not possible without a board change.
The board is intended for JLCPCB assembly. Every component carries hidden LCSC and MPN
fields (U1 also MPN_Alt/LCSC_Alt), and Kicad/tools/data/lcsc_parts.csv is the generated
summary: one line per order code with quantity and references, DNP parts marked. Current count
(2026-11-03): 268 fitted parts on 70 order codes, 24 of them JLCPCB Basic; 8 DNP parts. Regenerate
it with
python3 Kicad/tools/lcsc_table.pyfab/ holds the JLCPCB order files, regenerated from the board with
python3 Kicad/tools/fab_export.py(--no-tht leaves the two through-hole parts, J4 and J11, off the BOM and CPL for hand soldering).
It writes Nosh-gerbers.zip (6 copper layers, paste, silk, mask, edge cuts, one Excellon drill
file with its map), Nosh-bom.csv and Nosh-cpl.csv in JLCPCB's column formats, and
fab/README.md with the order settings (6 layers, 1.6 mm, ENIG, epoxy-filled-and-capped vias for
the via-in-pad caps, both-side assembly, stencil, BGA X-ray) and the export summary. Before paying:
consign or reserve U1 and the U9/U10 SDRAM (JLCPCB stock 0), export the position file with DNP
excluded (the script does), and check every polarised part's rotation in JLCPCB's placement
preview, since the CPL carries KiCad rotations. No impedance control was computed for the USB
and MIPI pairs; order it on JLC06161H-3313 or accept the 0.13 mm / 0.11–0.13 mm geometry as is.
- NXP moved the whole i.MX RT1170 family to rev-B silicon in March 2025 (PCN 202502019I,
suffix
A→B, fixes erratum ERR052351). The rev-A MIMXRT1176DVMAA used here is now Not Recommended for New Designs, but it is the EVKB part and the only one actually obtainable in small quantities (Digi-Key stock; JLCPCB has only a handful). - MIMXRT1176DVMAB (rev B) is pin-identical and is the accepted alternate: fit either. As of Oct 2026 it has no distributor stock and a ~39-week lead time.
- Buy the MCU yourself (Digi-Key/Mouser) and consign it to JLCPCB rather than relying on JLCPCB's own stock. Only the 0–95 °C "D" grade is the 1 GHz bin; the industrial C/A grades are 800 MHz parts and need a clock-init change if ever fitted.
| Part | JLCPCB | Oct 2026 stock | Alternative |
|---|---|---|---|
| SGTL5000XNLA3R2 codec | C2651833 | ~1.1 k | CS4272 (TSSOP-28, Teensy driver, line level only, 5 V analog) |
| Würth 68714014022 LCD FPC | C6264899 | ~75 | any 40-pin 0.5 mm top-contact ZIF with the same land pattern |
| Same Sky (CUI) SJ-3524-SMT jacks J8/J9 | C20182907 | ~800 | SJ-3523-SMT (C4991872, same pads minus the TN switch pad) when it is back in stock; SHOU HAN PJ-320D (C431535, ~70 k) needs a new footprint |
| TE 2199230-4 M.2 socket | C2977809 | ~5 k | — |
| AS4C32M16SC-7TIN SDRAM U9/U10 | C1349997 | 13 (four ordered 2026-11-03); the -6TIN (C1351095) stayed at 0 | W9825G6KH-6 (C62246, 61) or W9825G6KH-6I (C97572, 267): 256 Mb, 64 MB total, SEMC COL=9, 166 MHz. W989D6DBGX6I (C2641243, 8 k) is a 512 Mb 1.8 V LPSDR in VFBGA-54: only for a re-layout |
| RTC load caps C143/C144, 10 pF | — | — | about 5 pF: with the RT1176's internal load capacitance, 10 pF pulls Y2 to −102 ppm (bring-up 6t). An estimate; fit one board and measure before changing the BOM. Y1's 4.7 pF C53/C54 run it +19 ppm fast and may want a step up |
| YIYUAN SMTSOM2.520BTR M.2 nut H5, 2 mm | C5301776 | 0 | SMTSOM2.525BTR, 2.5 mm (C49236513, ~4.7 k): same land, the card end sits 0.5 mm higher |
Fine-pitch note: the MCU is 0.8 mm BGA; everything else is 0.4 mm QFN or coarser.
The RT1176 has no internal flash: the ROM boots from the W25Q512 on FlexSPI1, so "flashing"
means writing the QSPI NOR through the MCU. A debug tool needs an RT1170 FlexSPI flash
algorithm (it loads a small loader into OCRAM that uses the ROM's FlexSPI API); pyOCD gets it
from the NXP CMSIS pack, J-Link has it built in. Images must start with the FCB + IVT + boot
data at 0x30000000 — any SDK flexspi_nor link target does this, and the EVKB FCB (written
for the 1.8 V W25Q512NW) drives our 3.3 V W25Q512JV unchanged (same command set, same QE bit).
Both inputs feed the one +5V rail, so the board does not care which it gets and both may be
connected at once. The jack path is F1 (3 A polyfuse), Q4 (IRLML6401 P-FET reverse-polarity
switch), D12 (SMAJ6.0A TVS) and U17 (TPS259531 eFuse: 5.7 V clamp, 3.6 A limit, auto-retry);
each USB VBUS reaches +5V through an OR-ing diode (D3/D4), so the higher source wins and
nothing flows back into the other. Everything on the board hangs off +5V: the MP2143 3.3 V
buck and the 1.8 V LDO behind it, the USB host port J2 (its TPS2553 switch sources up to
~1.1 A to a peripheral from +5V), and the RK055 panel's 5 V main supply and backlight boost
on J7 pins 39/40.
USB-C with Rd-only CC is nominally 500 mA and was enough for the whole 2026-11-16 bring-up (MCU, 128 MB SDRAM fill, microSD, codec, SWD) with nothing else attached. Plug in the jack (centre-positive 5 V, 2-3 A) when the RK055 panel is connected, when J2 hosts anything beyond a keyboard or mouse (sticks and hubs draw hundreds of mA; the schematic note says "use the jack for USB-host peripherals"), when an M.2 radio is fitted and transmitting, or when chasing brown-outs or resets under load. A wrong adapter is survivable: reverse polarity is blocked by Q4 and anything above ~5.7 V is clamped by the eFuse.
SW4 is a 2-way slide DIP (KingTek DSHP02TS): position 1 (pads 1/4, R11) drives BOOT_MODE1, position 2 (pads 2/3, R12) drives BOOT_MODE0; both straps have 100 k pull-downs, so "off" is 0.
| BOOT_MODE[1:0] | SW4 | ROM behaviour |
|---|---|---|
| 00 | both off | "boot from fuses"; with blank fuses the ROM falls through to the serial downloader, same as 01: enumerates as SE Blank RT Family 1fc9:013d (verified 2026-11-17 with no probe on J1). The first-day "parks both cores" reading was pyOCD's RT1176 target, which traps both cores and masks their reset requests on every connect. |
| 01 | pos 2 on | serial downloader on USB1/J3, enumerates as SE Blank RT Family 1fc9:013d |
| 10 | pos 1 on | internal boot from the W25Q512 on FlexSPI1 |
The mode the ROM latched can be read back over SWD from SRC_SBMR2 (0x40C0400C, BMOD in
bits 25:24). A board that powers up but never enumerates on J3 is a charge-only USB-C cable
until proven otherwise: the first one on the bench carried VBUS and no data lines.
See docs/bringup-2026-11-16.md for the full first-boot report.
| Pin | Signal | Pin | Signal |
|---|---|---|---|
| 1 | VTref = NVCC_LPSR (3.3 V) | 2 | SWDIO (GPIO_LPSR_15) |
| 3 | GND | 4 | SWCLK (GPIO_LPSR_14) |
| 5 | GND | 6 | SWO (GPIO_LPSR_11) |
| 7 | key | 8 | TDI (GPIO_LPSR_12) |
| 9 | GND | 10 | nRESET → POR_B via D1 |
JTAG_MOD is pulled low (SWD mode) and the debug domain is 3.3 V, so any 3.3 V SWD probe connects directly.
| Pin | Signal | Connect to |
|---|---|---|
| 1 | GND | adapter GND |
| 2 | LPUART1_TXD (GPIO_AD_24), board output | adapter RX |
| 3 | LPUART1_RXD (GPIO_AD_25), board input | adapter TX |
3.3 V levels, so use a 3.3 V USB-serial adapter. LPUART1 is the SDK's default debug console, usually 115200 8N1.
- Any CMSIS-DAP probe: NXP MCU-Link (the EVKB's own probe as a dongle; also works with LinkServer/MCUXpresso), Raspberry Pi Debug Probe (CMSIS-DAP v2, fast), Atmel-ICE (its EDBG firmware exposes a standard CMSIS-DAP interface; use the 10-pin "SAM" header), or a SAMD21 board such as a MKR ZERO running free-dap (slow HID probe, fine for bring-up; wire SWCLK, SWDIO, GND and optionally nRESET).
- J-Link:
-device MIMXRT1176xxxA_M7 -if SWD; the most robust RT1170 flash loader. - AVR-only programmers (AVRISP mkII, STK500, UPDI) cannot do SWD.
pip install pyocd
pyocd pack install mimxrt1176 # NXP MIMXRT1176 DFP incl. the FlexSPI NOR algorithm
pyocd list --targets | grep -i 1176 # pick the ..._cm7 target the pack installed
pyocd flash -t <target> -f 4m app.elf # or app.bin -a 0x30000000
pyocd gdbserver -t <target>If the flash is blank or holds a bad image the ROM may sit in its serial-downloader loop; add
--connect under-reset if a plain attach fails. OpenOCD has no mainline RT1170 FlexSPI
driver, so pyOCD is the practical choice for generic probes.
Two pyOCD behaviours found in bring-up (sections 6d and 6r of the bring-up doc):
- pyOCD's RT1176 target installs trap code on both cores and masks reset requests in SRC_SRMR on
every connect, so after a plain
pyocd flashthe new image does not start until SW1 or a power cycle. - The probe's nRESET (J1.10 → D1 → POR_B) never pulled the line low on the bench, so a probe reset does not reset the board.
tools/ has scripts that deal with both: nosh_flash.sh ELF builds the boot
image, flashes it at 0x30000000 and starts it from the host with nosh_reset.py (no SW1), and
pyocd_notrap.py is the pyOCD user script that stops the trap and the reset masking. All of them
attach without halting a running image.
Set the boot DIP to 01 (serial downloader) and plug the USB-C port — it is USB1/OTG1, the
port the RT1170 ROM uses for SDP. Then with NXP's SPSDK:
pip install spsdk
nxpdevscan # ROM enumerates as 1fc9:013d
blhost -u 0x1fc9,0x013d -- load-image ivt_flashloader.bin # from the RT1170 SDK / SPT package
blhost -u 0x15a2,0x0073 -- fill-memory 0x2000 4 0xC0000007 # QuadSPI NOR config option
blhost -u 0x15a2,0x0073 -- configure-memory 9 0x2000
blhost -u 0x15a2,0x0073 -- flash-erase-region 0x30000000 0x100000 9
blhost -u 0x15a2,0x0073 -- write-memory 0x30000000 app.binNXP's MCUXpresso Secure Provisioning Tool does the same through a GUI. This is also the recovery path if a bad image ever makes an SWD attach awkward.
Seven bare pads for bring-up, none in the BOM or placement files (Nosh:TestPoint_*_JLC footprints,
the KiCad ones without the silk ring that would break JLCPCB's 0.15 mm silk-to-pad rule):
| Ref | Net | Where | Pad |
|---|---|---|---|
| TP1 | GND | west edge by J4 (18.0, 63.0) | 2.0 mm plated hole, solder a wire loop for the scope ground |
| TP2 | GND | south of U16 / SW1 (104.0, 56.0) | 2.0 mm plated hole |
| TP3 | +5V | by J4 (17.5, 60.0) | 1.0 mm pad on a via into the +5V plane |
| TP4 | +3V3 | (25.0, 60.5) | 1.0 mm pad on a via into the +3V3 plane |
| TP5 | +1V8 | east of U8 (44.7, 65.1) | 1.0 mm pad |
| TP6 | DCDC_DIG | bottom side, beside C31 under U1 (73.3, 61.5) | 1.0 mm pad |
| TP7 | POR_B | south-east of U16 (109.3, 55.5) | 1.0 mm pad |
The 72 test points of the first layout were removed with J10 (a9f1b1f). SWD/SWO are on J1, the LPUART1 console on J11 (GPIO_AD_24/25, 3.3 V). Nothing is probed on the SDRAM, FlexSPI, USB data, MIPI DSI or crystal nets, where a pad stub would degrade the signal.
The EVKB's W9825G6KH (256 Mb, 16M × 16) has 13 row × 9 column bits per bank. Nosh's AS4C32M16SC (512 Mb, 32M × 16) has 13 row × 10 column bits per bank, the same 4 banks and the same A0–A12 pins (A12 on pin 36). The hardware is identical; only the SEMC setup differs. Every EVKB-derived SDRAM init must change in two places, or the upper half of each chip is unreachable and addresses alias:
| Setting | EVKB (2 × 256 Mb, 64 MB) | Nosh (2 × 512 Mb, 128 MB) |
|---|---|---|
| Column address bits | 9 | 10 |
SEMC_SDRAMCR0[COL] (bits 9:8) |
11b |
10b |
SDK semc_sdram_config_t.columnAddrBitNum |
kSEMC_SdramColunm_9bit |
kSEMC_SdramColunm_10bit |
| Memory on chip select 0 (32-bit array = 2 chips) | 64 MB | 128 MB |
SEMC_BR0[MS] (memory size) |
0_1110b, BR0 = 0x8000001D |
0_1111b, BR0 = 0x8000001F |
SDK memsize_kbytes |
64 × 1024 | 128 × 1024 |
| SDRAM region | 0x8000_0000–0x83FF_FFFF | 0x8000_0000–0x87FF_FFFF |
Row bits (13), bank bits (2), bus width (32 bit, PS=2) and CAS latency 3 stay as on the EVKB. Change
it in the SDK board init (BOARD_InitSemc), in the DCD used for XIP boot (the SEMC->SDRAMCR0 and
SEMC->BR[0] writes), and in the linker script's SDRAM region length. If the Winbond fallback
(W9825G6KH-6) is ever fitted, use the EVKB values again.
The fitted AS4C32M16SC-7TIN is a 133 MHz part (tCK 7.5 ns at CL3, datasheet Table 13), not the
166 MHz -6 grade the layout was planned for, so the SEMC clock must come down from the EVKB's
198 MHz (SYS_PLL2_PFD1 594 MHz ÷ 3). Use SEMC_CLK_ROOT = SYS_PLL2_CLK (528 MHz, mux 101) ÷ 4 =
132 MHz, which is also the root's reset default (RM, CLOCK_ROOT4). SDK: rootCfg.mux = kCLOCK_SEMC_ClockRoot_MuxSysPll2Out; rootCfg.div = 4; and pass 132 MHz as the SEMC clock to
SEMC_ConfigureSDRAM. The routing margin only improves: the bus was length-matched for 166 MHz.
Timing minimums from the AS4C32M16SC-7 datasheet (ns unless noted), for semc_sdram_config_t:
| Parameter | SDK field | -7 value |
|---|---|---|
| tRP precharge to activate | tPrecharge2Act_Ns |
15 |
| tRCD activate to read/write | tAct2ReadWrite_Ns |
15 |
| tRFC refresh recovery | tRefreshRecovery_Ns, tRefresh2Refresh_Ns |
66 |
| tWR write recovery | tWriteRecovery_Ns |
15 |
| tRAS activate to precharge | tAct2Prechage_Ns |
44 (max 120 µs) |
| tXSR self-refresh exit | tSelfRefRecovery_Ns |
75 |
| tRRD activate to activate, other bank | tAct2Act_Ns |
15 |
| tMRD mode register set | fixed in the driver | 2 clocks |
| tREF, 8192 rows in 64 ms | refreshPeriod_nsPerRow, refreshUrgThreshold |
7812 |
| tCK at CL3 / CL2 | SEMC clock period | ≥ 7.5 / ≥ 10 |
| tAC3, tOH | output valid / hold | 5.4 max / 2.7 min |
At 132 MHz (7.58 ns) these round to 2 clocks for tRP, tRCD, tRRD and tWR, 6 for tRAS, 9 for tRFC and 10 for tXSR. With the Winbond fallback the EVKB's 166 MHz value and timings apply.
The flash has no DQS pin; the FlexSPI reaches 133 MHz only in RXCLKSRC = 1 (read strobe looped
back through the DQS pad), while the internal loopback (RXCLKSRC = 0) is limited to 60 MHz
(data sheet Tables 53/54). The default DQS pad GPIO_SD_B2_05 is the SD card's command line on Nosh
(USDHC2_CMD has no other location), so it cannot be used for the loopback. Ball N3 = GPIO_EMC_B2_18
is unconnected on the board and is the alternate FLEXSPI1_A_DQS pad (ALT6, select-input daisy 0):
| ROM boot (FCB) | Application | |
|---|---|---|
readSampleClkSrc |
kFLEXSPIReadSampleClk_LoopbackInternally (0), ≤ 60 MHz |
kFLEXSPIReadSampleClk_LoopbackFromDqsPad (1), 133 MHz |
| DQS pad | none | IOMUXC_GPIO_EMC_B2_18_FLEXSPI1_A_DQS (pad left floating, no pull) |
The ROM only knows the primary DQS pad, so the FCB stays on the internal loopback. Use the ROM's
50 MHz step (serialClkFreq = 2): on the board it gives 49.5 MHz (SYS_PLL2_PFD2 / 8), while the
"60 MHz" step gives 66 MHz (SYS_PLL2 / 8), over the limit. After
boot the application re-initialises FlexSPI1 with the DQS input muxed to GPIO_EMC_B2_18 (the EVKB
SDK's flexspi_nor examples do the same re-init at kFLEXSPIReadSampleClk_LoopbackFromDqsPad;
only the IOMUXC line changes). Do not route anything to N3.
State on 2026-11-19: both halves are in the core (teensy-cores/imxrt1176). bootdata.c gives
Nosh the internal-loopback boot header (before that it used the EVKB's DQS-pad values, and
SD.begin() made every later read from flash return junk, which only firmware that executes from
flash notices). startup.c then moves the strobe to GPIO_EMC_B2_18 and sets 132 MHz
(flexspi1_dqs_to_emc_b2_18(), run from ITCM in the reset handler). Checked on board 2 with the
SD card running: FlexSPI1 MCR0 RXCLKSRC = 1, clock root SYS_PLL2 / 4, DQS select input 0, and the
whole 420 KB image read back over SWD three times with no differing byte.
Nothing here is needed for the current boards to work; these are changes worth weighing if the board is respun.
The conflict. The ROM and the stock boot header reach 133 MHz on the flash by looping the read strobe through GPIO_SD_B2_05, which must float. Nosh uses that pad as the microSD CMD line, so the flash boots on the internal loopback at 49.5 MHz and full speed depends on the core moving the strobe to GPIO_EMC_B2_18 during startup (see FlexSPI read strobe above; done and working).
The change. Take the SD card off GPIO_SD_B2_05 so the pad can float as on the EVKB.
| For | Against |
|---|---|
| Flash at 133 MHz from reset with the EVKB's boot header: no Nosh-specific header, no re-initialisation step in the core | USDHC2_CMD has no other pad, so this is not a re-route: the card has to move to another controller |
| The boot ROM, a debugger's flash loader and third-party images (Zephyr, the SDK examples) work unmodified | The only other controller, uSDHC1 on GPIO_SD_B1, is the M.2 SDIO Wi-Fi slot. Sharing it gives up independent Wi-Fi and SD, the reason Nosh split them; moving the M.2 slot to uSDHC2 needs 1.8 V on NVCC_SD2, which the 3.3 V flash on the same bank rules out unless the flash becomes the 1.8 V W25Q512NW |
| No SD traffic next to the flash's sampling path | A new layout around the MCU's SD_B1/SD_B2 escape, a new BOM line and a new bring-up, for a gain the firmware route also gives |
Cheaper alternative on the same respin. Keep the pinout and add a DNP 0402 footprint from ball N3 (GPIO_EMC_B2_18) to ground (the same idea as the load capacitor on the SEMC DQS pad, C145), so the loopback delay can be tuned if 132 MHz on the bare pad turns out marginal. One board reads its flash back without error at room temperature; no margin test (temperature, more boards) has been done.
Kicad/
Nosh.kicad_pro / Nosh.kicad_sch project and root sheet (A3, one block per sub-sheet)
Nosh.kicad_dru JLCPCB design rules, loaded automatically (see below)
power core gpio usb supply sdram m2 sdcard lcd audio .kicad_sch
Nosh.kicad_sym project symbols (MCU, flash, SDRAM, level shifters, sockets, …)
Nosh.pretty/ project footprints:
slp1616p6 RClamp0854P — EVKB IPC-D-356 land (U20/U28)
M2_KeyE_67pin_RA TE 2199230-4 — pads from the EVKB IPC-D-356 data, pegs/tabs from the TE drawing
FPC40_0p5_Wuerth_68714014022 LCD FPC — EVKB IPC-D-356 land (= Würth recommended pattern)
L_CommonModeChoke_Murata_DLW21 USB chokes — EVKB IPC-D-356 land
MountingHole_3.53mm_M3_Pad M3 standoff hole, NXP spacer_139t land (EVKB IPC-D-356)
SMTSO_M2.5_Hole4.22mm_Pad6.2mm M.2 retention nut H5 — YIYUAN SMTSO land = EVKB BH1, 4-segment paste ring
tools/ board-generation and layout scripts, among them:
gen_rt1176_symbol.py regenerates the MIMXRT1176DVMAA symbol from data/rt1176_{pins,mux}.json
lcsc_table.py regenerates data/lcsc_parts.csv from the schematic fields
build_board.py stage-1 board generator (rebuilds Nosh.kicad_pcb from the netlist; see PCB layout)
fab_export.py writes the JLCPCB Gerber zip, BOM and CPL into fab/ (see Fabrication outputs)
floorplan/, busrouter/, … placement search, SDRAM bus routing and the fanout / zone / clean-up passes
data/ pin/mux tables, lcsc_parts.csv
fab/ JLCPCB order files from fab_export.py: Nosh-gerbers.zip, Nosh-bom.csv, Nosh-cpl.csv, README.md
tools/ bench scripts for SWD flashing and host-side reset (pyOCD), see tools/README.md
docs/
bringup-2026-11-16.md bring-up record of both boards, test by test
evkb-vs-nosh-firmware-porting.md what EVKB firmware must change for Nosh, with a per-pad table
nosh.top.png, nosh-bottom.png board renders
- Global labels carry every net between sheets; power rails use the KiCad power symbols plus
PWR_FLAGs on passively fed rails. Sheet notes cite the EVKB reference designators for each sub-circuit, so the EVKB schematic is the place to look for intent. - Hand-edited files are normalised with
kicad-cli sch upgrade --force/kicad-cli sym upgrade --force/kicad-cli fp upgrade --force; check withkicad-cli sch erc --severity-allandkicad-cli sch export netlist. - The EVKB reference design files (schematic, Allegro netlist, Excel BOM with MPNs, Gerber/IPC-356) and the part datasheets are not part of this repository.
Kicad/Nosh.kicad_dru holds JLCPCB's manufacturing limits as KiCad custom DRC rules, copied
unchanged from kicad-druid (MIT licence, notice kept
in the file header; JLCPCB/JLCPCB-6L-1oz.kicad_dru, upstream commit 8af046d). The 4-layer
1 oz file there has identical rules, so this file holds for either layer count. Main limits:
| Rule | Minimum |
|---|---|
| Track width / spacing | 0.09 mm / 0.09 mm |
| Via hole / annular ring | 0.15 mm / 0.05 mm; hole < 0.3 mm with diameter < 0.45 mm is flagged as extra cost |
| Via to track, PTH to track | 0.2 mm |
| Pad or via to pad or via, different nets | 0.127 mm |
| Track to board edge | 0.2 mm |
KiCad loads <project>.kicad_dru automatically. After editing it, open
Board Setup → Design Rules → Custom Rules and check for errors: a broken rule file makes KiCad
drop every rule, and kicad-cli pcb drc reports nothing when that happens. Update by copying a
newer upstream file over it and keeping the header.
Kicad/Nosh.kicad_pcb is at stage 1: floor plan. It was generated by Kicad/tools/build_board.py
(KiCad's bundled Python + pcbnew), which rebuilds the board from the schematic netlist: 6 copper layers,
the JLC06161H-3313 stackup, every footprint with its nets, explicit positions for the connectors, ICs,
holes and fiducials, auto-packed passives around the part they connect to, the outline and inner GND
zones. Rerunning it discards manual board edits, so from here on edit the board in KiCad.
| Item | Value |
|---|---|
| Outline | 153.9 × 81.8 mm, square corners: the RK055 carrier's measured size (2026-10-09; tools/shrink_outline.py took it there from the earlier 155 × 83.5); the holes sit centred on the EVKB 147.253 × 72.905 mm pattern, which matches the carrier's holes (centres about 3 / 4 mm from the carrier edges). The carrier's FPC cable is 20.4 mm wide with its centre about 6 mm west of the carrier's centre line (user measurement 2026-10-09: 73 mm from the left carrier edge to the cable's left edge); J7 at x 70.65 is 6.3 mm west of Nosh's centre line, so the connectors line up to within the measurement error |
| Origin | north-west corner (KiCad y down). North = display connector edge = EVKB LAN edge |
| Holes H1–H4 | 147.253 × 72.905 mm pattern, centred on the outline (EVKB SS1–SS4) |
| Layers | F.Cu signal, In1 GND1, In2 SIG, In3 PWR, In4 GND2, B.Cu signal (EVKB order) |
| Stackup | JLCPCB JLC06161H-3313: 0.0994 mm prepreg to the GND layers, 0.55 mm cores, 1.6 mm, ENIG |
| Rules | min track/clearance 0.09 mm, via 0.45/0.3 mm, hole clearance 0.2 mm, edge clearance 0.3 mm (+ Nosh.kicad_dru) |
| Net classes | USB_90 (0.13/0.11 mm), MIPI_100 (0.11/0.13 mm), SDRAM (0.1 mm), Power (0.3 mm); the diff-pair figures are estimates for this stackup, check them with the JLCPCB impedance calculator |
Floor plan (viewed from the top, as first placed; J10 and the test points were removed later, a9f1b1f): U10/U9 SDRAM west of the MCU (SEMC balls face west); U2 flash and the M.2 level shifters east; J6 M.2 socket north-east with the card over H5; J5 microSD, J2 micro-AB and J3 USB-C on the east edge; J8/J9 audio jacks on the south edge with U15 above them; J1 SWD and J11 UART on the south edge; J4 barrel jack on the west edge with the supply chain beside it; SW1–SW3 in the south-west corner; SW4 boot DIP inboard north. Bottom side: J7 display FPC at the north edge (opening north, pin 1 west as on the EVKB J48), the MCU decoupling under the BGA, FID4–FID6.
Stage 2 (in progress): tools/write_project_rules.py rewrites the design rules and net classes
into Nosh.kicad_pro (KiCad overwrites that file whenever it saves the project, so close the project
before running it). The MCU has a dog-bone fan-out: 145 vias (0.45 mm pad on a 0.2 mm hole, the EVKB via; JLCPCB charges a small per-board extra for holes under 0.3 mm, but the 0.2 mm hole leaves 0.2 mm for an inner-layer track between two fan-out vias on the 0.8 mm pitch against 0.1 mm with the free 0.3 mm hole; everything else uses the free 0.45/0.3) for
every connected ball from the third ring inwards, the outer two rings escape on the top layer, and the
bottom-side decoupling sits in a ring around the via field. The PWR layer carries a +3V3 plane with
+5V (supply corner, y >= 58.5), WL_3V3 (M.2) and VDD_SOC_IN (MCU core) islands (the SDRAM_3V3 island under U9/U10 and its FB9 bead were merged into +3V3 on 2026-11-02 so the SEMC address lines on In2 no longer cross a plane edge); GND1 and
GND2 are solid. The fan-out vias and islands are not yet joined to anything, so DRC reports them as
dangling or isolated until routing starts.
Floor-plan search (2026-10-08, tools/floorplan/, see its README): a simulated-annealing placer for the
macro parts scored on airwire length plus crossing airwires. Moving the SDRAM to another side of the MCU or
the M.2 slot west came out equal or worse than the EVKB-style plan, so the sides stay. A polish with the
floor plan locked moved the small blocks: U2 flash north of the MCU, J5 microSD on the north edge east of
J7, U11/U12 level shifters east, the (since removed) J10 header turned horizontal south-east, U15 codec beside the jacks, J1/J11
headers south-west. Macro rats-nest 5331 -> 4677 mm, crossings 1976 -> 1507, full rats-nest 4839 -> 4683 mm.
The two TSOPs sit as the EVKB's U13/U25 do relative to its MCU (positions taken from the EVKB IPC-D-356 and ODB++): both rot 270, so pins 1-27 are on each chip's north row with pin 1 at the east end, stacked north-south 32 mm west of the MCU. U9 (D0-D15) is at (40.123, 24.855), U10 (D16-D31) at (40.123, 48.858). Pin n of U9 sits at the same x as pin n of U10, and the 11 mm channel between the chips faces U9's south row and U10's north row. An earlier side-by-side arrangement left about 40 connections to change layer in a 3 mm gap between the chips; a grid router could not untangle it, which is what prompted the change.
| Group | Pins | Route |
|---|---|---|
| Address A: WE CAS RAS CS0 BA0 BA1 A10 A0-A3 | 16-26, north rows (outer on U9, channel side on U10) | trunk on SIG along the channel, one via onto a straight bottom-layer link at the pin's x that joins both chips |
| Address B: A4-A12, CKE | 29-37, south rows (channel side on U9, outer on U10) | the same; the via and link sit 0.4 mm east of the pin so A and B links interleave across the channel |
| D8-D15, DM1 | U9 south row (channel) | top layer, straight into the pads |
| D16-D23, DM2 | U10 north row (channel) | top layer |
| D0-D7, DM0 | U9 north row (outer) | bottom layer under U9's east half to a via beside the pad |
| D24-D31, DM3 | U10 south row (outer) | bottom layer under U10's east half to a via beside the pad |
| Clock | J3 -> R41 / R42 at the channel's east end -> pin 38 of each chip | top / SIG |
Routed 2026-10-10 by tools/busrouter/ (C search core, negotiated congestion, many seeds in parallel; see its README):
all 60 SEMC nets including DQS, DRC clean. Length matching uses per-pin flight length (buslength.py: copper path
from the MCU ball to each chip pin, 0.8 mm per via) against the clock at the same chip. The target is +-25 mm
(about 170 ps; the SDR timing margin at 166 MHz is roughly 1 ns, and more at the 132 MHz now used, so this is conservative). Address trunks join their
chip-to-chip link in the half of the channel that balances the two pins; the clock branches were lengthened with
meanders to the centre of each chip's window (U9 50.6 mm, U10 48.5 mm), a few short data lines were meandered up
and D16 was routed through a waypoint. Result: every pin of both chips is within -24.3..+24.5 mm of its clock;
the longest pin is 75 mm. To keep the bus out of the BGA interior, the router fences it off except two top-layer exit
lanes north of row A (west of x 68.6) and a bottom window to C145.
tools/sdram_prebuild.py builds the fixed chip-side geometry: the address links, the vias beside the outer data
pins, and a via beside every power pin, all on the side away from the chip body (86 vias, 124 segments, DRC clean).
The optimiser keeps the channel, the approach from the BGA, both via strips and the bottom under the chips free of
parts. Rules in Nosh.kicad_dru forbid tracks on GND1, PWR and GND2. Targets: every net within +-5 mm of its chip's
clock branch, nothing over 60 mm.
GND pours on F.Cu and B.Cu (tools/gnd_pours.py: 0.25 mm clearance, 0.2 mm minimum width, islands
removed, left unfilled until routing is done; a rule in Nosh.kicad_dru keeps any zone 0.5 mm from the
USB and MIPI pairs so the pours do not lower their impedance). Still to do: routing (the SDRAM bus,
MIPI DSI and USB pairs by hand with length matching; the rest can be autorouted and cleaned up),
reference-label tidy-up. DRC leftovers that are footprint quirks rather than layout faults: J3's NPTH-to-copper
gap is 0.19 mm against the JLC 0.2 mm rule; J2's slotted shield pads trip the JLC slot-ratio check; J2
reports a library mismatch because the Molex footprint's suggested board-edge lines were dropped on import.
Display connector footprint fix (2026-10-06). Nosh.pretty/FPC40_0p5_Wuerth_68714014022 had been built
from the EVKB's bottom-side land data without mirroring, so it was a mirror image: flipped to the back in
KiCad, pin 1 would have ended up at the wrong end. It is now a normal top-side footprint (pads north of the
body, pin 1 west, cable from the south, as in Würth's land pattern); placed on the back it reproduces the
EVKB J48 arrangement, verified numerically.

