Minimalist ARM Cortex-M0 development board β 20 mm Γ 38.5 mm, native USB-C, crystal-less
π«π· Version franΓ§aise Β· π Schematic (PDF) Β· π§° Getting started Β· π Pinout
A practical, standalone 32-bit development board (20 mm Γ 38.5 mm), inspired by the minimalist philosophy and straightforward nature of the Arduino ATtiny, but optimized for comfortable benchtop development (devboard). Powered by the STM32F042 (ARM Cortex-M0) with native crystal-less USB-C, a TVS-protected USB input and a ceramic-only 3.3 V power stage.
This board was born at the intersection of academic learning, curiosity, and maker passion:
- Bridging Theory and Practice: Taking electronic engineering coursework (schematic design, component selection, signal integrity, PCB layout) and applying it to a tangible, physical board.
- Stepping into 32-bit Microcontrollers: Moving beyond traditional 8-bit platforms (AVR, ATtiny) into the modern ARM Cortex ecosystem.
- Fun & Hobby: A passion-driven learning playground to experiment with USB stacks, low-power modes, and embedded programming.
- Giving Back to Open Source: Providing a clean, accessible, and minimal reference design for students, hobbyists, and makers.
-
Real-World Project Stepping Stone: Serving as the core validation platform for three concrete engineering builds: a dedicated drone telemetry/control subsystem, an audio synthesizer with active analog op-amp (AOP) filtering, and a digitally controlled
$\ge$ 40W USB-PD / Buck converter power stage.
- π§ Brain: STMicroelectronics STM32F042F6P6 (ARM Cortex-M0 @ 48 MHz, 32 KB Flash, 6 KB RAM).
- π Crystal-less USB-C: Employs the internal 48 MHz oscillator (
HSI48) paired with Clock Recovery System (CRS) synchronized directly to USB framesβzero external crystal required. - π Zero-Programmer Flashing (Native DFU): Factory ROM USB bootloader built-in. Hold the
BOOTbutton, plug in the USB-C cable, and flash directly withSTM32CubeProgrammerordfu-utilβno ST-Link or external programmer strictly required! - π Compact Devboard Layout (20 mm Γ 38.5 mm): Slim form factor with two 9-pin I/O headers on the long sides, and the
BOOT/RESETbuttons on each side of the USB-C connector. - π‘οΈ Enhanced USB Protection: SD05-01FTG TVS diode on
VBUS, USBLC6-2SC6 on the data lines and a 500 mA resettable polyfuse. - β‘ Stable 3.3 V: ME6211C33M5G-N low-dropout, low-quiescent-current LDO, stable with small ceramic capacitors (no more tantalum).
- π‘ Two Indicator LEDs: a red
3V3power LED and an addressable WS2812B-2020-V6 RGBSTATUSLED driven fromPA0(native 3.3 V operation with dedicated 100 nF decoupling capacitorC8). - ποΈ Dual Tactile Buttons: On-board
RESETandBOOTtactile switches for instant programming mode entry. - π°οΈ CaveRover Branding: Features the official 8-bit pixel art CaveRover rover silkscreen emblem and futuristic Anurati typographic markings directly on the PCB.
- π οΈ Open-Source & DIY Ready: Standard 2-layer PCB design rules for affordable fabrication and assembly (e.g. JLCPCB).
| Parameter | Specification |
|---|---|
| Microcontroller | STM32F042F6P6 (TSSOP-20) |
| Core Architecture | ARM 32-bit Cortex-M0 @ up to 48 MHz |
| Flash / SRAM | 32 KB Flash / 6 KB SRAM |
| Operating Voltage | 3.3 V logic (Dual power rails exposed: 5 V via USB-C + 3.3 V regulated) |
| 3.3 V Regulator | ME6211C33M5G-N (LDO, SOT-23-5) with 2 ceramic capacitors (X7R, 25 V, 0805) |
| Input Protection | SD05-01FTG (TVS) + USBLC6-2SC6 (USB data lines) + 500 mA polyfuse |
| USB Interface | USB 2.0 Full Speed (12 Mbps) over USB-C |
| User I/O | 12 GPIOs on 2.54 mm headers (9 general-purpose, 1 shared with BOOT0, 2 shared with SWD) + dedicated hardware NRST |
| Programming & Debug | Native USB DFU (ROM bootloader) or full 4-wire SWD (GND, NRST, SWDIO, SWCLK) |
| On-board LEDs | Red 3V3 power LED + WS2812B-2020-V6 RGB status LED (PA0) with 100 nF decoupling capacitor |
| Dimensions | 20 mm Γ 38.5 mm |
The board has two 9-pin headers (J1 on the left, J2 on the right) and a 2 Γ 2 power header (J3) at the bottom edge.
| Header | Pin | Signal | MCU pin | Primary & Alternate Functions / Notes |
|---|---|---|---|---|
| J1 | 1 | 5V |
β | 5.0 V power rail (VBUS post-polyfuse F1, up to 500 mA for drones/op-amps) |
| 2 | GPIO1 |
PB8 |
Shared with BOOT0 (10 kΞ© pull-down). Do not pull HIGH at boot! |
|
| 3 | GPIO2 |
PF0 |
OSC_IN / I2C1_SDA |
|
| 4 | GPIO3 |
PF1 |
OSC_OUT / I2C1_SCL |
|
| 5 | GPIO5 |
PA1 |
ADC_IN1 / TIM2_CH2 / EVENTOUT |
|
| 6 | GPIO6 |
PA2 |
USART2_TX / ADC_IN2 / TIM15_CH1 / TIM2_CH3 |
|
| 7 | GPIO7 |
PA3 |
USART2_RX / ADC_IN3 / TIM15_CH2 / TIM2_CH4 |
|
| 8 | GPIO8 |
PA4 |
ADC_IN4 / SPI1_NSS / TIM14_CH1 |
|
| 9 | GND |
β | Ground | |
| J2 | 1 | 3V3 |
β | 3.3 V regulated power rail |
| 2 | GPIO9 |
PA5 |
ADC_IN5 / SPI1_SCK |
|
| 3 | GPIO10 |
PA6 |
ADC_IN6 / SPI1_MISO / TIM3_CH1 / TIM16_CH1 |
|
| 4 | GPIO11 |
PA7 |
ADC_IN7 / SPI1_MOSI / TIM3_CH2 / TIM14_CH1 / TIM17_CH1 |
|
| 5 | GPIO12 |
PB1 |
ADC_IN9 / TIM3_CH4 / TIM14_CH1 |
|
| 6 | GND |
β | Ground | |
| 7 | NRST |
Pin 4 | Hardware Reset line (supports ST-Link "Connect Under Reset" and remote reset button) | |
| 8 | GPIO15 |
PA13 |
SWDIO (SWD Data) / IR_OUT / USB_NOE |
|
| 9 | GPIO16 |
PA14 |
SWCLK (SWD Clock) / USART2_TX |
|
| J3 | 1β4 | 3V3 / GND |
β | 2 Γ 2 header: 2 Γ 3V3, 2 Γ GND (auxiliary power breakout) |
β οΈ Important Note onPB8 / BOOT0(GPIO1): Pin 1 of the TSSOP-20 package is shared betweenBOOT0andPB8. It is pulled down to GND via$R_7$ (10 kΞ©) for normal Flash execution. Any external circuitry attached toGPIO1that pulls this pin HIGH at reset will force the microcontroller into native USB DFU bootloader mode.π‘ Internal Signals & ADC Allocation:
PA0is dedicated internally to the WS2812B-2020-V6 RGB status LED via$R_6$ (330 Ξ©). Consequently, analog channelADC_IN0is reserved for on-board LED operation. 7 external ADC channels remain freely available on the headers (PA1toPA7).NRSTis wired to the tactileRESETbutton with a 100 nF debounce capacitor and routed toJ2pin 7 for full debugger control.π Serial Communication (
USART1vsUSART2):
- For user serial communication (e.g. drone CRSF/SBUS telemetry, debug console, GPS), use
USART2(PA2/PA3) on headerJ1.- On the STM32F042 TSSOP-20 package,
USART1(PA9/PA10) shares physical pins 17 & 18 with native USB Full-Speed (PA11/PA12,USB_DM/USB_DP). When USB is active,USART1cannot be used simultaneously.
π Click the schematic to open the full-resolution vector PDF β
arm_tiny_pcb_sch.pdf
- USB-C Input: Standard Type-C receptacle (GT-USB-7025) with dual 5.1 kΞ© pull-downs on
CC1/CC2for universal charger and PC host compatibility. - TVS Diode (SD05-01FTG, D1): Clamps ESD and surge events on
VBUS(5 V) before they can reach the rest of the board. - Polyfuse (F1, 500 mA): Resettable fuse between
VBUSand the 5 V rail. - USB Data Protection (USBLC6-2SC6, U3): Low-capacitance ESD protection on
D+/D-, preserving Full-Speed signal integrity. - LDO Regulator (ME6211C33M5G-N, LDO1): 5 V β 3.3 V, low dropout and very low quiescent current.
- Ceramic-Only Capacitors: Tantalum capacitors were replaced by X7R ceramic capacitors (
C12.2 Β΅F,C21 Β΅F, 25 V, 0805) around the regulator: more stable with this LDO, smaller, non-polarized, and free of tantalum failure modes (inrush / surge). - Decoupling:
C3100 nF,C44.7 Β΅F,C510 nF andC61 Β΅F placed close to theVDD/VDDApins.
-
Differential USB Pair: Matched
$D^+$ and$D^-$ traces routed side-by-side with an unbroken ground reference plane on the bottom layer to maintain high signal integrity.
| Ref | Part | Function |
|---|---|---|
| U1 | STM32F042F6P6 | Microcontroller (TSSOP-20) |
| LDO1 | ME6211C33M5G-N | 3.3 V LDO regulator (SOT-23-5) |
| U3 | USBLC6-2SC6 | ESD protection for USB data lines |
| D1 | SD05-01FTG | 5 V TVS diode on VBUS (SOD-323) |
| F1 | JK-SMD0603-050-6 | 0603 resettable fuse (500 mA) |
| USB1 | GT-USB-7025 | USB Type-C receptacle |
| SW1 / SW2 | SKRKAEE020 | RESET / BOOT tactile switches |
| LED1 | 16-213/BHC-AN1P2/3T | Red 3V3 power LED |
| LED2 | WS2812B-2020-V6 | RGB STATUS LED (addressable) |
| J1 / J2 / J3 | 1Γ9 / 1Γ9 / 2Γ2 pin headers | I/O and power headers |
| Change | Before | Now |
|---|---|---|
| Board size | 26 mm Γ 36 mm | 20 mm Γ 38.5 mm |
| LDO regulator | XBL1117-3.3 (SOT-89) | ME6211C33M5G-N (SOT-23-5) |
| Regulator capacitors | Tantalum (EIA-3528) | X7R ceramic (0805) |
| 5 V input protection | Fuse only | Fuse + SD05-01FTG TVS diode |
No external probe needed:
- Hold down the BOOT button.
- Press and release the RESET button (or plug the USB-C cable into your PC).
- Release the BOOT button.
- Your computer now recognizes the device as an STM32 BOOTLOADER in DFU mode.
Flash compiled .bin or .hex firmware using your tool of choice:
- STM32CubeProgrammer (GUI / CLI)
- dfu-util:
dfu-util -a 0 -d 0483:df11 --dfuse-address 0x08000000 -D firmware.bin
- SWD (optional): connect an ST-Link to
GND,3V3,PA13(SWDIO) andPA14(SWCLK) onJ1/J2.
- STM32CubeIDE / Keil / IAR: Native C/C++ development with STM32 HAL / LL drivers.
- PlatformIO & Arduino: Fully compatible via the official STM32duino Core.
| File / Folder | Description |
|---|---|
arm_tiny_pcb.kicad_pro |
KiCad project (open this one) |
arm_tiny_pcb.kicad_sch |
KiCad schematic |
arm_tiny_pcb.kicad_pcb |
KiCad PCB layout |
arm_tiny_pcb_sch.pdf |
Schematic export (PDF) |
arm_tiny_pcb.jpg |
3D render of the board (full size) |
docs/ |
Images used in this README (top view, bottom view, 3D perspective, schematic preview, branding) |
NanoCortex.kicad_sym |
Project symbol library |
NanoCortex.pretty/ |
Project footprint library |
NanoCortex.3dshapes/ |
3D models (.wrl) for the project footprints |
sym-lib-table, fp-lib-table |
Project library tables (paths relative to the project) |
π¦ Libraries: everything needed to open the project is included. The
NanoCortexlibraries are registered automatically when you openarm_tiny_pcb.kicad_prowith KiCad 10.
This board serves as the prototyping brain for three dedicated embedded hardware projects:
Using the NanoCortex-F042 as an embedded flight module or motor/sensor companion node:
- Sensor Interface: High-rate 6-axis IMU (gyro/accelerometer via SPI/I2C) readout on hardware timer interrupts.
- Actuator Control: Multi-channel high-speed motor control signals (OneShot / DShot / PWM at 400 Hz+).
- Telemetry & Communication: Real-time bi-directional link over serial UART (
USART2running CRSF / SBUS / MSP protocol). - Custom PCB Spin: Layout of a dedicated, miniaturized drone PCB integrating motor drivers and power management.
A hands-on project to master operational amplifiers (Op-Amps / AOP) and USB communication without requiring heavy DSP:
- USB-MIDI Communication: Native class-compliant USB-MIDI device stack (plug-and-play with DAWs, keyboards, and PCs with zero drivers).
- Sound Generation: Multi-waveform oscillator (sawtooth, square, triangle, wavetable) generated via high-frequency hardware PWM / DMA.
- Active Op-Amp Reconstruction Filter: 2nd- or 4th-order active low-pass filter (Sallen-Key / Rauch topology) to smooth PWM into clean analog audio.
- Analog Processing & Overdrive Stage: Soft-clipping diode distortion stage within the op-amp feedback loop (classic overdrive pedal architecture) with active gain control.
- Active Tone Control & Output Stage: Active Baxandall bass/treble tone stack and low-impedance audio buffer for headphones or line-level output.
A hands-on power electronics project to master switch-mode power supplies (Buck converters), op-amp feedback injection, and USB Power Delivery:
- Synchronous Buck Stage: Design of an external 24 V DC β 5 Vβ20 V / 3 A step-down converter (MOSFET selection, inductor saturation
$I_{sat}$ , and low-ESR ripple filtering). - Op-Amp Feedback Injection: Dynamic voltage margin/target control via active op-amp summing into the Buck controller's feedback (
FB) node. - USB-PD PHY Communication (FUSB302B): I2C control of a dedicated USB-PD Source controller to negotiate 5 V, 9 V, 15 V, and 20 V profiles with laptops and phones.
- Power Telemetry & Safety: Real-time
$V_{out}$ /$I_{out}$ monitoring via STM32 12-bit ADC, over-current/over-voltage shutdown, and$V_{BUS}$ power-switch control.
- KiCad 10 schematic design & 2-layer PCB layout with matched USB differential pairs.
- Hardware Revision: 20 mm Γ 38.5 mm form factor, TVS protection diode, ME6211 LDO, and MLCC ceramic capacitors.
- PCB fabrication and prototype SMD assembly.
- USB DFU bootloader and crystal-less CRS clock verification.
- 3.3 V power rail validation (ripple, stability, and transient response under load).
Suggestions, questions, and PRs are very welcome! Whether you are a student exploring embedded design or an experienced engineer with layout tips, feel free to open an Issue or submit a Pull Request.
This hardware design (schematics, PCB layout, footprints, and 3D models) is licensed under the CERN Open Hardware Licence Version 2 β Strongly Reciprocal (CERN-OHL-S v2).
βοΈ Reciprocal Sharing: You are free to study, modify, build, and distribute this board. If you distribute modified versions or products based on this design, you must make the complete modified source files available under the same CERN-OHL-S v2 license.



