

Frdm05-devboard
Firmware + hardware for KL05Z Development Board Add-on
- Size
- 99.1 × 84.8 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 71
- Nets
- 65
- Pads
- 298
- Tracks, vias
- 643, 123
- Pours
- 6
- Routed
- Yes
- KiCad
- KiCad 5 (file 20171130)
- Created
- 17 Jan 2022
- Updated
- 22 Jan 2022
Overview
Frdm05-devboard is an open-source printed circuit board by M-Skut, from the M-Skut/kl05z-devboard-demo repository on GitHub. It is a 2-layer board of 99.1 × 84.8 mm with 71 parts on 65 nets, routed with 643 tracks and 123 vias.
It is built around the 74AHCT1G125GV, PCF8563T/5 and PTS810, with the WS2812B, BAT54C and BC817 among its other parts. Its parts include 19 resistors, 11 capacitors, 6 ICs, 6 connectors and 6 switches. It belongs with the microcontroller boards boards of this library.
Main components
674AHCT1G125GV
SOT-23-5L-40℃~+125℃ 1 1 1ns@4.5V 4.5V~5.5V 40uA 74AHCT 8mA 8mA Output enable、Level shifting Tri-State Unidirectional SOT-23-5L Buffers, Drivers, Receivers, Transceivers ROHSMDDBuffers, Drivers, Receivers, TransceiversPCF8563T/5
SO-8-40℃~+85℃ 0.25uA 1V~5.5V Battery low-voltage detection、Programmable clock output、Alarm function、Countdown timer I2C Yes SO-8 Real Time Clocks ROHSNXP SemiconductorsReal Time ClocksPTS810
UncategorisedC&KWS2812B
5mm X 5mm Surface Mount RGB LED with Intelligent ControlWorldsemiUncategorisedBAT54C
SOT-231 Pair Common Cathode 200mA 2uA@25V 30V 600mA 800mV@100mA SOT-23 Schottky Diodes ROHSNexperiaSchottky DiodesBC817
SOT-231 NPN 100nA 150MHz 300mW 40 45V 500mA 5V 700mV NPN SOT-23 Bipolar (BJT) ROHSShikuesBipolar (BJT)
README
README.mdKL-05 DevBoard Demo project with simple HAL
Hardware
To make development of advanced microcontroller projects simple, the DevBoard is equipped with following features:
- SD Card slot
- 6-button keypad connected as analog input
- stylophone-like keyboard as analog input
- PMOD Interface Type 2 (SPI)
- MikroBus Connector
- 3x WS2812B addressable RGB LEDs
- connector for Nokia 5510 display board
- buzzer
- fused 3V3 and 5V lines
- connector for Adafruit ALS-PT19 Analog Light Sensor Breakout
- connector for 16x2 LCD with I2C adapter
- 25LCxxx SPI Flash
- 2x 24Cxx I2C Flash
- RTC clock with battery based on PCF8563 RTC IC with I2C interface
- LM75 I2C temperature sensor
Some photos of the hardware (more in media folder)

