-
Prerequisites
- VS Code
- ModusToolbox 1.1 (for PDL, Device Configurator, CyMCUElfTool and OpenOCD)
- GNU Arm Embedded Toolchain
- CMake
- Make
- Install homebrew GNU by: 'make brew install homebrew/core/make' as explained here.
- Full MinGW install with make: https://osdn.net/projects/mingw/releases/ Lightweight manual: These files can be copied to, for example the "?/Program Files (x86)/make/" folder and it's path needs to be added to the environment (here's how to do it, reboot after adding the path).
-
VS Code Extensions
- ARM Support For Visual Studio Code (dan-c-underwood)
- C/C++ IntelliSense, debugging (microsoft)
- CMake language support (twxs)
- CMake Tools (microsoft)
- Cortex-Debug GDB support (marus25)
- LinkerScript support for GNU (Zixuan Wang)
- Open in Application (Fabio Spampinato)
- Output Colorizer (IBM)
- Tasks (actboy168)
-
Configure
- Command Palette (CTRL+SHIFT+P) > type: JSON > Click Preferences: Open Settings (JSON)
- Add the following lines to the VS Code User settings:
"C_Cpp.default.configurationProvider": "vector-of-bool.cmake-tools", "C_Cpp.default.compilerPath": "arm-none-eabi-gcc", "C_Cpp.loggingLevel":"Debug", // Location of the cmake executable "cmake.cmakePath": "/Applications/CMake.app/Contents/bin/cmake", //"cmake.cmakePath": "C:/Program Files/CMake/bin/cmake.exe", // Location of the OpenOCD executable "cortex-debug.openocdPath": "/Applications/ModusToolbox_1.1/tools/openocd-2.1/bin/openocd", //"cortex-debug.openocdPath": "C:/ModusToolbox_1.1/tools/openocd-2.01/bin/openocd.exe", // Location of the JLink GDB Server (if used) "cortex-debug.JLinkGDBServerPath": "/Applications/SEGGER/JLink_V644f/JLinkGDBServerCLExe", "cmake.configureOnOpen": true, "cmake.sourceDirectory": "${workspaceRoot}"
-
Check
- if make is installed by typing 'make -v' (or mingw32-make.exe -v) into the terminal window of VS Code (the folder of the make binary needs to be added to the system's path variable)
-
Remind
-
after changing the device configuration to use
- Clean Reconfigure
- Clean Rebuild
in order to build the image properly.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
RolfNoot/DEPRECATED---PSoC6VScodeTemplate
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published