1. Overview & Requirements
ModusToolbox Assistant integrates Infineon ModusToolbox workflows into VS Code. It provides project creation, BSP/content management, device kit awareness, tool installation, and deep IDE integration.
Main Capabilities
- Create ModusToolbox applications from BSPs and code examples
- Manage local BSP content for online/offline use
- Inspect application status, fix tasks/settings, rebuild
- Install ModusToolbox tools and the LLVM toolchain
- Manage connected DevKits and update firmware
- Browse documentation, examples, and community links
- Configure extension and workspace settings
Prerequisites
- VS Code 1.71.0 or later
- ModusToolbox 3.2+ (not compatible with 2.x, 3.0, or 3.1)
- Recommended extensions: clangd Cortex-Debug
- Toolchains and utilities can be installed from inside the extension
- Optional: Internet access to fetch manifests/BSPs
2. Installation & First Run
- Open the Extensions view (Ctrl+Shift+X) and search for ModusToolbox Assistant.
- Click Install and reload VS Code when prompted.
If you're behind a proxy/firewall, configure network access in VS Code or system settings before first use. For fully offline operation, enable Local Content mode and populate BSPs in
Local Content Storage.
3. UI Tour & Navigation
By default, the ModusToolbox Assistant page is displayed when Visual Studio Code is opened.
This can be changed in the Visual Studio preferences to never open automatically, or only open when a ModusToolbox application is loaded.
The UI is tabbed and responsive to VS Code dark/light themes.
Main Tabs
- Getting Started – Orientation, quick steps, and feature overview
- Create Project – 4‑step wizard for new applications
- Recently Opened – Jump back into recent apps
- Application – Project health, build/program/erase, memory
- DevKit List – Connected kits and BSP association
- Local Content Storage – Manage BSP packages (offline mode)
- Settings – Extension/workspace preferences
- Glossary – ModusToolbox Terminology and definitions
- User Guide – Built‑in documentation
4. Create Project Wizard
Use the guided wizard to create a new ModusToolbox application based on a Board Support Package (BSP) and optional code examples.
Steps
- Project Information: Enter application name and location (validation enforces safe names/paths); choose configuration (Debug/Release).
- BSP Selection: Pick a BSP from available boards. Categories, search, and manifest status help narrow the list.
- Example Selection: Browse by category; select one or more examples to include.
- Review & Create: Confirm summary and create the application. Progress and any errors are streamed from the backend.
5. Application Status & Actions
Aggregates project details, tools, middleware, documentation, and memory snapshots. Provides one‑click fixes when tasks/settings are missing or out of date.
What You See
- Project list with missing asset indicators and details
- Tools and middleware detected for each project
- Documentation links per project and globally
- Current configuration and theme awareness
Actions
- Automatically create file required for Visual Studio Code support if they are missing
- Update VS Code tasks and settings as needed by the extension
- Open project folder or README
- Run build actions: Build, Rebuild, Clean
- Program options: Program or Quick Program (toggle via menu)
- Erase options: Erase (internal) or Erase All (internal + external) (toggle via menu)
- Launch tools: Device Configurator, Library Manager
- Quick Tasks: run curated tasks (if available)
- Refresh application and rescan environment
Build/Program/Erase Controls
- Left‑click executes the current choice. Right‑click opens a menu to toggle modes (e.g., Program vs. Quick Program; Erase vs. Erase All).
- Missing Assets banner provides Fix actions to restore assets required for a sucessful build.
For memory analysis, see Memory Usage View.
6. Recently Opened
Track and reopen recent applications with timestamps and BSP metadata. Use Open
7. Local Content Storage
Manage locally stored content for offline development. Content is selected by selecting specific BSPs. All content associated with a BSP is included.
- Two lists: Not In Local Storage and In Local Storage; drag & drop BSPs between lists
- Bulk operations: Move All To Local, Remove All From Local, Revert
- Updates: Check For Updates (in current content in Local Storage) and Update Existing Content
The assistant computes in/not in lists against the active manifest and indicates when updates are needed. In Local Content operating mode, the manifest is read from your LCS path.
8. DevKit Management
Enumerate connected Infineon development kits, show firmware versions, features, bridging types, and BSP association.
- Update kit firmware when out of date
- Associate or change BSP for a connected kit
- Monitor USB mode and KitProg type
9. Settings & Preferences
Configure both assistant and workspace settings with validation and inline tips.
- Ownership: Modus Extension Workspace
- Types: string, number, boolean, choice, URI, directory path, file path, tools path
- Automatic read/write to VS Code global/workspace state
- Choice settings display helpful tips next to each option
- Conditional enablement, e.g. proxy_server disabled when proxy_mode=direct
- Manifest DB URL Mode: default, china, or custom (shows custom URL field)
- Local Content Mode: set operating_mode=Local Content and choose lcs_path
- Toolchain: select versions, or set toolsversion=Custom to enable custompath
- Quick‑fixes for invalid paths and configuration mismatches
Auto‑display
Setting: mtbassist2.autodisplay – choose when the main page appears automatically on startup.
10. Documentation & Help
- Open Getting Started and Documentation links in your external browser
- Browse code examples on GitHub
- Visit the ModusToolbox community forums
- Built‑in User Guide (this page) with dark/light theme support
11. Memory Usage View
Visualize application memory in a 3‑level hierarchy: Physical Memory → Regions → Segments. Inspect names, start addresses, sizes, and section stacks per segment.
Display Details
- Top summary shows overall physical memory usage with a devices icon and tooltip.
- Each Region shows its own usage with a person icon and tooltip.
- Segments display sizes and details; percentage is not shown (displayed as "–").
Expand/Collapse Behavior
- Default: top‑level sections are expanded; regions are collapsed.
- Use Expand All / Collapse All to toggle the view; collapsing keeps the top level open.
12. Commands, Menus & Shortcuts
Commands
ModusToolbox Assistant: Show Main Page – open the assistant
ModusToolbox Assistant: Set Intellisense Project – select the active project for IntelliSense
ModusToolbox Assistant: Display documentation for symbol – context‑menu action in C files
Context Menu
In C files, right‑click and choose Display documentation for symbol to open relevant docs.
Terminal Profile
Profile: ModusToolbox Shell – use for environment‑aware shell sessions.
Keybindings
- Ctrl+Shift+F1 – Display documentation for symbol
13. Troubleshooting
Common Issues
- Tools location errors: Verify the tools path in Settings and permissions.
- Missing assets: Use the Fix actions in Application Status to restore tasks/settings.
- Manifest not available: Check network/proxy or switch to Local Content mode with LCS populated.
- Build issues: Review the Output panel, ensure compilers (LLVM) are installed.
- Buttons not appearing: Rebuild the extension content and reload the VS Code window to refresh the webview.
Where to Look
- VS Code Output: ModusToolbox channel
- Developer Tools Console (Help → Toggle Developer Tools)
- Extension logs and progress notifications in the UI
14. FAQ
Does the assistant work offline?
Yes, when BSPs are available in Local Content Storage and cached manifests are present. Some features (example fetching) may require connectivity.
Can I change the default tools install path?
Yes, configure the tools path in Settings. The installer will honor this location.
How do I switch the IntelliSense project?
Use the command palette entry Set Intellisense Project or the control within Application Status if present.
15. About
Version: 2.x (see VS Code Extensions view for the exact version).
Copyright © C And T Software. Licensed under the Apache License 2.0.