Bill Of Materials
Interactive Bill Of Materials for the newest revision of the hardware can be found here
Hardware revision history
Rev. 1:
- first revision of hardware Rev. 2:
- fix for analog keypad (wrong placement of current mirror)
- addition of current-limiting resistor for buzzer
- addition of optional fuses for 3V3 and 5V lines Rev. 2.1:
- fix for 3V3 fuse
- fix for buzzer footprint
- fix for some silkscreen areas Rev. 2.2:
- change 74HCT1G125GV buffer to faster 74AHCT1G125GV version
Environment
To develop this demonstration project, following set of tools and programs was used:
- Visual Studio Code with plugins:
Cortex Debugfrommarus25CMake Toolsfrommicrosoft
- GNU GCC ARM Compiler from Official ARM Distribution
- SEGGER JLINK
- CMake
- Ninja
- (Optional) ARM Compiler 5 from Keil
- (Optional) Doxygen
How to install it on Windows
- Install GCC from Official ARM Distribution and check "Add to PATH" when installing
- Install CMake, also Add to PATH when installing
- Install J-Link Software and Documentation pack
- Download Ninja and put it into some folder in PATH, for example in
C:\Program Files\CMake\bin - Install Visual Studio Code and its extensions
- (Optional) Install Doxygen for generating documentation
How to install it on other operating systems
- Install the required software from author's website or from OS repositories.
Now you can open the project folder. Select GNU toolchain as CMake kit when asked and edit file launch.json inside .vscode folder if your JLinkGDBServer location is different than he one used in this project. For ARM Compiler 5.06 toolchain,
an environment variable ARMCC_TOOLCHAIN_PATH has to be set to bin folder of the toolchain files. Alternatively, armcc.cmake file inside toolchain-conf can be edited to make te path setting permanent.
Environment features
- two-click switch between ARM Compiler 5 and GCC Compiler
- all code editing features that Visual Studio Code has to offer
- easy debugging of compiled code
- two-click generation of doxygen HTML documentation
- built-in git integration
- works on Windows, GNU/Linux and Mac OS (or at least should)
HAL
This simple hardware abstraction layer is based on two sources: KL05 Sample Code Package
from Freescale and MBED platform-specific code for KLXX targets. The C API relies
on heavy use of custom enums and structs to ensure that invalid function parameters can be found in
compilation stage. It uses C99 features (stdint.h, stdbool.h, in-place struct
initialization etc.) and was tested with GCC 11 compiler and ARM 5.06 Compiler, but should
be compiler-independent, as it does not use compiler-dependent features directly, but instead it's using
CMSIS functions as abstraction layer.
Goals:
- Prevent user from error-prone and hard-to-debug manual peripheral register setting
- Simple and straightforward for both understanding the underlying code and using the API
- Versatile - use for all applications within this uC
- Smallish footprint
- Separated device drivers from mcu peripheral drivers (exceptions only for very timing-sensitive devices)
- User-proof, mostly
- Peripherals can be reinitialized and will still work
- Communication peripheral drivers can be used without gpio driver
- Supports any MCU working frequency
Non-goals:
- universal
- unified (in GPIO mapping, same peripheral but more instances etc.)
Drivers features:
UART:
- different pinout configuration
- automatic calculation for baudrate with ability to re-init if CPU speed changes
- error if configuration baudrate or pins cannot be set
- simple print, putchar and getchar API
- RX IRQ callback setting and checking RX overrun
I2C:
- different pinout configuration
- different speed selection
- timeout detection in all functions
- included fix for silicon errata
GPIO
- bare-bones abstraction of the register setting
- interrupt with callback functions
- inline functions for fast pin setting
Delay
- SysTick-based delay
- works without affecting SysTick settings
- based on delay code from u8g2 project
ADC
- ADC calibration function
- simple 16-bit value read
- uses
gpiodriver for pin mapping - ADC presets (currently only one available)
PWM
- TPM-based PWM
- uses
gpiodriver for pin mapping - allows setting period and pulse width in microseconds or as raw values
WS2812
- currently only GCC supported
- based on cpldcpu's WS2812 ARM bitbang driver
MMA8451Q
- range setting
- conversion to float values
Parts
71| Qty | Value | Footprint | References |
|---|---|---|---|
| 8 | 100n | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C3, C4, C5, C6, C8, C9, C10, C11 |
| 7 | 10k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R3, R7, R8, R9, R14, R16, R17 |
| 6 | PTS810 | fdrm05-devboard-hardware:SW_SPST_PTS810_HandSoldering | SW1, SW2, SW3, SW4, SW5, SW6 |
| 4 | 22k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R1, R2, R5, R6 |
| 4 | 2k2 | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R10, R11, R12, R13 |
| 4 | MountingHole_Pad | MountingHole:MountingHole_3.2mm_M3_Pad_Via | H1, H2, H3, H4 |
| 4 | TestPoint | TestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mm | TP2, TP3, TP4, TP5 |
| 3 | WS2812B | LED_SMD:LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mm | D1, D2, D3 |
| 2 | T24C02A | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U4, U5 |
| 2 | 470 | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R18, R19 |
| 2 | Polyfuse | Fuse:Fuse_0805_2012Metric | F1, F2 |
| 1 | 10pF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C1 |
| 1 | 10uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C2 |
| 1 | 1602 LCD VIA I2C | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Horizontal | J5 |
| 1 | 1k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R15 |
| 1 | 1u | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C7 |
| 1 | 25LCxxx | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U1 |
| 1 | 32768Hz | Crystal:Crystal_SMD_SeikoEpson_MC306-4Pin_8.0x3.2mm_HandSoldering | Y1 |
| 1 | 33k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R4 |
| 1 | 74AHCT1G125GV | Package_TO_SOT_SMD:SOT-23-5_HandSoldering | U6 |
| 1 | BAT54C | Package_TO_SOT_SMD:SOT-23 | D4 |
| 1 | BC817 | Package_TO_SOT_SMD:SOT-23 | Q2 |
| 1 | BCV62 | Package_TO_SOT_SMD:SOT-143 | Q1 |
| 1 | Battery_Cell | Battery:BatteryHolder_Keystone_1060_1x2032 | BT1 |
| 1 | Buzzer | Buzzer_Beeper:MagneticBuzzer_ProSignal_ABT-410-RC | BZ1 |
| 1 | Conn_01x06 | Connector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_Horizontal | J3 |
| 1 | FRDM_KL05Z | fdrm05-devboard-hardware:FDRM-KL05Z | A1 |
| 1 | KEYBOARD | fdrm05-devboard-hardware:Keyboard_resistive | J2 |
| 1 | LIGHT SENSOR | Connector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_Vertical | J4 |
| 1 | LM75C | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U3 |
| 1 | MIKROBUS_HOST_CONN | mikroBUS:MIKROBUS_HOST_CONN | CON1 |
| 1 | PCD8544-BASE | Connector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_Vertical | LCD1 |
| 1 | PCF8563T | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U2 |
| 1 | SD_Card_Fix | Connector_Card:SD_TE_2041021 | J1 |
| 1 | SYM_ESD_Large | fdrm05-devboard-hardware:prestiz | SYM2 |
| 1 | SYM_ESD_Large | fdrm05-devboard-hardware:agieh | SYM1 |
Similar boards
- 6 layers83.5 × 56 mm

