modus toolbox

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
xlu
Level 2
Level 2
5 replies posted First solution authored 5 questions asked

Hello, I am new to Modus toolbox. I just try use modus toolbox using Eclipse IDE and Cy8ckit-041s-max 4100s-max kit to try my first project "hello world" that is example code. but it fail compilation : the error :

"C:\\Cypress\\ModusToolbox\\tools_2.2\\modus-shell\\bin\\make" CY_MAKE_IDE=eclipse CY_MAKE_IDE_VERSION=2.2 CY_IDE_TOOLS_DIR=C:/Cypress/ModusToolbox/tools_2.2 -j8 all
Makefile:184: *** Unable to find any of the available CY_TOOLS_PATHS -- . On Windows, use forward slashes.. Stop.
"C:/Cypress/ModusToolbox/tools_2.2/modus-shell/bin/make CY_MAKE_IDE=eclipse CY_MAKE_IDE_VERSION=2.2 CY_IDE_TOOLS_DIR=C:/Cypress/ModusToolbox/tools_2.2 -j8 all" terminated with exit code 2. Build might be incomplete.

I do not know what I miss in the configuration of Modus toolbox, could somebody help me out

 

Thanks

 

 

0 Likes
1 Solution
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Hello @xlu ,

Because you are installing ModusToolbox into a non-default location, you need to specify the path to your “tools”
directory using a System Variable. Open the Environment Variables dialog, and create a new System Variable.
For example:
CY_TOOLS_PATHS = C:/Cypress/ModusToolbox/tools_2.2/

DheerajK_81_0-1612975557037.png

Once this is added, close and open ModusToolbox. It should work fine hereafter.

Regards,
Dheeraj



View solution in original post

0 Likes
3 Replies
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Hello @xlu ,

Because you are installing ModusToolbox into a non-default location, you need to specify the path to your “tools”
directory using a System Variable. Open the Environment Variables dialog, and create a new System Variable.
For example:
CY_TOOLS_PATHS = C:/Cypress/ModusToolbox/tools_2.2/

DheerajK_81_0-1612975557037.png

Once this is added, close and open ModusToolbox. It should work fine hereafter.

Regards,
Dheeraj



0 Likes
xlu
Level 2
Level 2
5 replies posted First solution authored 5 questions asked

Thanks, it works. but when compile, it still come following error:

