TI中文支持网
TI专业的中文技术问题搜集分享网站

CC1310自己制作的板子可以4pin jlink仿真下载程序,但是点全速运行后观察debug全局变量值始终为0,怀疑没有正常运行,请教原因可能是?

大家好!

CC1310自己制作的板子可以4pin jlink仿真下载程序,但是点全速运行后观察debug全局变量值始终为0,怀疑没有正常运行,请教原因可能是?

使用的芯片为CC1310 F128 4*4封装,SDK为simplelink_cc13x0_sdk_2_10_00_36,launchpad REV1.4跑easylink\rfEasyLinkEchoRx程序是没问题的,把这个程序下载到我们的板子就运行了毫无反应,是不是要改封装设置,这一版SDK找不到更改封装的地方,项目紧急请帮忙看看。

Felix ZF:

需要该封装的,参考下面两个帖子 e2echina.ti.com/…/149696 e2e.ti.com/…/1912614

hui chu:

回复 Felix ZF:

您好感谢回复,我看论坛帖子说用4XD.c和4XD.h文件做替换(C:\ti\tirtos_cc13xx_cc26xx_2_xx_xx_xx\products\tidrivers_cc13xx_cc26xx_2_xx_xx_xx\packages\ti\boards\CC1310DK_4XD),我的SDK里没有相应的路径和文件,不存在4XD.c,没法照葫芦画瓢,是不是版本更新了已经不能那么改了啊?

Viki Shi:

回复 hui chu:

你下的版本是什么?

hui chu:

回复 Viki Shi:

SDK版本:simplelink_cc13x0_sdk_2_10_00_36

Viki Shi:

回复 hui chu:

请下载tirtos_cc13xx_cc26xx_xxxx,不是CC1310SDK,里面有相关文件

hui chu:

回复 Viki Shi:

您好,tirtos后来我也下载了,TI论坛里相关的帖子我几乎看遍了,按照帖子里的方法把Board.h、CC1310DK_4XD.c、CC1310DK_4XD.h、CC1310DK_4XD.cmd替换掉SDK里的对应文件编译通不过,那篇外文的帖子最后提问的人也遇到相同的编译问题也没什么后文了,所以到底怎么解决呢?可以出一个简单教程step by step教一下怎么改封装吗?tirtos和SDK例程相比缺少用于CCS的工程,CCS不是官方推荐的IDE吗,我就是需要一个4*4封装的CCS工程,最好是基于TI SDK的,因为例程多,卡了好几天了,请尽快帮忙看下吧,谢谢。

Viki Shi:

回复 hui chu:

能贴一下你的报错信息吗?

Viki Shi:

回复 hui chu:

STEP BY STEP教程暂无,这个帖子看一下e2echina.ti.com/…/115606

hui chu:

回复 Viki Shi:

报错信息如下:另外请教一个问题,TIRTOS下没有CCS例程,只有IAR的,为什么会没有CCS的呢?SDK就既有CCS又有IAR的。
**** Build of configuration Release for project rfEasyLinkEchoRx_CC1310_LAUNCHXL_nortos_ccs ****

"E:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O
'Building file: "../CC1310DK_4XD.c"'
'Invoking: ARM Compiler'
"E:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/bin/armcl" -mv7M3 –code_state=16 –float_support=vfplib -me -O2 –include_path="D:/ti/test5/rfEasyLinkEchoRx_CC1310_LAUNCHXL_nortos_ccs" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/source" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/kernel/nortos" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/kernel/nortos/posix" –include_path="E:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/include" –define=DeviceFamily_CC13X0 –define=CCFG_FORCE_VDDR_HH=0 -g –diag_warning=225 –diag_warning=255 –diag_wrap=off –display_error_number –gen_func_subsections=on –preproc_with_compile –preproc_dependency="CC1310DK_4XD.d_raw""../CC1310DK_4XD.c"

>> Compilation failure
subdir_rules.mk:9: recipe for target 'CC1310DK_4XD.obj' failed
"../CC1310DK_4XD.c", line 43: fatal error #1965: cannot open source file "xdc/std.h"
1 catastrophic error detected in the compilation of "../CC1310DK_4XD.c".
Compilation terminated.
gmake: *** [CC1310DK_4XD.obj] Error 1
'Building file: "../ccfg.c"'
'Invoking: ARM Compiler'
"E:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/bin/armcl" -mv7M3 –code_state=16 –float_support=vfplib -me -O2 –include_path="D:/ti/test5/rfEasyLinkEchoRx_CC1310_LAUNCHXL_nortos_ccs" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/source" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/kernel/nortos" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/kernel/nortos/posix" –include_path="E:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/include" –define=DeviceFamily_CC13X0 –define=CCFG_FORCE_VDDR_HH=0 -g –diag_warning=225 –diag_warning=255 –diag_wrap=off –display_error_number –gen_func_subsections=on –preproc_with_compile –preproc_dependency="ccfg.d_raw""../ccfg.c"

>> Compilation failure
subdir_rules.mk:16: recipe for target 'ccfg.obj' failed
"../ccfg.c", line 50: fatal error #1965: cannot open source file "startup_files/ccfg.c"
1 catastrophic error detected in the compilation of "../ccfg.c".
Compilation terminated.
gmake: *** [ccfg.obj] Error 1
'Building file: "../main_nortos.c"'
'Invoking: ARM Compiler'
"E:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/bin/armcl" -mv7M3 –code_state=16 –float_support=vfplib -me -O2 –include_path="D:/ti/test5/rfEasyLinkEchoRx_CC1310_LAUNCHXL_nortos_ccs" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/source" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/kernel/nortos" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/kernel/nortos/posix" –include_path="E:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/include" –define=DeviceFamily_CC13X0 –define=CCFG_FORCE_VDDR_HH=0 -g –diag_warning=225 –diag_warning=255 –diag_wrap=off –display_error_number –gen_func_subsections=on –preproc_with_compile –preproc_dependency="main_nortos.d_raw""../main_nortos.c"

