CY_IDE_BT_TOOLS_DIR

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

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

cross mob
Translation_Bot
Community Manager
Community Manager
Community Manager

如何将 CY_IDE_BT_TOOLS_DIR=-j12 更新为 CY_IDE_BT_TOOLS_DIR=-j16。

谢谢

0 点赞
14 回复数
Translation_Bot
Community Manager
Community Manager
Community Manager

嗨 @TYY427

CAN 请让我们知道您正在使用哪种CE?

另外,请提供有关您的问题的更多信息。

谢谢,问候,
Sidramesh

0 点赞
Translation_Bot
Community Manager
Community Manager
Community Manager

CY8C6347BZI-BLD53
感谢您的回复。

0 点赞
Translation_Bot
Community Manager
Community Manager
Community Manager

CY8C6347BZI-BLD53
IDE:ModusToolbox;工具版本:3.0
感谢您的回复。

0 点赞
Translation_Bot
Community Manager
Community Manager
Community Manager

嗨 @TYY427

你在构建任何代码示例吗?

如果您遇到任何错误,请分享错误日志。

谢谢,问候,
Sidramesh

0 点赞
Translation_Bot
Community Manager
Community Manager
Community Manager

17:34:37 **** 项目配置的增量构建调试 td8266batservervv301_0721 ****
" C:\\ Users\\ mycomputer\\ modus-shell\\ bin\ make " cy_make_ide=Eclipse cy_IDE_TOOLS_DIR=C: /users/mycomputer/modustoolbox/Tools_3.0 CY_IDE_BT_TOOLS_DIR=-j12 都包含 flashmap.mk

工具目录:C: /users/myComputer/modustoolbox/Tools_3.0 正在搜索
已安装的工具...
已完成搜索已安装的工具

 

"flashmap.py C: /users/mycomputer/modustoolbox/tools_3.0/python/python.exe.../mtb_shared/ota-update/release-v2.0.0/scripts/flashmap.py-p PSOC_062_1M-i../mtb_shared/ota-update/release-v2.0.0/configs/flashmap/psoc62_1m_int_overwrite_single_taidoc.json flashmap.mk > "
包括 flashmap.mk

预编译操作已完成

正在进行自动发现...
自动发现已完成
正在开始生成操作...

包括 flashmap.mk
工具目录:C: /users/myComputer/modustoolbox/Tools_3.0

正在初始化构建:mtb-example-btstack-freertos-battery-server 发布 APP_CY8CKIT-062-BLE GCC_ARM

正在构造构建规则...
构建规则构造完成
" flashmap.py C: /users/mycomputer/modustoolbox/tools_3.0/python/python.exe.../mtb_shared/ota-update/release-v2.0.0/scripts/flashmap.py-p PSOC_062_1M-i../mtb_shared/ota-update/release-v2.0.0/configs/flashmap/psoc62_1m_int_overwrite_single_taidoc.json flashmap.mk > "
包括 flashmap.mk

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



->。/build/compile_commands.json
编译数据库文件生成完成构建 295 个文件正在编译 motion_task.c

