TI专家:
我现在使用的是CC13X2P_4_LAUNCHX板子,CCS是9.3 SDK是simplelink_cc13x2_26x2_sdk_3_40_00_02 ,我导入project_zero_app_CC13X2P_4_LAUNCHXL_tirtos_ccs这个项目,发现脱机时无法运行,之前已经发帖求助过,我看了之前别人同样问题的贴子,感觉越看越糊涂。我明白我现在的问题是bootloader没有运行正确,或者是烧录的不正确。
Viki Shi:
请问:
1、不脱机是否运行正常?
2、您是否把文件烧录进板子?
user4849938:
TI专家:我仔细观看了dev.ti.com/…/node仔细观看project_zero_app_CC13X2P_4_LAUNCHXL_tirtos_ccs编译过程中其实已经调用这个工具了oad_image_tool
C:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/tools/common/oad/oad_image_tool –verbose ccs D:/CCS_workspace_v9/project_zero_app_CC13X2P_4_LAUNCHXL_tirtos_ccs 7 -hex1 Release/project_zero_app_CC13X2P_4_LAUNCHXL_tirtos_ccs.hex -k C:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/tools/common/oad/private.pem -o Release/project_zero_app_CC13X2P_4_LAUNCHXL_tirtos_ccs_oad编译后产生三个文件,project_zero_app_CC13X2P_4_LAUNCHXL_tirtos_ccs.hex
project_zero_app_CC13X2P_4_LAUNCHXL_tirtos_ccs_oad.bin
sign.bin但是我使用UniFlash烧录这些文件板子是没法正常运行。
user4849938:
回复 Viki Shi:
谢谢!在Debug 或者是Release模式下运行一直都是正常的。
user4849938:
回复 Viki Shi:
TI 专家:谢谢你的支持,我按照你的说明做到第二个任务的时候,就出现异常了。在手机端不能发现Project Zero这个设备,但是串口信息没有发现异常。我把设备人为复位后,打印以下信息:
#000001 [ 0.031 ] [32;1mINFO: [30;1m(led_service.c:221) [0mRegistered service, 5 attributes, status 0x00#000002 [ 0.031 ] [32;1mINFO: [30;1m(button_service.c:260) [0mRegistered service, 7 attributes
#000003 [ 0.031 ] [32;1mINFO: [30;1m(data_service.c:239) [0mRegistered service, 6 attributes
#000004 [ 6.026 ] [32;1mINFO: [30;1m(project_zero.c:632) [0mRegistered OAD Service
#000005 [ 6.026 ] [32;1mINFO: [30;1m(project_zero.c:2932) [0mLeft button not held under boot, not reverting to factory.
#000006 [ 6.026 ] [32;1mINFO: [30;1m(project_zero.c:2934) [0mRight+Left button not held under boot, not erasing external flash.
#000007 [ 6.026 ] [32;1mINFO: [30;1m(project_zero.c:650) [0mOAD Image v0002
#000008 [ 6.026 ] [32;1mINFO: [30;1m(led_service.c:237) [0mRegistered callbacks to application. Struct @20001b6c
#000009 [ 6.026 ] [32;1mINFO: [30;1m(button_service.c:278) [0mRegistered callbacks to application. Struct @20001b74
#000010 [ 6.026 ] [32;1mINFO: [30;1m(data_service.c:257) [0mRegistered callbacks to application. Struct @20001b7c
#000011 [ 6.026 ] [32;1mINFO: [30;1m(led_service.c:272) [0mSetParameter : LED0 len: 1
#000012 [ 6.026 ] [32;1mINFO: [30;1m(led_service.c:280) [0mSetParameter : LED1 len: 1
#000013 [ 6.026 ] [32;1mINFO: [30;1m(button_service.c:319) [0mSetParameter : BUTTON0 len: 1
#000014 [ 6.026 ] [32;1mINFO: [30;1m(button_service.c:352) [0mTrying to send noti/ind: connHandle ffff, [33mNoti/ind disabled[0m
#000015 [ 6.026 ] [32;1mINFO: [30;1m(button_service.c:330) [0mSetParameter : BUTTON1 len: 1
#000016 [ 6.026 ] [32;1mINFO: [30;1m(button_service.c:352) [0mTrying to send noti/ind: connHandle ffff, [33mNoti/ind disabled[0m
#000017 [ 6.026 ] [32;1mINFO: [30;1m(data_service.c:295) [0mSetParameter : String len: 40
#000018 [ 6.026 ] [32;1mINFO: [30;1m(data_service.c:306) [0mSetParameter : Stream len: 20
#000019 [ 6.026 ] [32;1mINFO: [30;1m(data_service.c:328) [0mTrying to send noti/ind: connHandle ffff, [33mNoti/ind disabled[0m
#000020 [ 6.032 ] [32;1mINFO: [30;1m(project_zero.c:1160) [0mGAP is started. Our address: [32m04:EE:03:4C:08:ED[0m
#000021 [ 6.032 ] [32;1mINFO: [30;1m(project_zero.c:1175) [0mName in advData1 array: [33mProject Zero[0m
#000022 [ 6.039 ] [32;1mINFO: [30;1m(project_zero.c:1398) [0mAdv Set 0 Enabled
user4849938:
回复 user4849938:
TI专家:cc13x2p4lp_bim_offchip这个项目我没有做修改,Project Zero项目我修改为支持蓝牙4.2版本。我重新烧录一个 pinStandby项目,破坏掉bootloader,这时再烧录Project Zero项目就可以在手机端发现 Project Zero设备,手机端操作没有问题,当然脱机复位后就不能再次运行了。
Viki Shi:
回复 user4849938:
我刚才用板子操作了一下,复位以后可以运行,而且我手机用BLE scanner搜索并连接到了project zero