How weactstudio/weactstudio.ch552coreboard works
Purpose
This is a hardware enablement and firmware-development package for the WeAct CH552 core board, based on WCH CH552/CH554 8-bit microcontrollers. It combines board documentation, vendor datasheets, sample firmware for multiple toolchains, and USB bootloader programming tools.
Hardware and Reference Boundary
Board-specific design artifacts define the physical target; MCU behavior is supplied by WCH documentation. Engineers should use:
• HDK/WeAct-CH55xCoreBoard-V10 SchDoc.pdf
• HDK/WeAct-CH55xCoreBoard-V10 Board Shape.pdf
• Datasheet/CH552DS1_en.PDF
These files are the boundary between firmware assumptions (pins, clocks, USB) and the actual core-board hardware.
Firmware Entry Points
The repository provides independent example projects rather than one deployable application:
• Keil blink: SDK/01-KeilExample/01-Blink/App/main.c
• Keil RTX Tiny2 example: SDK/01-KeilExample/02-RtxTiny2/App/main.c
• Arduino sketches: SDK/02-ArduinoExample/01-Blink/01-Blink.ino, SDK/02-ArduinoExample/02-PWMFading/02-PWMFading.ino
• SDCC blink: SDK/03-SDCCExample/01-Blink/App/main.c
An engineer selects one toolchain/project family, modifies its application entry point, builds firmware, then flashes the resulting image to the board.
Keil Firmware Stack
Keil projects package application code with CH5xx device support and optional RTOS configuration:
• SDK/01-KeilExample/01-Blink/Blink.uvproj
• SDK/01-KeilExample/01-Blink/CH5xx/ch552.h
• SDK/01-KeilExample/02-RtxTiny2/RtxTiny2/CONF_TNY.A51
The application layer accesses MCU registers and platform services through ch552.h; debug and in-application programming support are included alongside each project. RTX Tiny2 adds a scheduler/runtime configuration layer above the hardware support package.
SDCC Firmware Stack
The SDCC example is a Makefile-based C firmware layout, suitable for command-line builds:
• SDK/03-SDCCExample/01-Blink/Makefile
• SDK/03-SDCCExample/01-Blink/App/main.c
• SDK/03-SDCCExample/01-Blink/include/ch552.h
Its shared include layer exposes MCU definitions plus peripheral modules for ADC, I2C, SPI, PWM, touch keys, USB, debugging, and bootloader interactions. Application code and timing logic are separated in App/main.c and App/time.c.
Build Artifacts and Flashing Flow
Build outputs are pre-generated firmware images, demonstrating expected deployment formats:
• SDK/01-KeilExample/01-Blink/Objects/Blink.hex
• SDK/03-SDCCExample/01-Blink/01-Blink.hex
• SDK/03-SDCCExample/01-Blink/01-Blink.bin
Flashing targets the MCU’s USB bootloader. Windows users can use Tools/WCHISPTool_Setup.exe with the bundled WCH bootloader driver under Tools/WCH_Bootloader_Driver/. A browser-oriented alternative is Tools/bootloaderWebtool/index.html, driven by Tools/bootloaderWebtool/ch55xbl.js; its USB access depends on compatible browser/host USB support and potentially Zadig-installed drivers.
External and Vendor Dependencies
The repository depends on WCH’s CH552/CH554 silicon, USB bootloader protocol, device drivers, and vendor example bundles:
• SDK/04-WCH_EVT/CH552EVT.ZIP
• SDK/04-WCH_EVT/CH554EVT.ZIP
• Tools/bootloaderWebtool/ch55xbl.js
Supported development runtimes are Keil C51, Arduino-compatible CH552 tooling, and SDCC. No backend service, network API, or persistent application data layer is present.
Main entry points: CH552DS1_en.PDF CH552 datasheet · WeAct-CH55xCoreBoard-V10 SchDoc.pdf Core-board schematic · App/main.c Keil Blink entry · App/main.c SDCC Blink entry
Components 21
Hardware & reference
Physical board and vendor MCU contract.
- Core-board schematic
HDK/WeAct-CH55xCoreBoard-V10 SchDoc.pdf - Board outline
HDK/WeAct-CH55xCoreBoard-V10 Board Shape.pdf - CH552 datasheet · Defines MCU pins, clocks, peripherals, and USB behavior.
Datasheet/CH552DS1_en.PDF
Keil firmware
Keil C51 example projects and device stack.
- Keil Blink project
SDK/01-KeilExample/01-Blink/Blink.uvproj - Keil Blink entry
SDK/01-KeilExample/01-Blink/App/main.c - CH5xx device support · Register and platform definitions used by Keil applications.
SDK/01-KeilExample/01-Blink/CH5xx/ch552.h - RTX Tiny2 entry
SDK/01-KeilExample/02-RtxTiny2/App/main.c - RTX Tiny2 config · Adds scheduler/runtime configuration to the Keil example.
SDK/01-KeilExample/02-RtxTiny2/RtxTiny2/CONF_TNY.A51
SDCC firmware
Command-line C firmware example.
- SDCC build
SDK/03-SDCCExample/01-Blink/Makefile - SDCC Blink entry · Application and timing logic are separated in this project.
SDK/03-SDCCExample/01-Blink/App/main.c - SDCC peripheral support · Provides MCU definitions and peripheral modules, including USB and bootloader support.
SDK/03-SDCCExample/01-Blink/include/ch552.h
Build & flashing
Firmware images and USB bootloader tools.
- Keil firmware image
SDK/01-KeilExample/01-Blink/Objects/Blink.hex - SDCC firmware images · Command-line build produces deployable HEX and BIN formats.
SDK/03-SDCCExample/01-Blink/01-Blink.hex - CH552 USB bootloader · Receives firmware images over USB.
- WCHISP Tool
Tools/WCHISPTool_Setup.exe - WCH bootloader driver
Tools/WCH_Bootloader_Driver/SETUP.EXE - Browser flasher · Browser USB access may require compatible host drivers.
Tools/bootloaderWebtool/index.html - Web bootloader library
Tools/bootloaderWebtool/ch55xbl.js
Other components
- Arduino Blink sketch
SDK/02-ArduinoExample/01-Blink/01-Blink.ino - Arduino PWM sketch
SDK/02-ArduinoExample/02-PWMFading/02-PWMFading.ino - WCH vendor examples · Reference bundles for CH552 and CH554 devices.
SDK/04-WCH_EVT/CH552EVT.ZIP
Connections 23
- Core-board schematic → Keil Blink entry: defines target for
- Core-board schematic → SDCC Blink entry: defines target for
- Board outline → Core-board schematic: documents form factor
- CH552 datasheet → Core-board schematic: specifies MCU
- CH552 datasheet → CH5xx device support: informs definitions
- CH552 datasheet → SDCC peripheral support: informs definitions
- Keil Blink project → Keil Blink entry: builds
- Keil Blink entry → CH5xx device support: uses
- Keil Blink project → Keil firmware image: produces
- RTX Tiny2 entry → CH5xx device support: uses
- RTX Tiny2 entry → RTX Tiny2 config: runs with
- Arduino Blink sketch → CH552 USB bootloader: flashed to
- Arduino PWM sketch → CH552 USB bootloader: flashed to
- SDCC build → SDCC Blink entry: builds
- SDCC Blink entry → SDCC peripheral support: uses
- SDCC build → SDCC firmware images: produces
- Keil firmware image → CH552 USB bootloader: flashed through
- SDCC firmware images → CH552 USB bootloader: flashed through
- WCHISP Tool → WCH bootloader driver: uses
- WCHISP Tool → CH552 USB bootloader: programs
- Browser flasher → Web bootloader library: uses
- Browser flasher → CH552 USB bootloader: programs
- WCH vendor examples → CH552 datasheet: targets