请教pplcount工程在CCS软件中debug模式断点运行问题



前面在大家帮助下,已经可以将pplcount工程导入CCS,rebuild,连接开发板,加载bin文件,resume运行,然后通过gui加载配置后可以正常运行,感谢大家。

考虑到后面在pplcount工程的基础上调整部分算法,想通过CCS软件debug模式进行调试。现在又遇到了新问题,使用官方的工程文件,设置断点后resume运行,通过GUI加载配置,目前有两个问题:

一是在某些行设置断点后,会停止,但点击F5(step into)报错,错误如下:

是不是因为C674X和Corter_R4两个核,程序在其中一个上运行至断点停止了,但另外一个程序依然在运行,导致不能同步并行调试?

二是在某些行设置断点,程序一直执行,不会停止,如下图所示:

这种情况是因为程序一直没有运行到radarprocess.c下346行吗,所以没有停?

如果想连接开发板,通过CCS软件debug模式调试验证算法,比如可以观测指定参数值,应该怎么操作呢?感谢!

  • Hi,

    While frame is triggered, if DSS halts on some breakpoint then in the next run it will do in ASSERT. As when software or core halts but hardware will be chirping in background, so when it re-run frame/chirp count will not match as expected and goes in ASSERT.

    To skip this check, please remove MACRO definition from packages\ti\common\mmwave_sdk.mak and rebuild.

    # Compiler Flags for C674 Builds:

    C674_CFLAGS = -mv6740 --abi=eabi --gcc -g -O3 -ms0 -mo --define=SUBSYS_DSS \

    --define=$(PLATFORM_DEFINE) --define=_LITTLE_ENDIAN --display_error_number \

    --define=DebugP_ASSERT_ENABLED --diag_warning=225 --diag_wrap=off \

    --preproc_with_compile $(C674_INCLUDE) --emit_warnings_as_errors

    Please refer to link:
    e2e.ti.com/.../2655480
  • Wesley He,您好,感谢。我在SDK安装目录下找到了相应文件,删除--define=DebugP_ASSERT_ENABLED后重新build。依旧不能在上面图中radarprocess.c下346行停下。请问有什么办法可以在pplcount例程中设置断点,resume后基本都可以停到断点处(目前有的断点能停,有的不能停)?
  • 你用CCS工程的话,
    需要在properties->build->C6000 compiler/ARM compiler - >summary of flags set中处理。