This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

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

Other Parts Discussed in Thread: CC1310, SEGGER

大家好!

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

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

  • 您好感谢回复,我看论坛帖子说用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,没法照葫芦画瓢,是不是版本更新了已经不能那么改了啊?
  • 你下的版本是什么?
  • SDK版本:simplelink_cc13x0_sdk_2_10_00_36
  • 请下载tirtos_cc13xx_cc26xx_xxxx,不是CC1310SDK,里面有相关文件
  • 您好,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的,因为例程多,卡了好几天了,请尽快帮忙看下吧,谢谢。
  • 能贴一下你的报错信息吗?
  • STEP BY STEP教程暂无,这个帖子看一下 e2echina.ti.com/.../115606
  • 报错信息如下:另外请教一个问题,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 ****
  • 能提供一个基于官方SDK的4*4封装的例程吗,或者提供一个简单的STEP BY STEP教程,比如TIRTOS哪几个文件替换掉SDK里的哪几个文件,要修改哪些路径,才能编译下载运行成功呢?
  • 1、TI RTOS里TI文件夹下就是用CCS的
    2、建议你把软件安装在默认目录下
  • 感谢您的回复,导入TIRTOS的CCS工程会出现以下问题:C:\ti\tirtos_cc13xx_cc26xx_2_20_01_08\resources\cc1350LaunchPad\driverExamples\tiDriverExamples下的工程时出现如下错误提示:
    Error: Device is either 'null' or is currently not recognized by CCS. See 'Help > Check for Updates' or visit CCS App Center to get the latest device support.
    但是SDK下的CCS工程就能导入,所以最初安装的时候肯定勾选了CC1310的支持包,不管怎样我还是尝试了Help > Check for Updates再来一遍,结果TIRTOS导入还是不行,同样的错误信息。

    第二个问题还是7*7例程泡在4*4上,SDK例程原封不动下载进去我发现其实是运行了的,根本不需要修改什么,只不过卡在了EasyLink_init()函数里,不能跳出该函数,所有GPIO初始化我都PIN_UNASSIGNED,因为只用到RF暂时只调试射频,能帮我看看卡在了EasyLink_init()函数的原因吗?是否硬件也会导致这个问题?
  • 这个错误大概率是CCS版本或设置问题,你参考下这边的类似贴:e2e.ti.com/.../1963571
  • 卡在EasyLink_init()函数的原因还真不好确定,你的芯片版本是什么?程序中有没有低优先级的任务挂起当前进程?
  • 我按您的建议将TIRTOS安装在默认目录下,C:\ti\tirtos_cc13xx_cc26xx_2_21_01_08\examples\TI下没有任何CCS工程,请问怎么导入CCS?不过与此同时我在另一个文件夹下找到了CCS工程,C:\ti\tirtos_cc13xx_cc26xx_2_21_01_08\resources\cc1310DevelopmentKit\driverExamples\tiDriverExamples,导入会出现如下错误提示:
    Error: Device is either 'null' or is currently not recognized by CCS. See 'Help > Check for Updates' or visit CCS App Center to get the latest device support.导入失败,希望得到您的帮助
  • 按您的建议将TIRTOS安装在默认目录下,C:\ti\tirtos_cc13xx_cc26xx_2_21_01_08\examples\TI下没有任何CCS工程

    这就奇怪了,我一向是安装在默认目录下的,从没丢失文件。你是卸掉重装的吗?有条件的话建议换台电脑安装。

  • 您好,芯片版本CC1310F128 4*4封装,程序是原版SDK的NORTOS例程,没有添加任务,网上文字沟通可能还是不如现场沟通方便,能安排现场支持吗?
  • 晶振是HELE加高的,不在推荐的晶振厂家列表,根据我们硬件工程师的检测,芯片VDDR有1.6V输出
  • SDK中是有基于CCS的例程的,在example文件夹下,TI文件夹下就是基于CCS的例程。

    关于你提到定的step by step的简易教程,已经在计划中了。

  • 抱歉,暂时不支持现场支持。关于上面没有CCS工程的问题,我这边同样的安装路径,ccs导入没有问题。
  • 可以说一下您的CCS版本和配置吗,还有TIRTOS的版本吗?C:\ti\tirtos_cc13xx_cc26xx_2_21_00_06\examples\TI\CC1310_LAUNCHXL\rfEasyLinkRx路径下您确定有CCS工程文件?CCS的工程文件后缀是.projectspec吧,真的没有找到
  • 参考www.ti.com/.../spruhu7d.pdf
    其中3.1 Creating Example Projects Using the Resource Explorer in CCS
  • 感谢您的文档,我简单阅读了一遍有如下问题:
    第一:View > CCS App Center中未找到TI-RTOS,所以只能独立安装TI-RTOS,独立安装的TIRTOS只有源文件没有工程,文档没有讲怎么使用CCS创建TIRTOS工程,只提到了一个联网获取例程的工具叫Resource Explorer
    第二:文档提到Creating Example Projects Using the Resource Explorer in CCS,不知道是不是一定要翻墙才能用,Resource
    Explorer我这边在CCS里是连接不上指南针一直转的,一定要翻墙吗?谢谢!
  • 晶振问题还是感谢你的提醒,也把调试过程给您说下,我们把自己板子的晶振和launchpad的互换结果launchpad运行正常,我们板子仍然卡在EasyLink_init()函数,您能凭您的经验指导一下仅仅是封装不一样会导致RF初始化失败吗?问题出在硬件还是软件呢?
  • 你可以在线跟一下,看看是卡在EasyLink_Init()里的那条语句,这样方便定位原因。
  • 请您先在您自己的板子上运行一下 rfCarrierWave 例程.该例程不涉及DIO,所以对封装没有要求。

    您看一下这个例程是否可以正常运行。
  • 你好,能打开这个网址,也能全部下载,但是这个下载下来就是独立的TIRTOS安装包,只有源代码没有CCS工程,按文档是从Resource Explorer in CCS就能获取完整的CCS工程,从网页版Resource Explorer怎么生成CCS工程呢?
  • 最终卡在EasyLink_Init()里的这个语句RF_runCmd(rfHandle, (RF_Op*)&EasyLink_cmdFs, RF_PriorityNormal, 0, //asyncCmdCallback, EASYLINK_RF_EVENT_MASK);
  • 点击上图中的红框,然后就会出现下面的页面

    您可以尝试一下

  • 您好,您贴的两张图一模一样,而且也没看到红框,是我们的网页视图不一样吗?为什么我看不到ORZ
  • 很抱歉,图贴错了。已经重新编辑过了,您看一下
  • 1、非常感谢您的帮助,云ccs可以导入TIRTOS工程,不过有个小遗憾就是云ccs不支持jlink调试,而我们又没有XDS仿真器,请教一下有办法在本地CCS里导入TIRTOS工程吗?
    2、rfcarrierWave例程SDK里也有,我把它下载到我们的板子上发现同样卡在RF_runCmd(rfHandle, (RF_Op*)&EasyLink_cmdFs, RF_PriorityNormal, 0, //asyncCmdCallback,EASYLINK_RF_EVENT_MASK);请您看看原因可能是什么,谢谢谢谢
  • 1 可以的,您直接 import project 就可以。

    2 这样的话,可以基本确认是您的硬件问题了。

  • 1、如图所示TIRTOS下只有源码没有工程,所以没办法import project。

    2、好的,我让硬件工程师在本贴继续定位BUG原因。

  • 路径如下 C:\ti\simplelink_cc13x0_sdk_1_60_00_21\examples\rtos\CC1310_LAUNCHXL\drivers\rfCarrierWave

    是CC13x0 SDK

  • OK,所以最终还是回到SDK了,谢谢你的指导,那么问题也回到最初的问题,SDK里怎么把7*7修改为4*4封装的工程?SDK里没有4XD文件,如果非要把TIRTOS下的4XD放到SDK里,因为SDK和TIRTOS无论路径还是变量命名都不一样,会引入很多编译错误,正如我前面提到的。
  • SDK的话,您可以只修改以下红框内的板级配置

  • Hi Susuan:
    我和hui chu一起负责这个案子的,我是硬件工程师。
    我有review过,原理图和swrc316一致。
    我拿到我自己的PCBA后,未烧录代码,检查到24M和32.768K晶体都没有震荡,但VDDS有1.6V左右的电压。
    请问以上现象正常吗?我还可以进行哪些操作用于收敛问题,谢谢~
  • void CC1310_LAUNCHXL_initGeneral(void)
    {
    Power_init();

    //if (PIN_init(BoardGpioInitTable) != PIN_SUCCESS) {
    /* Error with PIN_init */
    // while (1);
    //}

    /* Shut down external flash as default */
    //CC1310_LAUNCHXL_shutDownExtFlash();
    }
    您说的三个文件我只注释掉了CC1310_LAUNCHXL.c的以上代码作为板级修改,这些都是GPIO初始化,我这么修改对吗?谢谢~
  • 参考数据手册可知 VDDS 1.8-V to 3.8-V main chip supply

    具体的硬件的问题可以请教下

  • Hi
    我和hui chu一起负责这个案子的,我是硬件工程师。
    我有review过,原理图和swrc316一致。
    我拿到我自己的PCBA后,未烧录代码,检查到24M和32.768K晶体都没有震荡,但VDDR(刚刚写成VDDS)有1.6V左右的电压。
    请问以上现象正常吗?我还可以进行哪些操作用于收敛问题,谢谢~
  • biao huang20 说:
    Hi
    我和hui chu一起负责这个案子的,我是硬件工程师。
    我有review过,原理图和swrc316一致。
    我拿到我自己的PCBA后,未烧录代码,检查到24M和32.768K晶体都没有震荡,但VDDR(刚刚写成VDDS)有1.6V左右的电压。
    请问以上现象正常吗?我还可以进行哪些操作用于收敛问题,谢谢~

    Hi Huangbiao, 

    正常的。你可以用TI默认的好用的Hex做个交叉实验吧。

    在一个,你的板子Smart RF studio 或者programmer 2之类的可以识别并连接吗?

    BR.AZ

  • 我最近也在调试1310,问题很多,同样在7*7切换到4*4时,代码运行不正常,同样的代码在7*7里运行时正常的,用4*4芯片的时候就不行,各种问题,不知道这个问题有没有能给出个方案

  • 是淘宝上面买的segger不适用感觉,只用ti的开发板了
  • 用ti的开发板还是最穏當