cancel
Showing results for 
Search instead for 
Did you mean: 

Bluetooth SDK

vsubbiah
Contributor

I am trying out this example https://github.com/cypresssemiconductorco/mtb-example-btsdk-ble-throughput and running into compile errors. 

Attaching the verbose logs and also a listing of all repo's and their versions.

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

= Building application =

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

Generated 1 source file(s)

/Users/venkat/work/pp/bt_sdk/tput_test/mtb-example-btsdk-ble-throughput/GATT_server/build/CYW920820EVB-02/generated/lib_installer.c already present, use clean if it needs updating

Building 5 file(s)

    Compiling app file tput_server_ble.c

tput_server_ble.c:50:10: fatal error: cycfg_pins.h: No such file or directory

   50 | #include "cycfg_pins.h"

      |          ^~~~~~~~~~~~~~

compilation terminated.

make[1]: *** [/Users/venkat/work/pp/bt_sdk/tput_test/mtb-example-btsdk-ble-throughput/GATT_server/build/CYW920820EVB-02/Debug/tput_server_ble.o] Error 1

make: *** [secondstage] Error 2

0 Likes
4 Replies
vsubbiah
Contributor

Looks like in the post the attachments didn't go through. And I can't seem to attach .log or .txt files.

0 Likes
SheetalJ
Moderator
Moderator

Hi @vsubbiah ,

Can you please confirm the MTB and BTSDK version you are using? Also, are you able to attach logs now?

 

0 Likes
vamsikrishna
New Contributor

I am planning to test BLE Throughput Measurement on CYW920721B2EVK-02 boards.

