/PSoC-Host-Application

Library PSoC C-API to access Cypress MCU via SPI + Utility to test hardware and software features

Primary LanguageC++BSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

PSoC Host Application

Latest Build

pipeline status

Documentation

DOC_psoc-host-application.pdf (drc02)

Git Submodules

This project includes the following subproject(s):

Subproject Type Hosted at
PSoC-Bootloader-Host executeable ../psoc-bootloader-host-application.git

Project structure

Root of the PSoC Host Application project (check 'root' CMakeLists.txt)
├──Bootloader-Tool (psoc-bootloader-tool) [git submodule]
│   ├───include
│   ├───src
|   └───CMakeLists.txt
├───C-API (libpsoc-drc02)
│   ├───include
│   ├───src
|   └───CMakeLists.txt
├───UI-Tool (psoc-ui-tool)
│   ├───include
│   ├───src
|   └───CMakeLists.txt
├───Tests (psoc-tests)
│   ├───include
│   ├───src
|   └───CMakeLists.txt
├───Examples
│   ├───include
│   ├───src
|   └───CMakeLists.txt
├─README.md
└─CMakeLists.txt

Build

  • build directory should be out of source tree (when using Eclipse IDE)
  • create build directory
devel@deb10:/work$ mkdir build_psoc_host
  • assume the project source code (see above) is locate within directory psoc-host-application
  • run cmake to create Makefiles
devel@deb10:/work/build_psoc_host$ cmake -D CMAKE_TOOLCHAIN_FILE=../psoc-host-application/arm-linux-gnueabihf-toolchain.CMakeCross.txt CMakeLists.txt ../psoc-host-application/
  • build binaries
devel@deb10:/work/build_psoc_host$ make
  • create Debian packages
devel@deb10:/work/build_psoc_host$ cpack

Optional for using Eclipse IDE

  • create Eclipse project files/settings
devel@Stretch:/work/build_psoc_host$ cmake -D CMAKE_TOOLCHAIN_FILE=../psoc-host-application/arm-linux-gnueabihf-toolchain.CMakeCross.txt CMakeLists.txt -G "Eclipse CDT4 - Unix Makefiles" ../psoc-host-application/