Skip to content

v1.2.0 - GCC + CMake Dual Build Support

Latest

Choose a tag to compare

@Majie-xixi Majie-xixi released this 25 May 01:35
· 26 commits to main since this release

What's New in v1.2.0

GCC + CMake Dual Build System

  • One-click CMakeLists.txt + linker script + GCC startup file generation
  • Same project compiles under both Keil MDK (ARMCC) and CLion/VS Code (GCC)
  • Default is Keil-only; check GCC box to add CMake support
  • All 4 families, 37 chips verified with both compilers

Auto-Generated Linker Scripts

  • GD32: .vectors section + __gVectors symbol
  • STM32: .isr_vector section + g_pfnVectors / _estack (CubeIDE-compatible format)
  • Cortex-M4 automatically gets CCM/TCM RAM segment (64KB @ 0x10000000)

Smart GCC Startup File Resolution

  • SDK has a GCC directory? Auto-copies from there
  • No GCC directory? Recursively searches GD32EmbeddedBuilder plugin folder
  • Neither found? Prompts the official download URL (GD32 or STM32)

Improvements

  • CMSIS Compatibility: delay.h adds DWT_Type definition for STM32F10x legacy CMSIS v1.30
  • Triple-Compiler MSR_MSP: sysconfig.c auto-adapts to ARMCC / GCC / IAR via compiler macros
  • FreeRTOS Heap Reduced: 15KB -> 5KB for small-RAM MCUs
  • Zero-Warning SDK Build: CMSIS/FIRMWARE headers marked as SYSTEM includes; SDK sources compiled with -w
  • Dual-Compiler Templates: retarget_printf.c semihosting pragma guarded with #ifndef GNUC
  • UI Refresh: Fusion theme + QSS card-style layout with rounded corners + monospace log font

Supported Chips (37 models)

Series Core Vendor Models Keil GCC
STM32F10x Cortex-M3 STMicro 9 OK OK
STM32F4xx Cortex-M4 STMicro 6 OK OK
GD32F10x Cortex-M3 GigaDevice 8 OK OK
GD32F4xx Cortex-M4 GigaDevice 14 OK OK

How to Use

  1. Download MCUQuickStart.exe from this release
  2. Prepare SDK: place chip firmware packages + FreeRTOS sources in one directory
  3. Run the exe, set SDK root, select chip / template / optional libs
  4. Keil: open MDK-ARM/.uvprojx | CLion/VS Code: open CMakeLists.txt
  5. CLion users need arm-none-eabi-gcc toolchain installed

37 chips, 4 families, 3 templates, Keil + GCC dual build, FreeRTOS optional — all verified to compile out of the box.