So, i came across one the github repositary (i.e https://github.com/cypresssemiconductorco/mtb-example-btsdk-ble-throughput)

Downloaded Modus Toolbox into Linux PC and configured. Tried with both the versions of Modus Toolbox tools (i.e., 2.3.0.4276 and 2.2.0.2801).

Gone through "readme" in "https://github.com/cypresssemiconductorco/mtb-example-btsdk-ble-throughput" and executing "In Command-line Interface (CLI)" steps.

Here cloned the latest version(i.e 2.8.0.10492) of "wiced_btsdk" and "mtb-example-btsdk-ble-throughput" repos into the PC.

As a first step, building "GATT_server" application and observed that build is failing. Logs are attached below.

Questions:
1. While building i got a error that "cycfg_pins.h" is missing. How to get and fix build failure?
2. Observed that one note/suggestion in the log (i.e The build support (base-library such as psoc6make) is referencing a deprecated tools variable. Tools update/patch feature will not work with this version. Update it to a newer version to use this feature). Recommend me which  version shall i use?


```
vamsi@packetp:~/work/modus/mtb-example-btsdk-ble-throughput/GATT_server$ make build TARGET=CYW920721B2EVK-02

INFO: The build support (base-library such as psoc6make) is referencing a deprecated tools variable. Tools update/patch feature will not work with this version. Update it to a newer version to use this feature.

Running bt-configurator to update stale files...
--config=/home/vamsi/work/modus/mtb-example-btsdk-ble-throughput/GATT_server/./cycfg_bt.cybt
Target File Path=/home/vamsi/work/modus/mtb-example-btsdk-ble-throughput/GATT_server/cycfg_bt.cybt
INFO: The configuration file was last saved with a different version of the configurator than was used to perform code generation. Last saved with: Bluetooth Configurator 2.1. Current: Bluetooth Configurator 2.30.
Successfully saved file /home/vamsi/work/modus/mtb-example-btsdk-ble-throughput/GATT_server/GeneratedSource/cycfg_gatt_db.h.
Successfully saved file /home/vamsi/work/modus/mtb-example-btsdk-ble-throughput/GATT_server/GeneratedSource/cycfg_gatt_db.c.
Success.
-> Generated bt configuration file(s) in ./GeneratedSource
make -C ../../wiced_btsdk/dev-kit/bsp/TARGET_CYW920721B2EVK-02 build OTA_FW_UPGRADE=0 CY_APP_DEFINES+="-DWICED_BT_TRACE_ENABLE" CY_TARGET_DEVICE=20721B2 TARGET=CYW920721B2EVK-02
make[1]: Entering directory '/home/vamsi/work/modus/wiced_btsdk/dev-kit/bsp/TARGET_CYW920721B2EVK-02'

INFO: The build support (base-library such as psoc6make) is referencing a deprecated tools variable. Tools update/patch feature will not work with this version. Update it to a newer version to use this feature.

Prebuild operations complete
Commencing build operations...


Initializing build: CYW920721B2EVK-02_bsp Debug CYW920721B2EVK-02 GCC_ARM

Auto-discovery in progress...
-> Found 1 .c file(s)
-> Found 0 .S file(s)
-> Found 0 .s file(s)
-> Found 0 .cpp file(s)
-> Found 0 .o file(s)
-> Found 0 .a file(s)
-> Found 1 .h file(s)
-> Found 0 .hpp file(s)
-> Found 0 resource file(s)
Applying filters...
Auto-discovery complete

Constructing build rules...
Build rules construction complete

INFO: The build support (base-library such as psoc6make) is referencing a deprecated tools variable. Tools update/patch feature will not work with this version. Update it to a newer version to use this feature.

==============================================================================
= Building application =
==============================================================================
Building 1 file(s)
==============================================================================
= Build complete =
==============================================================================


make[1]: Leaving directory '/home/vamsi/work/modus/wiced_btsdk/dev-kit/bsp/TARGET_CYW920721B2EVK-02'
make -C ../../wiced_btsdk/dev-kit/baselib/20721B2 build OTA_FW_UPGRADE=0 CY_APP_DEFINES+="-DWICED_BT_TRACE_ENABLE" CY_TARGET_DEVICE=20721B2 TARGET=CYW920721B2EVK-02
make[1]: Entering directory '/home/vamsi/work/modus/wiced_btsdk/dev-kit/baselib/20721B2'

INFO: The build support (base-library such as psoc6make) is referencing a deprecated tools variable. Tools update/patch feature will not work with this version. Update it to a newer version to use this feature.

Prebuild operations complete
Commencing build operations...


Initializing build: 20721B2_baselib Debug CYW920721B2EVK-02 GCC_ARM

Auto-discovery in progress...
-> Found 2 .c file(s)
-> Found 0 .S file(s)
-> Found 0 .s file(s)
-> Found 0 .cpp file(s)
-> Found 0 .o file(s)
-> Found 15 .a file(s)
-> Found 129 .h file(s)
-> Found 0 .hpp file(s)
-> Found 0 resource file(s)
Applying filters...
Auto-discovery complete

Constructing build rules...
Build rules construction complete

INFO: The build support (base-library such as psoc6make) is referencing a deprecated tools variable. Tools update/patch feature will not work with this version. Update it to a newer version to use this feature.

==============================================================================
= Building application =
==============================================================================
Building 4 file(s)
==============================================================================
= Build complete =
==============================================================================


make[1]: Leaving directory '/home/vamsi/work/modus/wiced_btsdk/dev-kit/baselib/20721B2'
generated /home/vamsi/work/modus/mtb-example-btsdk-ble-throughput/GATT_server/build/CYW920721B2EVK-02/Debug/BLE_Throughput_GATTServer.ld
Prebuild operations complete
Commencing build operations...


Initializing build: BLE_Throughput_GATTServer Debug CYW920721B2EVK-02 GCC_ARM

Auto-discovery in progress...
-> Found 4 .c file(s)
-> Found 0 .S file(s)
-> Found 0 .s file(s)
-> Found 0 .cpp file(s)
-> Found 0 .o file(s)
-> Found 0 .a file(s)
-> Found 3 .h file(s)
-> Found 0 .hpp file(s)
-> Found 0 resource file(s)
Applying filters...
Auto-discovery complete

Constructing build rules...
Build rules construction complete

INFO: The build support (base-library such as psoc6make) is referencing a deprecated tools variable. Tools update/patch feature will not work with this version. Update it to a newer version to use this feature.

==============================================================================
= Building application =
==============================================================================
Generated 1 source file(s)
generated /home/vamsi/work/modus/mtb-example-btsdk-ble-throughput/GATT_server/build/CYW920721B2EVK-02/generated/lib_installer.c
Building 5 file(s)
Compiling app file cycfg_gatt_db.c
Compiling app file app_bt_cfg.c
Compiling app file tput_server.c
Compiling app file tput_server_ble.c
tput_server_ble.c:50:10: fatal error: cycfg_pins.h: No such file or directory
50 | #include "cycfg_pins.h"
| ^~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [../../wiced_btsdk/dev-kit/baselib/20721B2/make/core/build.mk:350: /home/vamsi/work/modus/mtb-example-btsdk-ble-throughput/GATT_server/build/CYW920721B2EVK-02/Debug/tput_server_ble.o] Error 1
make: *** [../../wiced_btsdk/dev-kit/baselib/20721B2/make/core/main.mk:350: secondstage] Error 2

```

0 Likes
NidhiH_76
Employee

Hi @vamsikrishna , @vsubbiah , 

The application is still at version v1.1.0. It cannot be used with MTB 2.2 and above. 
Please refer to https://community.cypress.com/t5/ModusToolbox-Blog/Migrating-BTSDK-applications-from-ModusToolbox-2-... to use the application with MTB 2.2 and WICED BTSDK 2.8

After following the blog, if you have any difficulties in getting it to work, please let us know. 

Thanks,

Nidhi Hegde

0 Likes