Skip to content

Cheatsheet — ModusToolbox™ and VS Code Workflow (M02)

This content is not available in your language yet.

Course 1 · Module 2

Lesson · Lab · ← Table of Contents


Piece Role
ModusToolbox™ สร้างโปรเจกต์, libraries, configurators, OpenOCD recipes
VS Code แก้ไขโค้ด, build/debug UI
TESA Firmware SDK / libs API ที่แอปเรียกใช้
KitProg3 Flash/debug บนคิต

Key phrase: ModusToolbox™ สร้างโปรเจกต์และจัดการ toolchain — VS Code เขียนโค้ดและ debug — SDK คือ API


จาก Edge quick start + installation guide:

  1. ModusToolbox™ Setup (tools 3.6+ หรือเวอร์ชันที่ชุดแล็บกำหนด)
  2. Arm GNU Toolchain (GCC)
  3. VS Code + extensions ที่กำหนด (VS Code guide)
  4. Programming tools / KitProg access
  5. (Optional) J-Link, DEEPCRAFT™ packs

Dashboard / Project Creator
→ select BSP (must match kit)
→ select example (Hello World)
→ generate project
Open *.code-workspace in VS Code
→ build
→ program/flash via KitProg3 + OpenOCD
→ debug (breakpoint in main)

ตัวอย่างอ้างอิงหลักสูตร: TESAIoT Developer Hub
Host / Digital Twin ใน VS Code: Bitstream Studio
แพ็กแล็บ (HEX / Flasher / VSIX / web-app): TESAIoT_Hackathon
ตัวอย่าง Infineon เสริม: mtb-example-psoc-edge-hello-world


Tool Command / entry Use
Device Configurator make device-configurator pins, clocks, peripherals
Library Manager จาก Dashboard / IDE add/remove/update libs
Build IDE button หรือ make compile/link
Program launch config / make target หรือ TESAIoT Flasher + HEX flash image
fw-loader มากับ tools package อัปเดต KitProg → KitProg3
Lab pack TESAIoT_Hackathon hex/, flasher/, vsix/, web-app/

คู่มือรวม: Tools package user guide (PDF) · AN235935 (PDF)


Symptom Check
No kit / program fail USB, KitProg3, driver, cable
Toolchain not found tools install path, correct terminal
Runs wrong pins wrong BSP (KIT_PSE84_EVAL)
No UART text COM port, baud, retarget-io
Debug attach fail OpenOCD busy port, Cortex-Debug

Do Don’t
เลือก BSP ให้ตรงคิต คัดลอก libs ข้ามโปรเจกต์มั่ว ๆ
เปิด .code-workspace แก้ register ก่อนทำ Hello World สำเร็จ
ใช้ Library Manager สันนิษฐานว่า build = ลงบอร์ดแล้ว

TESA Open Knowledge · © 2026 สมาคมสมองกลฝังตัวไทย (TESA) · CC BY-NC 4.0

Content is licensed CC BY-NC 4.0. Reuse it non-commercially and credit the Thai Embedded Systems Association (TESA) every time. · How to cite TESA