- 2 layers100 × 100 mm

Zxuno1010
UzixLS/zxuno1010-board
10x10cm PCB variant of ZX-UNO project for G738/G706 enclosure
233 parts23MIT - 4 layers35.1 × 58.3 mm

- 2 layers71.4 × 99.7 mm

RP2350A Macropad
arkandas/rp2350-macropad
RP2350A 3x3 mechanical macropad with a browser-programmable keymap and an on-board status LCD
85 partsMIT - 4 layers95.5 × 126 mm

TTF CX
dermatoid-collab/EVC_FW
Progetto hardware e firmware del sistema di controllo di un ascensore domestico a trazione (TTF) di LiftingItalia s.r.l. Quattro schede basate su STM32F446, collegate in CAN; il motore è comandato da un VFD.
242 parts - 2 layers50 × 50 mm

- 2 layers96 × 74.4 mm

Monolith
luftaquila/monolith
DIY wireless real-time datalogging platform for Student Formula and Baja.
138 parts45 - 2 layers72.2 × 61.5 mm

2024.03.15 AVR SCORE BOARD RCV v2
jarwyg/WS2811_SCORE_BOARD
W 2017 wraz z znajomym z roku stworzyliśmy tablicę wyników zbudowaną z wykorzystaniem pasków LED WS2811.
46 partsMIT
Questions
How big is the Frdm05-devboard PCB?
It measures 99.1 × 84.8 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Frdm05-devboard use?
71 parts, built around the 74AHCT1G125GV, PCF8563T/5, PTS810 and WS2812B. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the Frdm05-devboard KiCad files?
From the M-Skut/kl05z-devboard-demo repository on GitHub, at the commit this page was made from: the board is frdm05-devboard-hardware/frdm05-devboard.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the Frdm05-devboard design in my own project?
Its repository states no licence, so its author keeps all rights: ask M-Skut before reusing the design.