Generating compilation database file...
-> ./build/compile_commands.json
Compilation database file generation complete
Building 103 file(s)
Compiling libs/clib-support/TOOLCHAIN_GCC_ARM/cy_newlib_freertos.c -DCY_USING_HAL -DCY_APPNAME_mtb_example_psoc4_hello_world -DCY8C4146AZI_S433 -DCY_TARGET_DEVICE=CY8C4146AZI_S433 -DTARGET_CY8CKIT_041_41XX -DCY_TARGET_BOARD=CY8CKIT_041_41XX -DCOMPONENT_CAT2 -DCOMPONENT_CM0P -DCOMPONENT_CUSTOM_DESIGN_MODUS -DCOMPONENT_PSOC4HAL -DCOMPONENT_SOFTFP -DDEBUG -I. -I./COMPONENT_CUSTOM_DESIGN_MODUS -I./COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_CY8CKIT-041-41XX -I./COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_CY8CKIT-041-41XX/GeneratedSource -I./libs -I./libs/TARGET_CY8CKIT-041-41XX -I./libs/capsense -I./libs/clib-support -I./libs/clib-support/TOOLCHAIN_GCC_ARM -I./libs/core-lib -I./libs/core-lib/include -I./libs/mtb-hal-cat2 -I./libs/mtb-hal-cat2/COMPONENT_CAT2 -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include/pin_packages -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include/triggers -I./libs/mtb-hal-cat2/include -I./libs/mtb-pdl-cat2 -I./libs/mtb-pdl-cat2/cmsis -I./libs/mtb-pdl-cat2/cmsis/include -I./libs/mtb-pdl-cat2/devices -I./libs/mtb-pdl-cat2/devices/include -I./libs/mtb-pdl-cat2/devices/include/ip -I./libs/mtb-pdl-cat2/drivers -I./libs/mtb-pdl-cat2/drivers/include
Compiling libs/clib-support/cy_mutex_pool.c -DCY_USING_HAL -DCY_APPNAME_mtb_example_psoc4_hello_world -DCY8C4146AZI_S433 -DCY_TARGET_DEVICE=CY8C4146AZI_S433 -DTARGET_CY8CKIT_041_41XX -DCY_TARGET_BOARD=CY8CKIT_041_41XX -DCOMPONENT_CAT2 -DCOMPONENT_CM0P -DCOMPONENT_CUSTOM_DESIGN_MODUS -DCOMPONENT_PSOC4HAL -DCOMPONENT_SOFTFP -DDEBUG -I. -I./COMPONENT_CUSTOM_DESIGN_MODUS -I./COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_CY8CKIT-041-41XX -I./COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_CY8CKIT-041-41XX/GeneratedSource -I./libs -I./libs/TARGET_CY8CKIT-041-41XX -I./libs/capsense -I./libs/clib-support -I./libs/clib-support/TOOLCHAIN_GCC_ARM -I./libs/core-lib -I./libs/core-lib/include -I./libs/mtb-hal-cat2 -I./libs/mtb-hal-cat2/COMPONENT_CAT2 -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include/pin_packages -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include/triggers -I./libs/mtb-hal-cat2/include -I./libs/mtb-pdl-cat2 -I./libs/mtb-pdl-cat2/cmsis -I./libs/mtb-pdl-cat2/cmsis/include -I./libs/mtb-pdl-cat2/devices -I./libs/mtb-pdl-cat2/devices/include -I./libs/mtb-pdl-cat2/devices/include/ip -I./libs/mtb-pdl-cat2/drivers -I./libs/mtb-pdl-cat2/drivers/include
Compiling libs/mtb-hal-cat2/COMPONENT_CAT2/source/cyhal_ezi2c.c -DCY_USING_HAL -DCY_APPNAME_mtb_example_psoc4_hello_world -DCY8C4146AZI_S433 -DCY_TARGET_DEVICE=CY8C4146AZI_S433 -DTARGET_CY8CKIT_041_41XX -DCY_TARGET_BOARD=CY8CKIT_041_41XX -DCOMPONENT_CAT2 -DCOMPONENT_CM0P -DCOMPONENT_CUSTOM_DESIGN_MODUS -DCOMPONENT_PSOC4HAL -DCOMPONENT_SOFTFP -DDEBUG -I. -I./COMPONENT_CUSTOM_DESIGN_MODUS -I./COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_CY8CKIT-041-41XX -I./COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_CY8CKIT-041-41XX/GeneratedSource -I./libs -I./libs/TARGET_CY8CKIT-041-41XX -I./libs/capsense -I./libs/clib-support -I./libs/clib-support/TOOLCHAIN_GCC_ARM -I./libs/core-lib -I./libs/core-lib/include -I./libs/mtb-hal-cat2 -I./libs/mtb-hal-cat2/COMPONENT_CAT2 -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include/pin_packages -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include/triggers -I./libs/mtb-hal-cat2/include -I./libs/mtb-pdl-cat2 -I./libs/mtb-pdl-cat2/cmsis -I./libs/mtb-pdl-cat2/cmsis/include -I./libs/mtb-pdl-cat2/devices -I./libs/mtb-pdl-cat2/devices/include -I./libs/mtb-pdl-cat2/devices/include/ip -I./libs/mtb-pdl-cat2/drivers -I./libs/mtb-pdl-cat2/drivers/include
Compiling libs/mtb-hal-cat2/COMPONENT_CAT2/source/cyhal_flash.c -DCY_USING_HAL -DCY_APPNAME_mtb_example_psoc4_hello_world -DCY8C4146AZI_S433 -DCY_TARGET_DEVICE=CY8C4146AZI_S433 -DTARGET_CY8CKIT_041_41XX -DCY_TARGET_BOARD=CY8CKIT_041_41XX -DCOMPONENT_CAT2 -DCOMPONENT_CM0P -DCOMPONENT_CUSTOM_DESIGN_MODUS -DCOMPONENT_PSOC4HAL -DCOMPONENT_SOFTFP -DDEBUG -I. -I./COMPONENT_CUSTOM_DESIGN_MODUS -I./COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_CY8CKIT-041-41XX -I./COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_CY8CKIT-041-41XX/GeneratedSource -I./libs -I./libs/TARGET_CY8CKIT-041-41XX -I./libs/capsense -I./libs/clib-support -I./libs/clib-support/TOOLCHAIN_GCC_ARM -I./libs/core-lib -I./libs/core-lib/include -I./libs/mtb-hal-cat2 -I./libs/mtb-hal-cat2/COMPONENT_CAT2 -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include/pin_packages -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include/triggers -I./libs/mtb-hal-cat2/include -I./libs/mtb-pdl-cat2 -I./libs/mtb-pdl-cat2/cmsis -I./libs/mtb-pdl-cat2/cmsis/include -I./libs/mtb-pdl-cat2/devices -I./libs/mtb-pdl-cat2/devices/include -I./libs/mtb-pdl-cat2/devices/include/ip -I./libs/mtb-pdl-cat2/drivers -I./libs/mtb-pdl-cat2/drivers/include
Compiling libs/mtb-hal-cat2/COMPONENT_CAT2/source/cyhal_gpio.c -DCY_USING_HAL -DCY_APPNAME_mtb_example_psoc4_hello_world -DCY8C4146AZI_S433 -DCY_TARGET_DEVICE=CY8C4146AZI_S433 -DTARGET_CY8CKIT_041_41XX -DCY_TARGET_BOARD=CY8CKIT_041_41XX -DCOMPONENT_CAT2 -DCOMPONENT_CM0P -DCOMPONENT_CUSTOM_DESIGN_MODUS -DCOMPONENT_PSOC4HAL -DCOMPONENT_SOFTFP -DDEBUG -I. -I./COMPONENT_CUSTOM_DESIGN_MODUS -I./COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_CY8CKIT-041-41XX -I./COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_CY8CKIT-041-41XX/GeneratedSource -I./libs -I./libs/TARGET_CY8CKIT-041-41XX -I./libs/capsense -I./libs/clib-support -I./libs/clib-support/TOOLCHAIN_GCC_ARM -I./libs/core-lib -I./libs/core-lib/include -I./libs/mtb-hal-cat2 -I./libs/mtb-hal-cat2/COMPONENT_CAT2 -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include/pin_packages -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include/triggers -I./libs/mtb-hal-cat2/include -I./libs/mtb-pdl-cat2 -I./libs/mtb-pdl-cat2/cmsis -I./libs/mtb-pdl-cat2/cmsis/include -I./libs/mtb-pdl-cat2/devices -I./libs/mtb-pdl-cat2/devices/include -I./libs/mtb-pdl-cat2/devices/include/ip -I./libs/mtb-pdl-cat2/drivers -I./libs/mtb-pdl-cat2/drivers/include
Compiling libs/mtb-hal-cat2/COMPONENT_CAT2/source/cyhal_hwmgr.c -DCY_USING_HAL -DCY_APPNAME_mtb_example_psoc4_hello_world -DCY8C4146AZI_S433 -DCY_TARGET_DEVICE=CY8C4146AZI_S433 -DTARGET_CY8CKIT_041_41XX -DCY_TARGET_BOARD=CY8CKIT_041_41XX -DCOMPONENT_CAT2 -DCOMPONENT_CM0P -DCOMPONENT_CUSTOM_DESIGN_MODUS -DCOMPONENT_PSOC4HAL -DCOMPONENT_SOFTFP -DDEBUG -I. -I./COMPONENT_CUSTOM_DESIGN_MODUS -I./COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_CY8CKIT-041-41XX -I./COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_CY8CKIT-041-41XX/GeneratedSource -I./libs -I./libs/TARGET_CY8CKIT-041-41XX -I./libs/capsense -I./libs/clib-support -I./libs/clib-support/TOOLCHAIN_GCC_ARM -I./libs/core-lib -I./libs/core-lib/include -I./libs/mtb-hal-cat2 -I./libs/mtb-hal-cat2/COMPONENT_CAT2 -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include/pin_packages -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include/triggers -I./libs/mtb-hal-cat2/include -I./libs/mtb-pdl-cat2 -I./libs/mtb-pdl-cat2/cmsis -I./libs/mtb-pdl-cat2/cmsis/include -I./libs/mtb-pdl-cat2/devices -I./libs/mtb-pdl-cat2/devices/include -I./libs/mtb-pdl-cat2/devices/include/ip -I./libs/mtb-pdl-cat2/drivers -I./libs/mtb-pdl-cat2/drivers/include
Compiling libs/mtb-hal-cat2/COMPONENT_CAT2/source/cyhal_i2c.c -DCY_USING_HAL -DCY_APPNAME_mtb_example_psoc4_hello_world -DCY8C4146AZI_S433 -DCY_TARGET_DEVICE=CY8C4146AZI_S433 -DTARGET_CY8CKIT_041_41XX -DCY_TARGET_BOARD=CY8CKIT_041_41XX -DCOMPONENT_CAT2 -DCOMPONENT_CM0P -DCOMPONENT_CUSTOM_DESIGN_MODUS -DCOMPONENT_PSOC4HAL -DCOMPONENT_SOFTFP -DDEBUG -I. -I./COMPONENT_CUSTOM_DESIGN_MODUS -I./COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_CY8CKIT-041-41XX -I./COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_CY8CKIT-041-41XX/GeneratedSource -I./libs -I./libs/TARGET_CY8CKIT-041-41XX -I./libs/capsense -I./libs/clib-support -I./libs/clib-support/TOOLCHAIN_GCC_ARM -I./libs/core-lib -I./libs/core-lib/include -I./libs/mtb-hal-cat2 -I./libs/mtb-hal-cat2/COMPONENT_CAT2 -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include/pin_packages -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include/triggers -I./libs/mtb-hal-cat2/include -I./libs/mtb-pdl-cat2 -I./libs/mtb-pdl-cat2/cmsis -I./libs/mtb-pdl-cat2/cmsis/include -I./libs/mtb-pdl-cat2/devices -I./libs/mtb-pdl-cat2/devices/include -I./libs/mtb-pdl-cat2/devices/include/ip -I./libs/mtb-pdl-cat2/drivers -I./libs/mtb-pdl-cat2/drivers/include
Compiling libs/mtb-hal-cat2/COMPONENT_CAT2/source/cyhal_interconnect.c -DCY_USING_HAL -DCY_APPNAME_mtb_example_psoc4_hello_world -DCY8C4146AZI_S433 -DCY_TARGET_DEVICE=CY8C4146AZI_S433 -DTARGET_CY8CKIT_041_41XX -DCY_TARGET_BOARD=CY8CKIT_041_41XX -DCOMPONENT_CAT2 -DCOMPONENT_CM0P -DCOMPONENT_CUSTOM_DESIGN_MODUS -DCOMPONENT_PSOC4HAL -DCOMPONENT_SOFTFP -DDEBUG -I. -I./COMPONENT_CUSTOM_DESIGN_MODUS -I./COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_CY8CKIT-041-41XX -I./COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_CY8CKIT-041-41XX/GeneratedSource -I./libs -I./libs/TARGET_CY8CKIT-041-41XX -I./libs/capsense -I./libs/clib-support -I./libs/clib-support/TOOLCHAIN_GCC_ARM -I./libs/core-lib -I./libs/core-lib/include -I./libs/mtb-hal-cat2 -I./libs/mtb-hal-cat2/COMPONENT_CAT2 -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include/pin_packages -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include/triggers -I./libs/mtb-hal-cat2/include -I./libs/mtb-pdl-cat2 -I./libs/mtb-pdl-cat2/cmsis -I./libs/mtb-pdl-cat2/cmsis/include -I./libs/mtb-pdl-cat2/devices -I./libs/mtb-pdl-cat2/devices/include -I./libs/mtb-pdl-cat2/devices/include/ip -I./libs/mtb-pdl-cat2/drivers -I./libs/mtb-pdl-cat2/drivers/include
Compiling libs/mtb-hal-cat2/COMPONENT_CAT2/source/cyhal_lptimer.c -DCY_USING_HAL -DCY_APPNAME_mtb_example_psoc4_hello_world -DCY8C4146AZI_S433 -DCY_TARGET_DEVICE=CY8C4146AZI_S433 -DTARGET_CY8CKIT_041_41XX -DCY_TARGET_BOARD=CY8CKIT_041_41XX -DCOMPONENT_CAT2 -DCOMPONENT_CM0P -DCOMPONENT_CUSTOM_DESIGN_MODUS -DCOMPONENT_PSOC4HAL -DCOMPONENT_SOFTFP -DDEBUG -I. -I./COMPONENT_CUSTOM_DESIGN_MODUS -I./COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_CY8CKIT-041-41XX -I./COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_CY8CKIT-041-41XX/GeneratedSource -I./libs -I./libs/TARGET_CY8CKIT-041-41XX -I./libs/capsense -I./libs/clib-support -I./libs/clib-support/TOOLCHAIN_GCC_ARM -I./libs/core-lib -I./libs/core-lib/include -I./libs/mtb-hal-cat2 -I./libs/mtb-hal-cat2/COMPONENT_CAT2 -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include/pin_packages -I./libs/mtb-hal-cat2/COMPONENT_CAT2/include/triggers -I./libs/mtb-hal-cat2/include -I./libs/mtb-pdl-cat2 -I./libs/mtb-pdl-cat2/cmsis -I./libs/mtb-pdl-cat2/cmsis/include -I./libs/mtb-pdl-cat2/devices -I./libs/mtb-pdl-cat2/devices/include -I./libs/mtb-pdl-cat2/devices/include/ip -I./libs/mtb-pdl-cat2/drivers -I./libs/mtb-pdl-cat2/drivers/include
libs/clib-support/TOOLCHAIN_GCC_ARM/cy_newlib_freertos.c:31:10: fatal error: FreeRTOS.h: No such file or directory
31 | #include <FreeRTOS.h>
| ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [libs/core-make/make/core/build.mk:372: C:/lxl/cypress_project/MSC_CapSense_Project.zip_expanded/Hello_World/build/CY8CKIT-041-41XX/Debug/libs/clib-support/TOOLCHAIN_GCC_ARM/cy_newlib_freertos.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from libs/clib-support/cy_mutex_pool.c:25:
libs/clib-support/cy_mutex_pool.h:27:10: fatal error: FreeRTOS.h: No such file or directory
27 | #include "FreeRTOS.h"
| ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [libs/core-make/make/core/build.mk:372: C:/lxl/cypress_project/MSC_CapSense_Project.zip_expanded/Hello_World/build/CY8CKIT-041-41XX/Debug/libs/clib-support/cy_mutex_pool.o] Error 1
make: *** [libs/core-make/make/core/main.mk:416: secondstage_build] Error 2
"C:/Cypress/ModusToolbox/tools_2.2/modus-shell/bin/make CY_MAKE_IDE=eclipse CY_MAKE_IDE_VERSION=2.2 CY_IDE_TOOLS_DIR=C:/Cypress/ModusToolbox/tools_2.2 -j8 all" terminated with exit code 2. Build might be incomplete.

14:42:02 Build Failed. 6 errors, 0 warnings. (took 8s.217ms)

How can I solve these compilation issue

Thanks

0 Likes
xlu
Level 2
Level 2
5 replies posted First solution authored 5 questions asked

this works, thank you

0 Likes