HT32 Project Assistant for VS Code
Overview
HT32 Project Assistant for VS Code brings a Keil/HT32-IDE-like workflow into VS Code for Holtek HT32 devices.
Key features
- Activity Bar icon with two views: HT32 Actions and HT32 Project
- One-click conversion of HT32-IDE (Eclipse CDT) projects (
.project/.cproject) into a ready-to-build VS Code workspace
- Auto-generate
.vscode/c_cpp_properties.json, tasks.json, launch.json, and a CMakeLists.txt
- File tree in HT32 Project view for quick opening of
.c/.h/.s sources
- Future-ready hooks for uVision import and New Project wizard
Views
HT32 Actions
- Create a New Project — (placeholder for wizard)
- Convert a uVision Project — (placeholder for importer)
- Convert a HT32-IDE Project — converts
.project/.cproject to VS Code
HT32 Project
- Displays files from common HT32 folders:
User/ CMSIS/ Library/ GNU_ARM/ USBD_Library/ Retarget/ Utilities
- Lists
.c/.h/.s files; click to open
Getting Started
npm install
npm install xml2js
npm install --save-dev @types/xml2js
npm run compile
Launch the extension (F5) and open a folder that contains .project and .cproject.
Open the HT32 icon → HT32 Actions → Convert a HT32-IDE Project.
Build / Flash / Debug
- Ctrl+Shift+B → CMake: Configure
- Ctrl+Shift+B → CMake: Build
- Ctrl+Shift+B → Flash (OpenOCD)
- Run & Debug: Cortex-Debug (OpenOCD) or Cortex-Debug (J-Link)
Roadmap
- uVision (
.uvprojx) importer → .csolution/.cproject (CMSIS-Toolbox)
- New Project wizard (device/RTOS/pack selection)
- Parse
.csolution.yml/.cproject.yml and render real project groups
- Context menus and deeper file operations
License
MIT
| |