Basic Modus application.

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

cross mob
JaMi_334126
Level 1
Level 1
5 replies posted Welcome! First question asked

Tried to create a basic Empty BTSDK App. This is what I got.

Summary:

 

BSP: CYBT-333047-EVAL

Template Application(s): Empty BTSDK App

Note: The 'Empty BTSDK App' application template(s) use(s) the ModusToolbox 2.x format. The application(s) do(es) not support 3.x features. See KBA236134 for instructions on how to migrate the application(s) for 3.x content compatibility.

Application(s) Root Path: D:/Jims_Folders

 

Press "Create" to create the selected application(s).

 

Collecting application data...

 

 

Info: The following entered on the command line will create the exact same project as that created with the GUI tool:

C:/Infineon/Tools/ModusToolbox/tools_3.0/project-creator/project-creator-cli.exe --board-id CYBT-333047-EVAL --board-uri https://github.com/Infineon/TARGET_CYBT-333047-EVAL --board-commit latest-v3.X --app-id mtb-example-btsdk-empty --app-uri https://github.com/cypresssemiconductorco/mtb-example-btsdk-empty --app-commit latest-v4.X --cypress-tools C:/Infineon/Tools/ModusToolbox/tools_3.0 --target-dir D:/Jims_Folders --user-app-name Empty_BTSDK_App_2 --use-modus-shell

 

Starting application creation for 'D:/Jims_Folders/Empty_BTSDK_App_2'.

Acquiring the application source 'https://github.com/cypresssemiconductorco/mtb-example-btsdk-empty'.

Acquired application source successfully.

Loading the application.

Application load failed.

ERROR:Application creation failed.

ERROR:makefile:169: *** Unable to find any of the available CY_TOOLS_PATHS -- C:\Infineon\Tools\ModusToolbox\tools_3.0. Stop.

Skipping export of the "Empty_BTSDK_App_2" application to Eclipse IDE for ModusToolbox™.

2 error(s), 0 warning(s)

 

Summary:

 

ERROR:Failed to create and export "Empty_BTSDK_App_2" application.

 

 

I have a custom board with an AIROC CYBLE-333047 and I need to make things work.

I'm sure something is set up wrong. I have set up several environment variables that I saw on some blogs, but........

Now what??????

0 Likes
1 Solution

Hi again, I think the problem might be you're using back slashes in your variables. Need to use forward slashes. Also, I would put cache, global, and offline all in C:/.modustoolbox/, but that's just me:

CY_GETLIBS_CACHE_PATH = C:/.modusbox/cache

CY_GETLIBS_GLOBAL_PATH = C:/.modustoolbox/global

CY_GETLIBS_OFFLINE_PATH = C:/.modustoolbox/offline

CY_TOOLS_PATHS = C:/Infineon/Tools/ModusToolbox/tools_3.0

View solution in original post

0 Likes
5 Replies
ChristopherF_51
Employee
Employee
100 sign-ins 25 solutions authored 10 likes given

Hello, This is the error I think is your problem: 

ERROR:makefile:169: *** Unable to find any of the available CY_TOOLS_PATHS -- C:\Infineon\Tools\ModusToolbox\tools_3.0. Stop.

Where did you install ModusToolbox tools package? If not c:\Users\<user-id>\ModusToolbox\ then did you set up a system variable to specify the tools_3.0 folder location? Refer to the installation guide for more details: 

https://www.infineon.com/dgdl/Infineon-ModusToolbox_3.0_Installation_Guide-GettingStarted-v11_00-EN....

 

0 Likes
JaMi_334126
Level 1
Level 1
5 replies posted Welcome! First question asked

This is what happened next;

Summary:

 

BSP: CYBLE-333074-EVAL-M2B

Template Application(s): LE Alert Notification Service, LE Battery Service, LE Heart Rate Service, LE Hello Client, LE Hello Sensor

Note: The 'LE Alert Notification Service, LE Battery Service, LE Heart Rate Service, LE Hello Client, LE Hello Sensor' application template(s) use(s) the ModusToolbox 2.x format. The application(s) do(es) not support 3.x features. See KBA236134 for instructions on how to migrate the application(s) for 3.x content compatibility.

Application(s) Root Path: D:/Jims_Folders

 