>> Compilation failure
subdir_rules.mk:23: recipe for target 'main_nortos.obj' failed
"..\CC1310DK_4XD.h", line 63: fatal error #1965: cannot open source file "driverlib/ioc.h"
1 catastrophic error detected in the compilation of "../main_nortos.c".
Compilation terminated.
gmake: *** [main_nortos.obj] Error 1
'Building file: "../rfEasyLinkEchoRx_nortos.c"'
'Invoking: ARM Compiler'
"E:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/bin/armcl" -mv7M3 –code_state=16 –float_support=vfplib -me -O2 –include_path="D:/ti/test5/rfEasyLinkEchoRx_CC1310_LAUNCHXL_nortos_ccs" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/source" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/kernel/nortos" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/kernel/nortos/posix" –include_path="E:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/include" –define=DeviceFamily_CC13X0 –define=CCFG_FORCE_VDDR_HH=0 -g –diag_warning=225 –diag_warning=255 –diag_wrap=off –display_error_number –gen_func_subsections=on –preproc_with_compile –preproc_dependency="rfEasyLinkEchoRx_nortos.d_raw""../rfEasyLinkEchoRx_nortos.c"

>> Compilation failure
subdir_rules.mk:30: recipe for target 'rfEasyLinkEchoRx_nortos.obj' failed
"..\CC1310DK_4XD.h", line 63: fatal error #1965: cannot open source file "driverlib/ioc.h"
1 catastrophic error detected in the compilation of "../rfEasyLinkEchoRx_nortos.c".
Compilation terminated.
gmake: *** [rfEasyLinkEchoRx_nortos.obj] Error 1
'Building file: "../easylink/EasyLink_nortos.c"'
'Invoking: ARM Compiler'
"E:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/bin/armcl" -mv7M3 –code_state=16 –float_support=vfplib -me -O2 –include_path="D:/ti/test5/rfEasyLinkEchoRx_CC1310_LAUNCHXL_nortos_ccs" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/source" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/kernel/nortos" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/kernel/nortos/posix" –include_path="E:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/include" –define=DeviceFamily_CC13X0 –define=CCFG_FORCE_VDDR_HH=0 -g –diag_warning=225 –diag_warning=255 –diag_wrap=off –display_error_number –gen_func_subsections=on –preproc_with_compile –preproc_dependency="easylink/EasyLink_nortos.d_raw" –obj_directory="easylink""../easylink/EasyLink_nortos.c"

>> Compilation failure
easylink/subdir_rules.mk:9: recipe for target 'easylink/EasyLink_nortos.obj' failed
"D:\ti\test5\rfEasyLinkEchoRx_CC1310_LAUNCHXL_nortos_ccs\CC1310DK_4XD.h", line 63: fatal error #1965: cannot open source file "driverlib/ioc.h"
1 catastrophic error detected in the compilation of "../easylink/EasyLink_nortos.c".
Compilation terminated.
gmake: *** [easylink/EasyLink_nortos.obj] Error 1
'Building file: "../smartrf_settings/smartrf_settings.c"'
'Invoking: ARM Compiler'
"E:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/bin/armcl" -mv7M3 –code_state=16 –float_support=vfplib -me -O2 –include_path="D:/ti/test5/rfEasyLinkEchoRx_CC1310_LAUNCHXL_nortos_ccs" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/source" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/kernel/nortos" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/kernel/nortos/posix" –include_path="E:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/include" –define=DeviceFamily_CC13X0 –define=CCFG_FORCE_VDDR_HH=0 -g –diag_warning=225 –diag_warning=255 –diag_wrap=off –display_error_number –gen_func_subsections=on –preproc_with_compile –preproc_dependency="smartrf_settings/smartrf_settings.d_raw" –obj_directory="smartrf_settings""../smartrf_settings/smartrf_settings.c"
'Finished building: "../smartrf_settings/smartrf_settings.c"'
'Building file: "../smartrf_settings/smartrf_settings_predefined.c"'
'Invoking: ARM Compiler'
"E:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/bin/armcl" -mv7M3 –code_state=16 –float_support=vfplib -me -O2 –include_path="D:/ti/test5/rfEasyLinkEchoRx_CC1310_LAUNCHXL_nortos_ccs" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/source" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/kernel/nortos" –include_path="E:/ti/simplelink_cc13x0_sdk_2_10_00_36/kernel/nortos/posix" –include_path="E:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/include" –define=DeviceFamily_CC13X0 –define=CCFG_FORCE_VDDR_HH=0 -g –diag_warning=225 –diag_warning=255 –diag_wrap=off –display_error_number –gen_func_subsections=on –preproc_with_compile –preproc_dependency="smartrf_settings/smartrf_settings_predefined.d_raw" –obj_directory="smartrf_settings""../smartrf_settings/smartrf_settings_predefined.c"
'Finished building: "../smartrf_settings/smartrf_settings_predefined.c"'
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

hui chu:

回复 Viki Shi:

能提供一个基于官方SDK的4*4封装的例程吗,或者提供一个简单的STEP BY STEP教程,比如TIRTOS哪几个文件替换掉SDK里的哪几个文件,要修改哪些路径,才能编译下载运行成功呢?

赞(0)
未经允许不得转载:TI中文支持网 » CC1310自己制作的板子可以4pin jlink仿真下载程序,但是点全速运行后观察debug全局变量值始终为0,怀疑没有正常运行,请教原因可能是?
分享到: 更多 (0)