Installing VSCode for act
This page explains the introduction of VSCode for firmware development of the TWELITE wireless module. It does not cover general VSCode usage.
We apologize to those who arrived here via search engines.
We hope you will remember TWELITE, a wireless module characterized by ultra-low power consumption.
To facilitate writing the source code of act, we include configuration files for code interpretation in Visual Studio Code (VSCode).
To analyze source code and build from VSCode, information such as the folder where the library source code is stored is required. This information is reflected by launching VSCode from the TWELITE STAGE app. (Specifically, appropriate environment variables are set when starting VSCode. The project settings refer to these environment variables.)
Installing VSCode
Our support does not cover inquiries about how to install or use VSCode. Please refer to publicly available information.
Depending on your environment, security settings may be required for installation. Please check with your system administrator about installation feasibility and refer to official sources and general information for the procedure.
Features of VSCode
- Editing source code
- Intellisense based on source code interpretation(* This does not guarantee that all definitions are interpreted correctly)
VSCode can be downloaded from the official site.
Installing Plugins
To enable Visual Studio Code to interpret C/C++ language, install the following plugin:
- C/C++ for Visual Studio Code
Notes for Each OS
To launch VSCode from TWELITE STAGE, the code
command must be enabled.
The following information is from code.visualstudio.com:
- Running Visual Studio Code on macOS https://code.visualstudio.com/docs/setup/mac
- Running Visual Studio Code on Windows https://code.visualstudio.com/docs/setup/windows
- Running Visual Studio Code on Linux https://code.visualstudio.com/docs/setup/linux
Notes
MWX library samples include a .vscode
definition. This definition uses the MWSDK_ROOT
environment variable to locate the library source code (under {MWSDK_ROOT}/TWENET/current
).
When starting VSCode from TWELITE STAGE, the above environment variables and others are set. If VSCode is already running, these settings may not be applied.