need help for creation of ble point to point connection

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

cross mob
Nido
Level 1
Level 1
5 sign-ins First like given First reply posted

Hello,

My goal is to create a point to point BLE connection between "CY8CPROTO 063 BLE" and "CY8CKIT-062-WIFI-BT" and send the Data to AWS IoT Test Client via MQTT.

For creation the BLE connection I follow the tutorial in https://github.com/Infineon/training-modustoolbox-level3-bluetooth.

Setting up the peripheral like described in the tutorial a lot of header files like the ble stack are not included.
For the Tutorial BLUETOOTH_BL_CAPSENSE_Buttons_Slider for "CY8CKIT-062-WIFI-BT" for example all header files had been included during the project creation.

It would be nice if there is someone how could support me. We could do some online sessions, of cousrse payed.
It is quite urgend as it is part of study work.

Please contect me if you are interested. Further details and the conditions we can discuss private.



0 Likes
1 Solution
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi @Nido 

I understand the confusion now. Please note that currently PSoC 63 BLE (BSP: CY8CPROTO 063 BLE) supports only BLESS library ( https://github.com/Infineon/bless ).

PSoC 63 BLE is a single chip ship BLE solution with both host and controller present in the same chip. It uses only the BLESS library for BLE. Refer:

Github examples: https://github.com/Infineon?q=mtb-example-psoc6-ble&type=all&language=&sort=
Quick start guide: https://infineon.github.io/bless/ble_api_reference_manual/html/page_ble_quick_start.html

CY8CKIT-062-WIFI-BT is a different solution. It has PSoC 62 MCU as the host performing host level operations of BLE and uses CYW4343W controller as the BT solution.  This is a combo device that supports both WiFi and BT (BR/EDR/BLE) in a single chip. The host stack used in combination with this chip is called the BTSTACK library. The host stack will run on the PSoC 62 MCU and will communicate with the 4343W controllers via a HCI UART interface/ The example that you are referring to training-modustoolbox-level3-bluetooth is meant be used with the PSOC 6 + CYW43xx solutions only. It can not be used with PSoC 63 BLE chips.

Please note that we have plans to support PSoC 6 BLE with BTSTACK library in the near future (no tentative dates as of now). After that, we will deprecate the support for BLESS library for new designs and all users will have to move to the BTSTACK library for PSoC 6 BLE designs.

Regards,
Bragadeesh

View solution in original post

4 Replies
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi @Nido ,

Can you please clarify which all header files are excluded?

Regards,
Bragadeesh
0 Likes

Dear BragadeeshV,

Thank you for your message.

For clarification:
I try to set up an ble peripheral on "CY8CPROTO 063 BLE".
Therefore I follow the tutorial: https://github.com/Infineon/training-modustoolbox-level3-bluetooth/blob/master/Type1/Manual/Ch03-Bas...
and use template: https://github.com/Infineon/training-modustoolbox-level3-bluetooth/tree/master/Type1/Templates/ch06_...

In Library Manager BLE stack is not included but in make file is set: COMPONENTS=FREERTOS WICED_BLE.

Nido_0-1659940893208.png

 


Errors which occure:
main.c:155:21: error: 'CYBSP_LED_RGB_RED' undeclared (first use in this function)
155 | cyhal_gpio_init(CYBSP_LED_RGB_RED, CYHAL_GPIO_DIR_OUTPUT, CYHAL_GPIO_DRIVE_STRONG, CYBSP_LED_STATE_OFF);
| ^~~~~~~~~~~~~~~~~
main.c:155:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:156:21: error: 'CYBSP_LED_RGB_GREEN' undeclared (first use in this function)
156 | cyhal_gpio_init(CYBSP_LED_RGB_GREEN, CYHAL_GPIO_DIR_OUTPUT, CYHAL_GPIO_DRIVE_STRONG, CYBSP_LED_STATE_OFF);
| ^~~~~~~~~~~~~~~~~~~
main.c:157:21: error: 'CYBSP_LED_RGB_BLUE' undeclared (first use in this function)
157 | cyhal_gpio_init(CYBSP_LED_RGB_BLUE, CYHAL_GPIO_DIR_OUTPUT, CYHAL_GPIO_DRIVE_STRONG, CYBSP_LED_STATE_OFF);
| ^~~~~~~~~~~~~~~~~~
make[1]: *** [../mtb_shared/core-make/release-v1.9.1/make/core/build.mk:377: C:/Users/nicol/mtw/ch06_ex01_peripheral/build/CY8CPROTO-063-BLE/Debug/main.o] Error 1
make: *** [../mtb_shared/core-make/release-v1.9.1/make/core/main.mk:434: secondstage_build] Error 2

--> CY_USING_HAL seems not to be defined


After commenting the lines out with not declared charackters:
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/nicol/mtw/ch06_ex01_peripheral/build/CY8CPROTO-063-BLE/Debug/main.o: in function `notify_task':
C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:827: undefined reference to `wiced_bt_gatt_server_send_notification'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/nicol/mtw/ch06_ex01_peripheral/build/CY8CPROTO-063-BLE/Debug/main.o: in function `app_bt_management_callback':
C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:212: undefined reference to `wiced_bt_set_local_bdaddr'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:213: undefined reference to `wiced_bt_dev_read_local_addr'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:218: undefined reference to `wiced_bt_gatt_register'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:219: undefined reference to `wiced_bt_gatt_db_init'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:222: undefined reference to `wiced_bt_set_pairable_mode'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:225: undefined reference to `wiced_bt_ble_set_raw_advertisement_data'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:227: undefined reference to `wiced_bt_start_advertisements'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:257: undefined reference to `wiced_bt_ble_security_grant'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/nicol/mtw/ch06_ex01_peripheral/build/CY8CPROTO-063-BLE/Debug/main.o: in function `app_bt_connect_event_handler':
C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:400: undefined reference to `wiced_bt_start_advertisements'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/nicol/mtw/ch06_ex01_peripheral/build/CY8CPROTO-063-BLE/Debug/main.o: in function `app_bt_gatt_req_read_handler':
C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:595: undefined reference to `wiced_bt_gatt_server_send_read_handle_rsp'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:570: undefined reference to `wiced_bt_gatt_server_send_error_rsp'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:578: undefined reference to `wiced_bt_gatt_server_send_error_rsp'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/nicol/mtw/ch06_ex01_peripheral/build/CY8CPROTO-063-BLE/Debug/main.o: in function `app_bt_gatt_req_read_by_type_handler':
C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:620: undefined reference to `wiced_bt_gatt_server_send_error_rsp'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:634: undefined reference to `wiced_bt_gatt_server_send_error_rsp'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:627: undefined reference to `wiced_bt_gatt_find_handle_by_type'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:640: undefined reference to `wiced_bt_gatt_put_read_by_type_rsp_in_stream'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:669: undefined reference to `wiced_bt_gatt_server_send_read_by_type_rsp'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:655: undefined reference to `wiced_bt_gatt_server_send_error_rsp'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/nicol/mtw/ch06_ex01_peripheral/build/CY8CPROTO-063-BLE/Debug/main.o: in function `app_bt_gatt_req_read_multi_handler':
C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:692: undefined reference to `wiced_bt_gatt_get_handle_from_stream'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:696: undefined reference to `wiced_bt_gatt_server_send_error_rsp'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:706: undefined reference to `wiced_bt_gatt_server_send_error_rsp'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:703: undefined reference to `wiced_bt_gatt_get_handle_from_stream'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:712: undefined reference to `wiced_bt_gatt_put_read_multi_rsp_in_stream'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:737: undefined reference to `wiced_bt_gatt_server_send_read_multiple_rsp'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:724: undefined reference to `wiced_bt_gatt_server_send_error_rsp'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/nicol/mtw/ch06_ex01_peripheral/build/CY8CPROTO-063-BLE/Debug/main.o: in function `app_bt_server_event_handler':
C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:450: undefined reference to `wiced_bt_gatt_server_send_write_rsp'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:459: undefined reference to `wiced_bt_gatt_server_send_execute_write_rsp'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:465: undefined reference to `wiced_bt_gatt_server_send_mtu_rsp'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/Users/nicol/mtw/ch06_ex01_peripheral/build/CY8CPROTO-063-BLE/Debug/main.o: in function `main':
C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:174: undefined reference to `cybt_platform_config_init'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:177: undefined reference to `wiced_bt_stack_init'
c:/infineon/tools/modustoolbox/tools_2.4/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\nicol\mtw\ch06_ex01_peripheral/main.c:188: undefined reference to `cybsp_bt_platform_cfg'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [../mtb_shared/core-make/release-v1.9.1/make/core/build.mk:529: C:/Users/nicol/mtw/ch06_ex01_peripheral/build/CY8CPROTO-063-BLE/Debug/app.elf] Error 1

Best regards

0 Likes
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi @Nido 

I understand the confusion now. Please note that currently PSoC 63 BLE (BSP: CY8CPROTO 063 BLE) supports only BLESS library ( https://github.com/Infineon/bless ).

PSoC 63 BLE is a single chip ship BLE solution with both host and controller present in the same chip. It uses only the BLESS library for BLE. Refer:

Github examples: https://github.com/Infineon?q=mtb-example-psoc6-ble&type=all&language=&sort=
Quick start guide: https://infineon.github.io/bless/ble_api_reference_manual/html/page_ble_quick_start.html

CY8CKIT-062-WIFI-BT is a different solution. It has PSoC 62 MCU as the host performing host level operations of BLE and uses CYW4343W controller as the BT solution.  This is a combo device that supports both WiFi and BT (BR/EDR/BLE) in a single chip. The host stack used in combination with this chip is called the BTSTACK library. The host stack will run on the PSoC 62 MCU and will communicate with the 4343W controllers via a HCI UART interface/ The example that you are referring to training-modustoolbox-level3-bluetooth is meant be used with the PSOC 6 + CYW43xx solutions only. It can not be used with PSoC 63 BLE chips.

Please note that we have plans to support PSoC 6 BLE with BTSTACK library in the near future (no tentative dates as of now). After that, we will deprecate the support for BLESS library for new designs and all users will have to move to the BTSTACK library for PSoC 6 BLE designs.

Regards,
Bragadeesh
Nido
Level 1
Level 1
5 sign-ins First like given First reply posted

Thank you so much!!

0 Likes