element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Connected Cloud Challenge
  • Challenges & Projects
  • Design Challenges
  • Connected Cloud Challenge
  • More
  • Cancel
Connected Cloud Challenge
Blog TFT support for PSoC®︎ 6 WiFi-BT Pioneer Kit with ModusToolbox -#3
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: weiwei2
  • Date Created: 11 May 2020 2:37 AM Date Created
  • Views 1080 views
  • Likes 3 likes
  • Comments 0 comments
Related
Recommended

TFT support for PSoC®︎ 6 WiFi-BT Pioneer Kit with ModusToolbox -#3

weiwei2
weiwei2
11 May 2020

having initial failure with the pioneer kit DAPLink (note: i have subsequently resolved it) for mBED, i have decided to check out the forum on any TFT support under ModusToolbox or emwin

to my delight there is a forum post here that adds TFT support in Modustoolbox

 

first, i try to add the TFT to the project i create in my blog 1

i did encounter a problem when it complains CY_TOOLS_PATHS is not set, and i resolve it by adding environment variable as describe in  https://www.cypress.com/file/492936/download image

Then there is yet another error cannot resolve a value by dynamic variable cy_prj_path. While this is a bit annoying, i did find the solution on the forum.

 

the more annoying error is that once you set the CY_TOOLS_PATHS, the CY_DOTMODUSTOOLBOX_PATH in start.mk file is invalid

my settings below is simply ignored.

image

 

the summary is need more settings work if install in non default location

 

back to the TFT support

create new project and add the emwin and TFT in library

image

choose COMPONENTS=EMWIN_NOSNTS

 

put in the #include "GUI.h"

and add these lines before the forever loop

image

 

then i get an error again, due to path. Modus Toolbox is really non forgiving when it comes to non default installation path

ERROR: The backend failed to start. The current executing tool is expected to be run from a sub-directory of 'tools_#.#'. The tools folder was not found above the currently executing path:

E:/ModusToolbox/Tools_2.1/cfg-backend-cli

 

 

The most likely cause is a corrupt install. Either reinstall the tools or specify a custom path on the command line.

make: *** [libs/psoc6make/make/core/config.mk:161: libs/TARGET_CY8CKIT-062-WIFI-BT/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg.timestamp] Error 1

"e:/ModusToolbox/Tools_2.1/modus-shell/bin/make CY_MAKE_IDE=eclipse CY_IDE_TOOLS_DIR=e:/ModusToolbox/Tools_2.1 -j12 all" terminated with exit code 2. Build might be incomplete.

 

i need to do below at the makefile

image

take note also the IDE complains about duplicate settings of environment variables (of which i have also defined and set CY_TOOLS_PATHS) i have to remove the environment variable to make it work

 

another problem i face is Error: CMSIS-DAP: SWD not supported

it is described at https://community.cypress.com/thread/49684  where we need to make sure the board is not in DAPLink mode (LED blinking). only bulk or HID mode (LED lighten up is supported)

image

 

Reference

Adding TFT to my project

https://community.cypress.com/community/software-forums/modustoolbox/blog/2020/01/13/adding-tft-to-my-project

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube