Skip to content

PSoC5 Visual Studio Code project with PSoC Creator for Chip Configuration and OTX-Maestro

Notifications You must be signed in to change notification settings

RolfNoot/PSoC5_VS_Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSoC5 VS Code Project

The PSoC5 KITT Scanner Example for Visual Studio Code

For Windows, Linux, MacOs

This example project is refactored for Visual Studio Code. Project configuration is done by the 'good old' PSoC Creator.
'Kitt Scanner' uses only a handfull of magnificent UDB blocks. Just connect 8 LED's to Port2 (common ground).

Kitt Scanner

Visual Studio Code Project
│
├── .vs
│   └── (Visual Studio Code / project settings)
│
├── build
│   └── (The build output for the project: project.elf & project.hex will go here)
│
├── PSoC_Creator.cydsn
│   └── (PSoC Creator project)
│
└── source
    └── (Location of your source files: main.c, etc.)

Preparation

  1. Install Visual Studio Code.
  2. Install the OTX-Maestro extension (Sidebar > Extensions > search OTX-Maestro > Install).
  3. All necessary tools are included in the OTX-Maestro Tools package, which bundles the GNU ARM tools, OpenOCD, and more.
    • Download and install OTX-Maestro Tools.
  4. Clone or download the project to your local machine.
    • Hint: To avoid build issues, keep the project directory path short by placing it close to the root directory.

First Build and Debug!

  1. Open the main project folder in VS Code.
  2. Click Clean-Reconfigure from the status bar. This will scan the PSoC Creator folder for sources, includes, build options, etc., and include them into the project.
    • If the project wasn't initialized before, it will ask which programmer/debugger to use.
  3. Click Build or Build-And-Launch to build (and launch) your project.

Notes

  1. PSoC Creator is needed for the routing / system setup. A Windows environment is required to run PSoC Creator. PSoC Creator is only needed for the chip configuration (often a one-time setup).
  2. OpenOCD and J-Link don't support programming of ECC memory. Make sure the 'Store configuration data in ECC memory' setting in the Design Wide Resources (.cydwr) is disabled.
  3. The build process uses Cypress' cyelftool which is officialy built for Windows only. OTX-Maestro tools includes is a rebuilt version for MacOs and Linux. The official C source files can be found here or here. Another possibility is to use Wine.
  4. PSoC Creator uses CyComponentLibrary.a from the PSoC Creator application folder. The postbuild action copies CyComponentLibrary.a from the PSoC Creator application folder to the project folder.
  5. Feedback and Community Involvement: While significant effort has been made to ensure this setup works smoothly, not all possible configurations and platforms could be tested. Therefore, community feedback and contributions are highly encouraged to further improve the tool. Any issues, suggestions, or improvements can be shared within the Infineon developer community.
  6. Disclaimer: Although this setup uses well-tested tools and configurations, the use of it is at your own risk.

Enjoy!

PSoC5_VS_Creator

About

PSoC5 Visual Studio Code project with PSoC Creator for Chip Configuration and OTX-Maestro

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published