Press "Create" to create the selected application(s).

 

Collecting application data...

 

 

Info: The following entered on the command line will create the exact same project as that created with the GUI tool:

C:/Infineon/Tools/ModusToolbox/tools_3.0/project-creator/project-creator-cli.exe --board-id CYBLE-333074-EVAL-M2B --board-uri https://github.com/Infineon/TARGET_CYBLE-333074-EVAL-M2B --board-commit latest-v3.X --app-id mtb-example-btsdk-ble-alert-server --app-uri https://github.com/cypresssemiconductorco/mtb-example-btsdk-ble-alert-server --app-commit latest-v4.X --cypress-tools C:/Infineon/Tools/ModusToolbox/tools_3.0 --target-dir D:/Jims_Folders --user-app-name LE_Alert_Notification_Service_5 --use-modus-shell

 

Starting application creation for 'D:/Jims_Folders/LE_Alert_Notification_Service_5'.

Acquiring the application source 'https://github.com/cypresssemiconductorco/mtb-example-btsdk-ble-alert-server'.

Acquired application source successfully.

Loading the application.

Application load failed.

ERROR:Application creation failed.

ERROR:makefile:166: *** Unable to find any of the available CY_TOOLS_PATHS -- C:\Infineon\Tools\ModusToolbox\tools_3.0. Stop.

Skipping export of the "LE_Alert_Notification_Service_5" application to Eclipse IDE for ModusToolbox™.

 

Info: The following entered on the command line will create the exact same project as that created with the GUI tool:

C:/Infineon/Tools/ModusToolbox/tools_3.0/project-creator/project-creator-cli.exe --board-id CYBLE-333074-EVAL-M2B --board-uri https://github.com/Infineon/TARGET_CYBLE-333074-EVAL-M2B --board-commit latest-v3.X --app-id mtb-example-btsdk-ble-battery-server --app-uri https://github.com/cypresssemiconductorco/mtb-example-btsdk-ble-battery-server --app-commit latest-v4.X --cypress-tools C:/Infineon/Tools/ModusToolbox/tools_3.0 --target-dir D:/Jims_Folders --user-app-name LE_Battery_Service_5 --use-modus-shell

 

Starting application creation for 'D:/Jims_Folders/LE_Battery_Service_5'.

Acquiring the application source 'https://github.com/cypresssemiconductorco/mtb-example-btsdk-ble-battery-server'.

Acquired application source successfully.

Loading the application.

Application load failed.

ERROR:Application creation failed.

ERROR:makefile:207: *** Unable to find any of the available CY_TOOLS_PATHS -- C:\Infineon\Tools\ModusToolbox\tools_3.0. Stop.

Skipping export of the "LE_Battery_Service_5" application to Eclipse IDE for ModusToolbox™.

 

Info: The following entered on the command line will create the exact same project as that created with the GUI tool:

C:/Infineon/Tools/ModusToolbox/tools_3.0/project-creator/project-creator-cli.exe --board-id CYBLE-333074-EVAL-M2B --board-uri https://github.com/Infineon/TARGET_CYBLE-333074-EVAL-M2B --board-commit latest-v3.X --app-id mtb-example-btsdk-ble-heart-rate-server --app-uri https://github.com/cypresssemiconductorco/mtb-example-btsdk-ble-heart-rate-server --app-commit latest-v4.X --cypress-tools C:/Infineon/Tools/ModusToolbox/tools_3.0 --target-dir D:/Jims_Folders --user-app-name LE_Heart_Rate_Service_4 --use-modus-shell

 

Starting application creation for 'D:/Jims_Folders/LE_Heart_Rate_Service_4'.

Acquiring the application source 'https://github.com/cypresssemiconductorco/mtb-example-btsdk-ble-heart-rate-server'.

Acquired application source successfully.

Loading the application.

Application load failed.

ERROR:Application creation failed.

ERROR:makefile:161: *** Unable to find any of the available CY_TOOLS_PATHS -- C:\Infineon\Tools\ModusToolbox\tools_3.0. Stop.

Skipping export of the "LE_Heart_Rate_Service_4" application to Eclipse IDE for ModusToolbox™.

 

Info: The following entered on the command line will create the exact same project as that created with the GUI tool:

C:/Infineon/Tools/ModusToolbox/tools_3.0/project-creator/project-creator-cli.exe --board-id CYBLE-333074-EVAL-M2B --board-uri https://github.com/Infineon/TARGET_CYBLE-333074-EVAL-M2B --board-commit latest-v3.X --app-id mtb-example-btsdk-ble-hello-client --app-uri https://github.com/cypresssemiconductorco/mtb-example-btsdk-ble-hello-client --app-commit latest-v4.X --cypress-tools C:/Infineon/Tools/ModusToolbox/tools_3.0 --target-dir D:/Jims_Folders --user-app-name LE_Hello_Client --use-modus-shell

 

Starting application creation for 'D:/Jims_Folders/LE_Hello_Client'.

Acquiring the application source 'https://github.com/cypresssemiconductorco/mtb-example-btsdk-ble-hello-client'.

Acquired application source successfully.

Loading the application.

Application load failed.

ERROR:Application creation failed.

ERROR:makefile:165: *** Unable to find any of the available CY_TOOLS_PATHS -- C:\Infineon\Tools\ModusToolbox\tools_3.0. Stop.

Skipping export of the "LE_Hello_Client" application to Eclipse IDE for ModusToolbox™.

 

Info: The following entered on the command line will create the exact same project as that created with the GUI tool:

C:/Infineon/Tools/ModusToolbox/tools_3.0/project-creator/project-creator-cli.exe --board-id CYBLE-333074-EVAL-M2B --board-uri https://github.com/Infineon/TARGET_CYBLE-333074-EVAL-M2B --board-commit latest-v3.X --app-id mtb-example-btsdk-ble-hello-sensor --app-uri https://github.com/cypresssemiconductorco/mtb-example-btsdk-ble-hello-sensor --app-commit latest-v4.X --cypress-tools C:/Infineon/Tools/ModusToolbox/tools_3.0 --target-dir D:/Jims_Folders --user-app-name LE_Hello_Sensor_6 --use-modus-shell

 

Starting application creation for 'D:/Jims_Folders/LE_Hello_Sensor_6'.

Acquiring the application source 'https://github.com/cypresssemiconductorco/mtb-example-btsdk-ble-hello-sensor'.

Acquired application source successfully.

Loading the application.

Application load failed.

ERROR:Application creation failed.

ERROR:makefile:163: *** Unable to find any of the available CY_TOOLS_PATHS -- C:\Infineon\Tools\ModusToolbox\tools_3.0. Stop.

Skipping export of the "LE_Hello_Sensor_6" application to Eclipse IDE for ModusToolbox™.

10 error(s), 0 warning(s)

 

Summary:

 

ERROR:Failed to create and export "LE_Alert_Notification_Service_5" application.

ERROR:Failed to create and export "LE_Battery_Service_5" application.

ERROR:Failed to create and export "LE_Heart_Rate_Service_4" application.

ERROR:Failed to create and export "LE_Hello_Client" application.

ERROR:Failed to create and export "LE_Hello_Sensor_6" application.

====================================================================================

Environment Variables are set;

CY_GETLIBS_CACHE_PATH = C:\.modusbox\cache

CY_GETLIBS_GLOBAL_PATH = C:\.global

CY_GETLIBS_OFFLINE_PATH = C:\offline

CY_TOOLS_PATHS = C:\Infineon\Tools\ModusToolbox\tools_3.0

 

 

0 Likes

Hi again, I think the problem might be you're using back slashes in your variables. Need to use forward slashes. Also, I would put cache, global, and offline all in C:/.modustoolbox/, but that's just me:

CY_GETLIBS_CACHE_PATH = C:/.modusbox/cache

CY_GETLIBS_GLOBAL_PATH = C:/.modustoolbox/global

CY_GETLIBS_OFFLINE_PATH = C:/.modustoolbox/offline

CY_TOOLS_PATHS = C:/Infineon/Tools/ModusToolbox/tools_3.0

0 Likes

Forward slashes worked. Wondering why, but.......  Also cleaned up directory names. The labels I had were better than the modbus ones I started with.

0 Likes

The forward slashes are required because they are being read by the Make system in the Cygwin environment. It's part of the reason that you can use ModusToolbox applications in Linux, macOS, and Windows interchangeably.