-DAPP_VERSION_BUILD=2-DAPP_VERSION_MAJOR=5-DAPP_VERSION_MINOR=0-DCOMPONENT_APP_CY8CKIT_062_BLE-DCOMPONENT_IPC-DCOMPONENT_CM4_0-DCOMPONENT_FREERTOS-DCOMPONENT_GCC_ARM-DCOMPONENT_HARDFP-DCOMPONENT_MW_ABSTACTION_RTOS-DCOMPONENT_MW_BTSTACK-DCOMPONENT_MW_BTSTACK-DCOMPONENT_MW_BTSTACK ACK_INTEGRATION-DCOMPONENT_MW_CAT1CM0P-DCOMPONENT_MW_CLIB_SUPPORT-DCOMPONENT_MW_CMSIS-DCOMPONENT_MW_CONNECTIVITY_UTILITIES-DCOMPONENT_MW_CORE_LIB-DCOMPONENT_MW_CE_MAKE-DCOMPONENT_MW_CY_MBEDTLS_ACCELATION-DCOMPONENT_MW_FREERTOS_INTERFACE-DCOMPONENT_MW_INTERFACE_DCOMPONENT_LWIP_NETWORK_INTERFACE _INTEGRATION-DCOMPONENT_MBEDTLS-DCOMPONENT_MQTT-DCOMPONENT_MW_MTB_HAL_CAT1-DCOMPONENT_MW_PDL_CAT1A-DCOMPONENT_MW_MW_SECUREGET_IO-DCOMPONENT_MW_MW_SECUREGET_IO _SOCKETS-DCOMPONENT_MW_WHD_BSP_INTEGRATION-DCOMPONENT_MW_WIFI_CONNECTION_MAGER-DCOMPONENT_MW_WIFI_CORE_FREERTOS_LWIP_MBEDTLS-DCOMPONENT_MW_WIFI_HOST_DRIVER-DCOMPONENT_MW_WPA3_EXTERNAL_SUPPLICANT-DCOMPONENT_OTA_PSOC_01-dcomponent_Release-dcomponent_DCOMPONENT_WICEDED _BLE-DCORE_NAME_CM4_0=1-dcy8c6347BZI_BLD53-dcy_appname_mtb_example_btstack_freertos_BATTERY_SERVER-dcy_RTOS_ARGET-DCY_SUPPORTS_VALIDATION-dcy_SUPPORTS_DEVICE_VALIDATION-DCY_TARGETT _BOARD=APP_CY8CKIT_062_BLE-DCY_USING_HAL-DFLASH_AREA_BOOTLOADER_DEVICE_INTERNAL_FLASH ""-dflash_area_bootloader_size=0x018000-dflash_area_bootloader_start=0x00000-dFLASH_AREA_IMG_1_primary_start=0x06FC00-dflash_area_img_1_primary_start=0 x020000-" "DFLASH_AREA_IMG_1_SECONDARY_DEVICE_DEVICE_DEVICE_INTERNAL_FLASH-dflash_area_img_1_secondary_SECTORS=894-DMCUBOOT_IMG_SECTORS=894-DNCUBOOT_IMG_SECTORS=894-DNCUBOOT_IMAX_SECTORS DEBUG-DOTA_SUPPORT=1-DPSOC_062_1M-DTAR " GET_APP_CY8CKIT_062_BLE-I。"/configs-I。 -ibma400_mtb-ibma400_mtb/bma400_driver-ibq21061_mtb-ibspss/target_app_cy8ckit-062-blee-ibspss/target_app_cy8ckit-062-ble/cybsps/target_generatedSource s/target_app_cy8ckit-062-ble/config-iconfigs/component_cm4-iconfigs-igeneral_mtb-iota_source-ipah8151_mtb/pah_sonsor-ipah8151_mtb/pah_sonsor-ipah8151_mtb/pah_sonsor-ipah8151_mtb/pah_sonsor 1_mtb/pxi_alg-ipah8151_mtb/pxi_alg/ss-iqk/include-iqk/ports/freertos-iqk/ports-iqk/src-isleepWake-isource/Include-I../mtb_shared/btstack-Integration/release-v4.3.0/component_bless-ipc/Platfor -I。。/mtb_shared/btstack-integration/release-v4.3.0/component_bless-IPC/Pl -I。。/mtb_shared/btstack-Integration/release-v4.3.0/component_bless-IPC -I。。/mtb_shared/btstack-integration/release-v4.3.0-I../mtb_shared/btstack-Integration/release-v4.3.0/component_bless-ipc/platform/ -I。。/mtb_shared/btstack-Integration/release-v4.3.0/component_bless-ipc/platform/IPC -I。。/mtb_shared/ota-update/release-v2.0.0/include-I../mtb_shared/ota-update/release-v2.0.0-I../mtb_shared/ota-update/release-v2.0.0/source-I../mtb_shared/OTA-update/release-v2.0.0/source/component_OTA_Bluetooth-I/mtb_shared/ota-update/release-v2.0.0/source/port_support/mcuboot-I../mtb_shared/ota-update/release-v2.0.0/source/port_support-I/mtb_shared/OTA-update/release-v2.0.0/source/port_support/mcuboot/component_OTA_psoc_062-I../mtb_shared/OTA-update/release-v2.0.0/source/port_support/mcuboot/component_OTA_psoc_062/flash_qspi-I../mtb_shared/ota-update/release-v2.0.0/source/port_support/serial_flash-I/mtb_shared/ota-update/release-v2.0.0/source/port_support/untar-I../mtb_shared/retarget-io/release-v1.4.0-I../mtb_shared/abstraction-rtos/release-v1.7.1/include-I../mtb_shared/abstraction-rtos/release-v1.7.1-I../mtb_shared/Abstraction-rtos/release-v1.7.1/include/component_Freertos-I../mtb_shared/btstack/release-v3.7.0/wiced_include-I../mtb_shared/btstack/release-v3.7.0-I../mtb_shared/cat1cm0p/release-v1.0.0/component_cat1a-I../mtb_shared/cat1cm0p/release-v1.0.0-I../mtb_shared/clib-support/release-v1.3.0-I../mtb_shared/clib-support/release-v1.3.0/Toolchain_gcc_arm -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/connectivity-utilities/release-v4.1.1-I../mtb_shared/connectivity-utilities/release-v4.1.1/cy_log -I。。/mtb_shared/connectivity-utilities/release-v4.1.1/cy_string -I。。/mtb_shared/connectivity-Utilities/release-v4.1.1/json_parser -I。。/mtb_shared/connectivity-utilities/release-v4.1.1/linked_list -I。。/mtb_shared/connectivity-Utilities/release-v4.1.1/net -I。。/mtb_shared/core-lib/release-v1.3.1/include -I。。/mtb_shared/core-lib/release-v1.3.1-I../mtb_shared/freertos/release-v10.4.305/source/include-I../mtb_shared/freertos/release-v10.4.305/Source-I../mtb_shared/freertos/release-v10.4.305-I../mtb_shared/freertos/release-v10.4.305/source/portable/component_cm4-I../mtb_shared/freertos/release-v10.4.305/source/Portable-I../mtb_shared/freertos/release-v10.4.305/source/portable/component_cm4/Toolchain_gcc_arm-I../mtb_shared/mtb-hal-cat1/release-v2.3.0/component_cat1A/include/pin_packages -I。。/mtb_shared/mtb-hal-cat1/release-v2.3.0/component_cat1A/Include -I。。/mtb_shared/mtb-hal-cat1/release-v2.3.0/component_cat1a -I。。/mtb_shared/mtb-hal-cat1/release-v2.3.0-I../mtb_shared/mtb-hal-cat1/release-v2.3.0/component_cat1A/Include/Triggers -I。。/mtb_shared/mtb-hal-cat1/release-v2.3.0/include -I。。/mtb_shared/mtb-hal-cat1/release-v2.3.0/include_pvt -I。。/mtb_shared/mtb-hal-cat1/release-v2.3.0/source -I。。/mtb_shared/mtb-pdl-cat1/release-v3.0/devices/component_cat1A/Include -I。。/mtb_shared/mtb-pdl-cat1/release-v3.0/devices/component_cat1a -I。。/mtb_shared/mtb-pdl-cat1/release-v3.0/devices -I。。/mtb_shared/mtb-pdl-cat1/release-v3.3.0-I../mtb_shared/mtb-pdl-cat1/release-v3.0/devices/component_cat1A/Include/IP -I。。/mtb_shared/mtb-pdl-cat1/release-v3.0/drivers/include -I。。/mtb_shared/mtb-pdl-cat1/release-v3.0/drivers -I。。/mtb_shared/mtb-pdl-cat1/release-v3.0/drivers/third_party/ethernet/include -I。。/mtb_shared/mtb-pdl-cat1/release-v3.0/drivers/third_party/ethernet -I。。/mtb_shared/mtb-pdl-cat1/release-v3.0/drivers/third_party -I。。/mtb_shared/wifi-core-freertos-lwip-mbedtls/release-v1.0.0/configs-I../mtb_shared/wifi-core-freertos-lwip-mbedtls/release-v1.0.0 motion_task.c:
在函数 “bma400act_obj_record” 中:motion_task.c: 1047:18:
警告:格式 “%d” 期望参数类型为 “int”,但参数 2 的类型为 “uint32_t” {aka 'long unsigned int'} [-Wformat=]
1047 | printf("状态 %d %s %ld\ n",\ | | int | %ld 1048 | motion_act.step,\
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
t
ask.c:
1047:25:



{aka long unsigned int}
警告:格式 “%ld” 期望参数类型为 “long int”,但参数 4 的类型为 “int” [-Wformat=]
1047 | printf("状态 %d %s %ld\ n",\ | ~~^ | | long int | %d...





1050 | motion_act.state_len);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | int motion_task.c: 1008:12:

警告:变量 “结果” 已设置但未使用 [-wunused-but-set-Variable]
1008 | cy_rslt_t 结果 = CY_RSLT_SUCCESS;| ^~~~~motion_task.c:

在函数 “enter_deepsleep” 中:
motion_task.c: 1100:15: 警告:变量 “结果” 已设置但未使用 [-wunused-but-set-Variable]
1100 | cy_rslt_t 结果;| ^~~~~~ motion_task.c:

在函数 “i2cforbiddenCapturespo2” 中:motion_task.c: 1706:8:
警告:这个 “if” 子句不起作用...[-wmisleading-indentation]
1706 | if (spo2_alg_busy==true); | ^~ motion_task.c: 1707:8:

注意:... 这个语句,但是后者有误导性的缩进,好像是由 “if”
1707 | {
| ^ motion_task.c:
在函数 “resetFlashBackup” 中:
motion_task.c: 3433:12: 警告:未使用的变量 'trycnt' [-wunused-Variable]
3433 | uint8_t trycnt=0; | ^~~~~~motion_task.c:

在函数 “save_spo2_debug” 中:motion_task.c: 3465:11:
警告:变量 “i_r_ir_ratio” 已设置但未使用 [-wunused-but-set-Variable] 3465 | uint16_t i_r_ir_ratio; | ^~~~~~~~~~~~~~~~~~~~motion_task.c:


在函数 “trigger_motion_read” 中:motion_task.c: 3587:10:
警告:未使用的变量 “int_value” [-wunused-Variable]
3587 | int32 int_value=range+adj_range;| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 链接输出文件 mtb-example-btstac


C: /users/mycomputer/modustoolbox/tools_3.0/gcc/bin/arm-none-eabi-objcopy-O ihex 😧 /mtd_ota/td8266batservervverv301_0721/build/app_cy8ckit-062-ble/release/mtb-example-btstack-freertos-battery-server.elf 😧 /mtdd_OTA/td8266batserververv301_0721/build/_ota/td8266batservervv301_0721/build/app_cy8ckit-062-ble/release/mtb-example-btstack-freertos-battery-server.hex。
/mtb_shared/ota-update/release-v2.0.0/scripts/sign_script.bash。/build/app_cy8ckit-062-ble/Release mtb-example-btstack-freertos-battery-server C: /users/mycomputer/modustoolbox/tools_3.0/python/python.exe C: /users/myComputer/modustoolbox/tools_3.0/gcc/bin/arm-none-eabi-objcopy-O ihex elf_first... " " " "/mtb_shared/ota-update/release-v2.0.0/source/port_support/mcuboot imgtool/imgtool.py sign 0x00 0x400 894 5.0.2 0x020000 0x06fc00 C: /users/mycopute/modustoolbox/tools_3.0/gcc/bin/arm-none-eabi-objcopy " " "-k。/ota_source/keys/cypress-test-ec-p256.pem "

创建未签名的.hex
imgtool 签名为.hex。
imgtool/imgtool.py sign-R 0-e little--pad-header--align 8-H 0x400-M 894-v 5.0.2-L 0x0200000-S 0x06fc00-k。/ota_source/keys/cypress-test-ec-p256.pem。/build/app_cy8ckit-062-ble/release/mtb-example-btstack-freertos-battery-server.unsigned.hex。/build/app_cy8ckit-062-ble/release/mtb-example-btstack-freertos-battery-server.hex 用法:imgtool.py sign [OPTIONS] INFILE OUTFILE 尝
试 “imgtool.py sign-h” 寻求帮助。

错误:图片尺寸 (0x6d41a) + 预告片 (0x5400) 超过了要求的尺寸 0
x6fc00 make [1]: *** [.../mtb_shared/core-make/release-v3.0.3/make/core/bwc.mk: 161: _mtb_build__legacy_project_postbuild] 错误 2 造成:*** [..
/mtb_shared/core-make/release-v3.0.3/make/core/main.mk: 376: secondstage_build] 错误 2 C: /users/mycomputer/modusToolbox/tools_3.0/modus-shell/bin/Make
" cy_make_ide=Eclipse CY_IDE_TOOLS_DIR=C: /users/mycomputer/modustoolbox/Tools_3.0 CY_IDE_BT_TOOLS_DIR=-j12 全部以退出代码 2 结尾。"构建可能不完整。

17:34:46 构建失败。 3 个错误,8 个警告。 (花了 8s.963 毫秒)

但是,在其他计算机上

CY_IDE_TOOLS_DIR=C: /users/myComputer/modustoolbox/Tools_3.0 CY_IDE_BT_TOOLS_DIR=-j16 所有这些都成功了

0 点赞
Translation_Bot
Community Manager
Community Manager
Community Manager

嗨 @TYY427,你

能不能试着在 TOOLCHAIN 变量之后给出 CY_IDE_BT_TOOLS_DIR=-j16 看看错误是否仍然存在。

Sidramesh_0-1691562384219.png

 



谢谢,问候,
Sidramesh

0 点赞
Translation_Bot
Community Manager
Community Manager
Community Manager

谢谢你的建议。

但是,日志仍然显示 CY_IDE_BT_TOOLS_DIR=-j12。

0 点赞
Translation_Bot
Community Manager
Community Manager
Community Manager

嗨 @TYY427,你

能不能分享一下你的项目,我们会从头开始试一试。

谢谢,问候,
Sidramesh

0 点赞
Translation_Bot
Community Manager
Community Manager
Community Manager

嗨 @Sidramesh

1.CY_IDE_BT_TOOLS_DIR=-j n all  

我猜这个数字跟随CPU中的线程数。

2. 这个项目与 Bluetooth_le_Battery_Server 没有区别。
makefile 配置=发布

TYY427_0-1691992949419.png

bluetooth_le_Battery_Server 由-j12 编译

len(self.payload): (0x4463c)

bluetooth_le_Battery_Server 由-j16 编译

len(self.payload): (0x462a3)

我不知道为什么会有区别。

螢幕擷取畫面 2023-08-14 205232.png

3. 在我的项目中

bluetooth_le_Battery_Server 由-j12 编译

len(self.payload): (0x6d3e2)

bluetooth_le_Battery_Server 由-j16 编译

len(self.payload): (0x678f0)

-j12 的图像大小相对较大,因此 check_trailer 中出现错误。

但我 CAN减少代码量。

感谢您的回复和帮助。

0 点赞
Translation_Bot
Community Manager
Community Manager
Community Manager

抱歉更正了。

嗨 @Sidramesh

1.CY_IDE_BT_TOOLS_DIR=-j n all  

我测试了 4 台计算机,执行线程数为 4、8、12、16
控制台显示屏:

CY_IDE_BT_TOOLS_DIR=-j4 all 

CY_IDE_BT_TOOLS_DIR=-j8 all

CY_IDE_BT_TOOLS_DIR=-j12 all

CY_IDE_BT_TOOLS_DIR=-j16 all

所以,我猜这个数字跟随CPU中的线程数。

 

2. 我的项目与 Bluetooth_le_Battery_Server 没有区分。
makefile 配置=发布

(我的项目是公司产品,对不起,我 CAN不提供。

TYY427_0-1692028228265.png

因为在我的项目中,错误发生在 check_trailer 中。

我在控制台中打印 image_Size。

TYY427_1-1692028228134.png

bluetooth_le_Battery_Server 由-j12 编译

len(self.payload): (0x4463c)

bluetooth_le_Battery_Server 由-j16 编译

len(self.payload): (0x462a3)

我不知道为什么会有区别。

 

3. 在我的项目中

我的项目由-j12 编译

len(self.payload): (0x6d3e2)

我的项目由-j16 编译

len(self.payload): (0x678f0)

-j12 的图像大小相对较大,因此 check_trailer 中出现错误。

但我 CAN减少代码量。

顺便说一句,我尝试将 t_size 指定为 0,这使我的项目能够成功编译,但我不知道有任何副作用。

感谢您的回复和帮助。

0 点赞
Translation_Bot
Community Manager
Community Manager
Community Manager

嗨 @TYY427

我只想确认一下,请检查你是否在系统环境变量中提供了 CY_TOOLS_PATH 变量及其值为 C: /users/xyz(用户名)/modustoolbox/tools_3.0?

谢谢和问候,
Sidramesh


0 点赞
Translation_Bot
Community Manager
Community Manager
Community Manager

你好 @Sidramesh,

未命名.png

感谢您的回复。

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/PSoC-6/CY-IDE-BT-TOOLS-DIR/m-p/479018

0 点赞
Translation_Bot
Community Manager
Community Manager
Community Manager

嗨 @TYY427

这是您电脑的限制
您 CAN不会从 CY_IDE_BT_TOOLS_DIR= -j12 更新到 CY_IDE_BT_TOOLS_DIR= -j16。

谢谢和问候,
Sidramesh

0 点赞
Translation_Bot
Community Manager
Community Manager
Community Manager

你好 @Sidramesh 

我明白了,谢谢你的 回复和 帮助。

0 点赞