configuracion de Bluetooth-PSoc 6

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

cross mob
lock attach
Attachments are accessible only for community members.
Ignacio
Level 2
Level 2
First like received 5 questions asked 25 sign-ins

hola comunidad! Me podría ayudar a saber y corregir el problema del por que me salen errores en la carpeta  GeneratedSource  al momento de configurar Bluetooth. Estoy usando eclipse IDE modustoolbox 3.1

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
PratikshaV
Moderator
Moderator
Moderator
100 solutions authored 5 likes given 250 sign-ins

Hi @Ignacio 

This issue seems like path is too long for files so they are not able find save your project in desktop or folder which has short path

next is add these 3 files in "main.c"

#include "cycfg_gatt_db.h"
#include "cycfg_bt_settings.h"
#include "cycfg_gap.h"

open Bluetooth configurator and select your device and just save that file once

and then just build and check whether the error still persist.

I have also attached the project let me know if this helps

 

Thanks & Regards

Pratiksha V 

View solution in original post

0 Likes
5 Replies
PratikshaV
Moderator
Moderator
Moderator
100 solutions authored 5 likes given 250 sign-ins

Hi @Ignacio 

Please can you share me the detailed error message displayed? Also few questions which is this code example? Have you created new application from MTB?? configuration you are doing in Bluetooth configurator.

 

 

Thanks & Regards

Pratiksha V

0 Likes
lock attach
Attachments are accessible only for community members.

hola @PratikshaV ! muchas gracias por responder, ahora adjunto lo que me pides y pregunta. Con respecto a la aplicación, elimine el software y lo instale de nuevo, cree un nuevo proyecto y aun así tengo errores en la carpeta GeneratedSource. 

EJEMPLO DE CODIGO:

https://github.com/Infineon/training-modustoolbox-level3-bluetooth/blob/master/Type1/Templates/ch03_...

 

0 Likes
lock attach
Attachments are accessible only for community members.
Ignacio
Level 2
Level 2
First like received 5 questions asked 25 sign-ins

Hola @PratikshaV ! muchas gracias por responder, ahora t adjunto lo que m pides, aun sigo buscando una solución pero no la encuentro.

EJEMPLO DEL CODIGO:

https://github.com/Infineon/training-modustoolbox-level3-bluetooth/blob/master/Type1/Templates/ch03_...

cree una nueva aplicación, elimine el software, lo volví a instalar y aun así me salen los mismos errores en la carpeta GeneratedSource. 

MENSAJE DE LA CONSOLA:

Initializing build: mtb-example-empty-app Debug APP_CY8CPROTO-062-4343W GCC_ARM

Prebuild operations complete

Auto-discovery in progress...
Auto-discovery complete
Commencing build operations...

Tools Directory: C:/Users/Usuario/ModusToolbox/tools_3.1

Constructing build rules...
Build rules construction complete

