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
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.
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
choose COMPONENTS=EMWIN_NOSNTS
put in the #include "GUI.h"
and add these lines before the forever loop
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
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)
Reference