Scan CDK project files and generate build tasks, debug configurations, with a project file explorer sidebar.
Features
- CDK Project Explorer — Tree view in Explorer sidebar showing
.cdkprojfile structure - Toolbar Buttons — One-click Build, Clean, Flash, and Debug for the current project
- 🔧 Build (
F7) — Build the current project - 🗑️ Clean — Clean build outputs
- ⚡ Flash (
F8) — Flash firmware to device - 🪲 Debug — Generate SRAM or FLASH debug launch config
- 🔧 Build (
- Drag & Drop — Import files/folders from Explorer or system into the project tree
- Context Menu — Right-click to toggle exclude from build, remove from project, reveal in Explorer, copy path, and more
- Task Generation —
Scancommand generates Build / Flash / Build-and-Flash tasks for all projects - Debug Configuration — Choose SRAM (reset + load) or FLASH (hardware breakpoints) mode
- Preserves your existing custom tasks and configurations
- Chinese (zh-cn) localization
Requirements
- C-Sky CDK toolchain (
cdk-make.exe) - CSky Flash Programmer (
CSKYFlashProgramerConsole.exe) - C-Sky Debug Server (
DebugServerConsole.exe) - C-Sky GDB (
csky-elfabiv2-gdb.exe)
Extension Settings
| Setting | Default | Description |
|---|---|---|
cdk-devtools.cdkMakePath |
"" |
Full path to cdk-make.exe |
cdk-devtools.flashProgrammerPath |
"" |
Full path to CSKYFlashProgramerConsole.exe |
cdk-devtools.debugServerPath |
"" |
Full path to DebugServerConsole.exe |
cdk-devtools.gdbPath |
"" |
Full path to csky-elfabiv2-gdb.exe |
cdk-devtools.debugPort |
1025 |
DebugServer port number |
Usage
Quick Build / Clean / Flash
- Open a workspace containing
.cdkprojfiles - Configure the tool paths in Settings (
Ctrl+,) - The CDK Project Files view appears in the Explorer sidebar — select your project
- Click the toolbar buttons in the view title bar:
- 🔧 Build or press
F7 - 🗑️ Clean
- ⚡ Flash or press
F8
- 🔧 Build or press
Generate Debug Config
- Select a project in the CDK Project Explorer
- Click 🪲 Debug in the toolbar
- Choose SRAM Debug (reset chip + load firmware) or FLASH Debug (hardware breakpoints)
- The
.vscode/launch.jsonis updated automatically
Batch Task Generation
- Open Command Palette (
Ctrl+Shift+P) → Scan CDK project files and generate tasks - Select projects — tasks and launch configs are generated for all selected projects
Manage Project Files
- Drag
.c/.h/.cpp/.hpp/.s/.S/.ld/.incfiles from Explorer into the tree to add them - Drag a folder to recursively import its contents
- Right-click items for Toggle Exclude from Build, Remove from Project, Reveal in Explorer, Copy Path, etc.
CDK 开发工具
扫描 CDK 工程文件,自动生成构建任务和调试配置,提供工程文件浏览器侧边栏。
功能特性
- CDK 工程浏览器 — 在资源管理器侧边栏以树形视图展示
.cdkproj工程文件结构 - 工具栏按钮 — 一键编译、清理、烧录、调试当前工程
- 🔧 编译工程 (
F7) — 编译当前工程 - 🗑️ 清理工程 — 清理构建输出
- ⚡ 烧录工程 (
F8) — 烧录固件到设备 - 🪲 调试工程 — 选择 SRAM 或 FLASH 模式生成调试配置
- 🔧 编译工程 (
- 拖拽导入 — 从资源管理器或系统拖入文件/文件夹到工程树
- 右键菜单 — 切换排除编译、从工程移除、在资源管理器中显示、复制路径等
- 任务生成 —
扫描命令批量生成编译/烧录/编译烧录任务 - 调试配置 — 选择 SRAM 调试(复位+加载)或 FLASH 调试(硬件断点)
- 保留用户已有的自定义任务和配置
- 中文本地化
环境要求
- C-Sky CDK 工具链 (
cdk-make.exe) - CSky 烧录工具 (
CSKYFlashProgramerConsole.exe) - C-Sky 调试服务器 (
DebugServerConsole.exe) - C-Sky GDB (
csky-elfabiv2-gdb.exe)
扩展设置
| 设置项 | 默认值 | 说明 |
|---|---|---|
cdk-devtools.cdkMakePath |
"" |
cdk-make.exe 的完整路径 |
cdk-devtools.flashProgrammerPath |
"" |
CSKYFlashProgramerConsole.exe 的完整路径 |
cdk-devtools.debugServerPath |
"" |
DebugServerConsole.exe 的完整路径 |
cdk-devtools.gdbPath |
"" |
csky-elfabiv2-gdb.exe 的完整路径 |
cdk-devtools.debugPort |
1025 |
DebugServer 端口号 |
使用方法
快捷编译 / 清理 / 烧录
- 打开包含
.cdkproj文件的工作区 - 在设置中配置工具路径(
Ctrl+,) - 在资源管理器侧边栏找到 CDK 工程文件 视图,选择工程
- 点击视图标题栏的工具栏按钮:
- 🔧 编译工程 或按
F7 - 🗑️ 清理工程
- ⚡ 烧录工程 或按
F8
- 🔧 编译工程 或按
生成调试配置
- 在 CDK 工程浏览器中选择工程
- 点击工具栏 🪲 调试工程
- 选择 SRAM 调试(复位芯片+加载固件)或 FLASH 调试(硬件断点)
.vscode/launch.json自动更新
批量任务生成
- 打开命令面板 (
Ctrl+Shift+P) → 扫描 CDK 工程文件并生成任务 - 选择工程,任务和调试配置将批量生成
管理工程文件
- 从资源管理器拖入
.c/.h/.cpp/.hpp/.s/.S/.ld/.inc文件到工程树 - 拖入文件夹可递归导入
- 右键菜单:切换排除编译、从工程移除、在资源管理器中显示、复制路径 等