==============================================================================
= Building application =
==============================================================================
Generating compilation database file...
-> ./build/compile_commands.json
Compilation database file generation complete
Building 225 file(s)
Compiling GeneratedSource/cycfg_bt_settings.c -DCOMPONENT_4343W -DCOMPONENT_APP_CY8CPROTO_062_4343W -DCOMPONENT_CAT1 -DCOMPONENT_CAT1A -DCOMPONENT_CM0P_SLEEP -DCOMPONENT_CM4 -DCOMPONENT_CM4_0 -DCOMPONENT_Debug -DCOMPONENT_GCC_ARM -DCOMPONENT_HCI_UART -DCOMPONENT_MURATA_1DX -DCOMPONENT_MW_CAT1CM0P -DCOMPONENT_MW_CMSIS -DCOMPONENT_MW_CORE_LIB -DCOMPONENT_MW_CORE_MAKE -DCOMPONENT_MW_MTB_HAL_CAT1 -DCOMPONENT_MW_MTB_PDL_CAT1 -DCOMPONENT_MW_RECIPE_MAKE_CAT1A -DCOMPONENT_MW_RETARGET_IO -DCOMPONENT_PSOC6_02 -DCOMPONENT_SOFTFP -DCOMPONENT_WIFI_INTERFACE_SDIO -DCORE_NAME_CM4_0=1 -DCY8C624ABZI_S2D44 -DCY_APPNAME_mtb_example_empty_app -DCY_SUPPORTS_DEVICE_VALIDATION -DCY_TARGET_BOARD=APP_CY8CPROTO_062_4343W -DCY_USING_HAL -DDEBUG -DTARGET_APP_CY8CPROTO_062_4343W -Ibsps/TARGET_APP_CY8CPROTO-062-4343W -Ibsps -I. -Ibsps/TARGET_APP_CY8CPROTO-062-4343W/bluetooth -Ibsps/TARGET_APP_CY8CPROTO-062-4343W/config/GeneratedSource -Ibsps/TARGET_APP_CY8CPROTO-062-4343W/config -IGeneratedSource -I../mtb_shared/retarget-io/release-v1.5.0 -I../mtb_shared/cat1cm0p/release-v1.4.0/COMPONENT_CAT1A -I../mtb_shared/cat1cm0p/release-v1.4.0 -I../mtb_shared/cmsis/release-v5.8.0/Core/Include -I../mtb_shared/cmsis/release-v5.8.0/Core -I../mtb_shared/cmsis/release-v5.8.0 -I../mtb_shared/core-lib/release-v1.4.1/include -I../mtb_shared/core-lib/release-v1.4.1 -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/COMPONENT_CAT1A/include/pin_packages -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/COMPONENT_CAT1A/include -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/COMPONENT_CAT1A -I../mtb_shared/mtb-hal-cat1/release-v2.5.4 -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/COMPONENT_CAT1A/include/triggers -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/include -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/include_pvt -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/source -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/devices/COMPONENT_CAT1A/include -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/devices/COMPONENT_CAT1A -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/devices -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0 -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/devices/COMPONENT_CAT1A/include/ip -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers/include -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers/third_party/ethernet/include -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers/third_party/ethernet -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers/third_party
make[1]: *** Waiting for unfinished jobs....
In file included from GeneratedSource/cycfg_bt_settings.c:27:
GeneratedSource/cycfg_bt_settings.h:30:10: fatal error: wiced_bt_cfg.h: No such file or directory
30 | #include "wiced_bt_cfg.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [../mtb_shared/core-make/release-v3.2.2/make/core/build.mk:268: C:/Users/Usuario/mtw/proyecto/bluetooth/build/APP_CY8CPROTO-062-4343W/Debug/GeneratedSource/cycfg_bt_settings.o] Error 1
Compiling GeneratedSource/cycfg_gap.c -DCOMPONENT_4343W -DCOMPONENT_APP_CY8CPROTO_062_4343W -DCOMPONENT_CAT1 -DCOMPONENT_CAT1A -DCOMPONENT_CM0P_SLEEP -DCOMPONENT_CM4 -DCOMPONENT_CM4_0 -DCOMPONENT_Debug -DCOMPONENT_GCC_ARM -DCOMPONENT_HCI_UART -DCOMPONENT_MURATA_1DX -DCOMPONENT_MW_CAT1CM0P -DCOMPONENT_MW_CMSIS -DCOMPONENT_MW_CORE_LIB -DCOMPONENT_MW_CORE_MAKE -DCOMPONENT_MW_MTB_HAL_CAT1 -DCOMPONENT_MW_MTB_PDL_CAT1 -DCOMPONENT_MW_RECIPE_MAKE_CAT1A -DCOMPONENT_MW_RETARGET_IO -DCOMPONENT_PSOC6_02 -DCOMPONENT_SOFTFP -DCOMPONENT_WIFI_INTERFACE_SDIO -DCORE_NAME_CM4_0=1 -DCY8C624ABZI_S2D44 -DCY_APPNAME_mtb_example_empty_app -DCY_SUPPORTS_DEVICE_VALIDATION -DCY_TARGET_BOARD=APP_CY8CPROTO_062_4343W -DCY_USING_HAL -DDEBUG -DTARGET_APP_CY8CPROTO_062_4343W -Ibsps/TARGET_APP_CY8CPROTO-062-4343W -Ibsps -I. -Ibsps/TARGET_APP_CY8CPROTO-062-4343W/bluetooth -Ibsps/TARGET_APP_CY8CPROTO-062-4343W/config/GeneratedSource -Ibsps/TARGET_APP_CY8CPROTO-062-4343W/config -IGeneratedSource -I../mtb_shared/retarget-io/release-v1.5.0 -I../mtb_shared/cat1cm0p/release-v1.4.0/COMPONENT_CAT1A -I../mtb_shared/cat1cm0p/release-v1.4.0 -I../mtb_shared/cmsis/release-v5.8.0/Core/Include -I../mtb_shared/cmsis/release-v5.8.0/Core -I../mtb_shared/cmsis/release-v5.8.0 -I../mtb_shared/core-lib/release-v1.4.1/include -I../mtb_shared/core-lib/release-v1.4.1 -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/COMPONENT_CAT1A/include/pin_packages -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/COMPONENT_CAT1A/include -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/COMPONENT_CAT1A -I../mtb_shared/mtb-hal-cat1/release-v2.5.4 -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/COMPONENT_CAT1A/include/triggers -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/include -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/include_pvt -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/source -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/devices/COMPONENT_CAT1A/include -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/devices/COMPONENT_CAT1A -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/devices -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0 -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/devices/COMPONENT_CAT1A/include/ip -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers/include -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers/third_party/ethernet/include -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers/third_party/ethernet -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers/third_party
In file included from GeneratedSource/cycfg_gap.c:27:
GeneratedSource/cycfg_gap.h:31:10: fatal error: wiced_bt_ble.h: No such file or directory
31 | #include "wiced_bt_ble.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [../mtb_shared/core-make/release-v3.2.2/make/core/build.mk:268: C:/Users/Usuario/mtw/proyecto/bluetooth/build/APP_CY8CPROTO-062-4343W/Debug/GeneratedSource/cycfg_gap.o] Error 1
Compiling GeneratedSource/cycfg_gatt_db.c -DCOMPONENT_4343W -DCOMPONENT_APP_CY8CPROTO_062_4343W -DCOMPONENT_CAT1 -DCOMPONENT_CAT1A -DCOMPONENT_CM0P_SLEEP -DCOMPONENT_CM4 -DCOMPONENT_CM4_0 -DCOMPONENT_Debug -DCOMPONENT_GCC_ARM -DCOMPONENT_HCI_UART -DCOMPONENT_MURATA_1DX -DCOMPONENT_MW_CAT1CM0P -DCOMPONENT_MW_CMSIS -DCOMPONENT_MW_CORE_LIB -DCOMPONENT_MW_CORE_MAKE -DCOMPONENT_MW_MTB_HAL_CAT1 -DCOMPONENT_MW_MTB_PDL_CAT1 -DCOMPONENT_MW_RECIPE_MAKE_CAT1A -DCOMPONENT_MW_RETARGET_IO -DCOMPONENT_PSOC6_02 -DCOMPONENT_SOFTFP -DCOMPONENT_WIFI_INTERFACE_SDIO -DCORE_NAME_CM4_0=1 -DCY8C624ABZI_S2D44 -DCY_APPNAME_mtb_example_empty_app -DCY_SUPPORTS_DEVICE_VALIDATION -DCY_TARGET_BOARD=APP_CY8CPROTO_062_4343W -DCY_USING_HAL -DDEBUG -DTARGET_APP_CY8CPROTO_062_4343W -Ibsps/TARGET_APP_CY8CPROTO-062-4343W -Ibsps -I. -Ibsps/TARGET_APP_CY8CPROTO-062-4343W/bluetooth -Ibsps/TARGET_APP_CY8CPROTO-062-4343W/config/GeneratedSource -Ibsps/TARGET_APP_CY8CPROTO-062-4343W/config -IGeneratedSource -I../mtb_shared/retarget-io/release-v1.5.0 -I../mtb_shared/cat1cm0p/release-v1.4.0/COMPONENT_CAT1A -I../mtb_shared/cat1cm0p/release-v1.4.0 -I../mtb_shared/cmsis/release-v5.8.0/Core/Include -I../mtb_shared/cmsis/release-v5.8.0/Core -I../mtb_shared/cmsis/release-v5.8.0 -I../mtb_shared/core-lib/release-v1.4.1/include -I../mtb_shared/core-lib/release-v1.4.1 -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/COMPONENT_CAT1A/include/pin_packages -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/COMPONENT_CAT1A/include -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/COMPONENT_CAT1A -I../mtb_shared/mtb-hal-cat1/release-v2.5.4 -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/COMPONENT_CAT1A/include/triggers -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/include -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/include_pvt -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/source -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/devices/COMPONENT_CAT1A/include -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/devices/COMPONENT_CAT1A -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/devices -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0 -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/devices/COMPONENT_CAT1A/include/ip -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers/include -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers/third_party/ethernet/include -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers/third_party/ethernet -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers/third_party
GeneratedSource/cycfg_gatt_db.c:28:10: fatal error: wiced_bt_uuid.h: No such file or directory
28 | #include "wiced_bt_uuid.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [../mtb_shared/core-make/release-v3.2.2/make/core/build.mk:268: C:/Users/Usuario/mtw/proyecto/bluetooth/build/APP_CY8CPROTO-062-4343W/Debug/GeneratedSource/cycfg_gatt_db.o] Error 1
Compiling main.c -DCOMPONENT_4343W -DCOMPONENT_APP_CY8CPROTO_062_4343W -DCOMPONENT_CAT1 -DCOMPONENT_CAT1A -DCOMPONENT_CM0P_SLEEP -DCOMPONENT_CM4 -DCOMPONENT_CM4_0 -DCOMPONENT_Debug -DCOMPONENT_GCC_ARM -DCOMPONENT_HCI_UART -DCOMPONENT_MURATA_1DX -DCOMPONENT_MW_CAT1CM0P -DCOMPONENT_MW_CMSIS -DCOMPONENT_MW_CORE_LIB -DCOMPONENT_MW_CORE_MAKE -DCOMPONENT_MW_MTB_HAL_CAT1 -DCOMPONENT_MW_MTB_PDL_CAT1 -DCOMPONENT_MW_RECIPE_MAKE_CAT1A -DCOMPONENT_MW_RETARGET_IO -DCOMPONENT_PSOC6_02 -DCOMPONENT_SOFTFP -DCOMPONENT_WIFI_INTERFACE_SDIO -DCORE_NAME_CM4_0=1 -DCY8C624ABZI_S2D44 -DCY_APPNAME_mtb_example_empty_app -DCY_SUPPORTS_DEVICE_VALIDATION -DCY_TARGET_BOARD=APP_CY8CPROTO_062_4343W -DCY_USING_HAL -DDEBUG -DTARGET_APP_CY8CPROTO_062_4343W -Ibsps/TARGET_APP_CY8CPROTO-062-4343W -Ibsps -I. -Ibsps/TARGET_APP_CY8CPROTO-062-4343W/bluetooth -Ibsps/TARGET_APP_CY8CPROTO-062-4343W/config/GeneratedSource -Ibsps/TARGET_APP_CY8CPROTO-062-4343W/config -IGeneratedSource -I../mtb_shared/retarget-io/release-v1.5.0 -I../mtb_shared/cat1cm0p/release-v1.4.0/COMPONENT_CAT1A -I../mtb_shared/cat1cm0p/release-v1.4.0 -I../mtb_shared/cmsis/release-v5.8.0/Core/Include -I../mtb_shared/cmsis/release-v5.8.0/Core -I../mtb_shared/cmsis/release-v5.8.0 -I../mtb_shared/core-lib/release-v1.4.1/include -I../mtb_shared/core-lib/release-v1.4.1 -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/COMPONENT_CAT1A/include/pin_packages -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/COMPONENT_CAT1A/include -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/COMPONENT_CAT1A -I../mtb_shared/mtb-hal-cat1/release-v2.5.4 -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/COMPONENT_CAT1A/include/triggers -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/include -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/include_pvt -I../mtb_shared/mtb-hal-cat1/release-v2.5.4/source -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/devices/COMPONENT_CAT1A/include -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/devices/COMPONENT_CAT1A -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/devices -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0 -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/devices/COMPONENT_CAT1A/include/ip -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers/include -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers/third_party/ethernet/include -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers/third_party/ethernet -I../mtb_shared/mtb-pdl-cat1/release-v3.9.0/drivers/third_party
make: *** [../mtb_shared/core-make/release-v3.2.2/make/core/main.mk:374: secondstage_build] Error 2
In file included from main.c:50:
GeneratedSource/cycfg_bt_settings.h:30:10: fatal error: wiced_bt_cfg.h: No such file or directory
30 | #include "wiced_bt_cfg.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [../mtb_shared/core-make/release-v3.2.2/make/core/build.mk:268: C:/Users/Usuario/mtw/proyecto/bluetooth/build/APP_CY8CPROTO-062-4343W/Debug/main.o] Error 1
"C:/Users/Usuario/ModusToolbox/tools_3.1/modus-shell/bin/make CY_MAKE_IDE=eclipse CY_IDE_TOOLS_DIR=C:/Users/Usuario/ModusToolbox/tools_3.1 CY_IDE_BT_TOOLS_DIR= --output-sync -j8 all" terminated with exit code 2. Build might be incomplete.

20:57:48 Build Failed. 10 errors, 0 warnings. (took 26s.566ms)

0 Likes
lock attach
Attachments are accessible only for community members.
PratikshaV
Moderator
Moderator
Moderator
100 solutions authored 5 likes given 250 sign-ins

Hi @Ignacio 

This issue seems like path is too long for files so they are not able find save your project in desktop or folder which has short path

next is add these 3 files in "main.c"

#include "cycfg_gatt_db.h"
#include "cycfg_bt_settings.h"
#include "cycfg_gap.h"

open Bluetooth configurator and select your device and just save that file once

and then just build and check whether the error still persist.

I have also attached the project let me know if this helps

 

Thanks & Regards

Pratiksha V 

0 Likes
Ignacio
Level 2
Level 2
First like received 5 questions asked 25 sign-ins

hola! @PratikshaV! por supuesto que me sirvió tu ayuda! a partir del proyecto ch03_ex01_ble.zip que compartiste me pude guiar, y el problema era que no había agregado la librería "btstack-integration".Esta librería incluye a

"cycfg_bt_settings.h"
"cycfg_gap.h"
"cycfg_gatt_db.h".

Muchas Gracias!!

0 Likes